# JPG to ICO: one square icon from an opaque photo

> Turn a JPEG into a single-size ICO without expecting lost detail or a transparent background.

- Tool: [JPG to ICO Converter](https://toolsg.com/en/jpg-to-ico)
- Language: en (available: en, zh, ms, ta)
- Last verified against official sources: 2026-10-19
- Source site: ToolSG — a planning guide, not official or financial advice. Cite the agencies listed under Sources.

## Key figures at a glance

| Fact | Value | Source |
| --- | --- | --- |
| Default size | 64 × 64 pixels — The source is resampled into a square. |  |
| Minimum size | 16 pixels — Input is rounded to an integer and clamped to the supported range. |  |
| Maximum size | 256 pixels — Larger requests are limited to 256 × 256. |  |
| Output | One PNG-backed ICO entry — This page does not combine several size variants in one file. |  |

## What the ICO contains

The browser decodes the JPEG, handles its EXIF orientation, resamples the whole image into a square and embeds a PNG image in ICO. JPEG has no alpha channel, so the resulting icon is opaque. The conversion does not remove the background or recover JPEG detail.

ICO containers can hold multiple images, but this page writes exactly one. It stretches a non-square source; it does not crop centrally, add padding or generate a full application-icon set. Crop the source to a square first if you need to preserve its proportions.

## Size examples

| Input or size setting | Downloaded ICO |
| --- | --- |
| 32 × 16 source; size 64 | 64 × 64 — stretched |
| Size 32 | 32 × 32; one image |
| Size 256 | 256 × 256; one image |
| Size 0 or negative | 16 × 16 |
| Size 31.5 | 32 × 32 |
| Size 512 | 256 × 256 |

## Prepare and export

1. Choose the best source and crop to a square if needed.
2. Choose an integer icon size; values are rounded and restricted to 16–256.
3. Check the preview and result dimensions, then download the .ico file.
4. Open it in the intended app or icon consumer; keep the source if more sizes are needed.

## Compatibility and limits

The file uses a PNG payload inside ICO, not the older bitmap-and-mask layout. Microsoft documents PNG icon payloads beginning with Windows Vista. Test the actual target application if it needs older icon formats. Merely renaming a PNG to .ico does not create the required ICO directory.

Conversion runs locally without uploading the image for processing. It writes one still image and does not copy original camera, date, GPS or source colour-profile metadata. Very large sources are first reduced to the 16,777,216-pixel working-canvas cap. PNG compression preserves the resampled canvas pixels; it does not undo the resampling or earlier source losses.

Changing size is calculated from the loaded source, not from the previous icon. Use [the cropper](https://toolsg.com/en/image-cropper) to prepare a square, [ICO to PNG](https://toolsg.com/en/ico-to-png) to view a decoded icon image, or [the image converter](https://toolsg.com/en/image-converter) for other targets.

## Frequently asked questions

**Is my image uploaded anywhere?**

No. The image is decoded and re-encoded entirely in your browser using a canvas. It never leaves your device, is never sent to a server, and nothing is stored.

**Will the quality drop?**

The icon contains a losslessly encoded PNG of the resampled square, not an untouched copy of the source. Non-square images are stretched. PNG alpha can remain, while an opaque JPEG stays opaque; lost detail is not recovered.

**Why did my photo come out the right way up?**

Photographs from phones store an EXIF orientation tag rather than rotating the pixels. This tool reads that tag and applies the rotation, so the result matches what you saw in your gallery.

**Is there a size limit?**

Icon size is rounded and restricted to 16–256 pixels. The whole source is resampled to that square, with one image per ICO. Very large sources can first be reduced to the 16,777,216-pixel working-canvas cap.


## Sources

- [Microsoft — ICO directory format](https://learn.microsoft.com/en-us/previous-versions/ms997538(v=msdn.10))
- [Microsoft — PNG images inside ICO](https://devblogs.microsoft.com/oldnewthing/20101022-00/?p=12473)
- [WHATWG — Canvas drawing and serialization](https://html.spec.whatwg.org/multipage/canvas.html)
- [MDN — Image file type and format guide](https://developer.mozilla.org/en-US/docs/Web/Media/Guides/Formats/Image_types)
