PNG to ICO

Published Updated

Convert a PNG or JPG into a multi-size ICO file with icons from 16 to 256 px — free and processed entirely in your browser.

About PNG to ICO

This PNG to ICO converter turns a PNG or JPG image into a Windows icon file with several sizes inside one .ico. The ICO format is a single file that carries the same picture at different sizes, so Windows, browsers and shortcuts can each pick the sharpest one for the space they have. Drop in your picture, choose any of the sizes 16, 32, 48, 64, 128 and 256 pixels, and download the result in a moment. It runs in your browser, and this page does not upload your picture. There is no sign-up or watermark, and files up to 30 MB are accepted.

Each size is drawn separately and reduced in gentle steps, which keeps thin lines and small text cleaner than shrinking a large picture in one go. Transparency is kept, a picture that is not square can be fitted with transparent space or cropped to fill the square, and sizes that would only enlarge your picture are switched off by default, with a clear warning if you switch them back on. The finished file is read back to show you every size inside it, with a preview and its weight in kilobytes.

Use the file as a website favicon, as the icon for a Windows shortcut or program, or anywhere an .ico is required. The images inside are stored as complete PNG files, as the byte check below shows. If you need a full set of app and web icon sizes in one go, try our Favicon Generator, and for plain format changes use our Image Converter.

What is inside the .ico this tool writes

We converted generated test pictures with this page's own tool in Google Chrome 157, Firefox 155 and Playwright's WebKit build (not the Safari app), then read every file back byte by byte and with Pillow 11.3.0. The header says type 1 (icon) and lists the sizes smallest first. Every directory entry says 1 colour plane, 32 bits per pixel and no palette, and its data is a complete PNG file with 8-bit red, green, blue and alpha channels. No entry is a BMP, the other form an entry can take; Windows reads PNG entries from Windows Vista on. Pillow opened every file and listed every size, and all three browsers opened the .ico as an image at 256 x 256, its largest entry.

Entry, 512 x 512 logo on a transparent backgroundChrome 157Firefox 155WebKit build
16 px517 B522 B621 B
32 px883 B854 B1,071 B
48 px1,405 B1,377 B1,790 B
64 px1,501 B1,403 B1,895 B
128 px2,580 B1,941 B4,298 B
256 px4,531 B2,770 B11,134 B
Whole file, with the 102-byte header and directory11,519 B8,969 B20,911 B

Each browser compresses the entries with its own PNG encoder, so the same picture gives different file sizes: the WebKit build's file was more than twice the size of Firefox 155's. A photo needs far more bytes than a flat logo. A 1,024 x 1,024 photo-like JPEG gave 169,146 bytes in Chrome 157 and 140,793 in Firefox 155, about three quarters of it in the 256 px entry.

Non-square, tiny and see-through pictures

Test pictureWhat the tool did
512 x 512 PNG with transparent corners and a band at 50% opacityTicked all six sizes. The corners stayed fully transparent, and the band kept alpha 128 in every size (129 at 16 px in the WebKit build), and its colour, 200, 40, 40, stayed within 2 levels.
600 x 300 PNG, Fit inside (the starting choice)Kept the whole picture: in the 32 px icon it is 32 x 16 px in rows 8 to 23, with transparent rows above and below. Every size and every browser placed it the same way.
600 x 300 PNG, Fill the squareUsed the middle 300 x 300 px for the whole icon. The red bands at both ends were cut off: no red pixel in any size.
20 x 20 PNGTicked only 16 px. Choosing All sizes brought up: Your image is 20 × 20 px, so 32, 48, 64, 128 and 256 px will be enlarged and may look soft.
10 x 10 PNGTicked 16 px with that warning for 16 px from the start, and wrote one 16 px entry (143 bytes in Chrome 157).
JPEG photos, 1,024 and 4,000 px squareFully opaque entries, since JPEG has no transparency (but see the WebKit note below).

One problem appeared only in the WebKit build. Icons made first in a newly opened tab were complete, but after several conversions in the same tab a 4,000 x 4,000 JPEG came out with a fully transparent 16 px entry, and sometimes a transparent 32 px entry too, in 5 of 8 repeat runs. Chrome 157 and Firefox 155 gave no empty entry. The result card shows a thumbnail of every size, so an empty one is visible before you download, and the first conversion after reloading the page was complete in every run.

How to Convert PNG to ICO

  1. Step 1

    Upload your PNG or JPG

    Choose or drop an image. A square picture of 256 × 256 px or more gives the sharpest icons.

  2. Step 2

    Pick the icon sizes

    Tick the sizes to include, from 16 to 256 px, or use a preset such as Favicon or Windows app. A picture that is not square can be fitted with transparent space or cropped to fill.

  3. Step 3

    Create and download the ICO

    Press Create ICO file and download a single .ico with every size inside, ready for a website or a Windows app.

Frequently Asked Questions

Is my image uploaded anywhere?

No. Each size is drawn on a canvas in your browser and the .ico is put together there; this page does not upload the picture. Test runs in three browsers made no network request while converting, and no account is needed.

Which sizes should I include?

For a website favicon, 16, 32 and 48 px are enough. For a Windows program or shortcut add 256 px, and 64 and 128 px help in large icon views. One file can hold all six sizes, and the system picks the one that fits.

Does it keep transparency?

Yes. Transparent areas of a PNG stay transparent in every size. A JPG has no transparency, so its icons are fully filled. If your image is not square, Fit inside adds transparent space on the short sides.

Are the icons stored as PNG or BMP?

Each size is stored as a complete PNG file inside the ICO container: every directory entry says 32 bits per pixel, and its data starts with the PNG signature. No entry is a BMP.

How do I use the ICO file as a favicon?

Save it as favicon.ico in the root folder of your site. Most browsers also pick it up from a link tag with rel set to icon and sizes set to any.

Why does the tool warn that sizes will be enlarged?

An ICO cannot add detail that the original picture does not have. If your image is smaller than a size you choose, it is enlarged and may look blurry, so those sizes are unticked for you and flagged if you tick them again. Start from a larger square image for sharp results.

Why does my ICO file contain only a 16 px icon?

The tool ticks only the sizes it can make without enlarging your picture. A 20 x 20 px PNG got 16 px alone, and a picture smaller than 16 px still gets 16 px with a warning that it will look soft. Tick more sizes or pick a preset to add them anyway; the tool then names every size that will be enlarged.

How big is the .ico file?

It depends on the picture and on your browser's PNG encoder. A 512 x 512 logo with all six sizes came to 11,519 bytes in Chrome 157, 8,969 in Firefox 155 and 20,911 in the WebKit build. The Favicon preset (16, 32 and 48 px) made the same logo 2,859 bytes in Chrome 157. A 1,024 x 1,024 photo-like JPEG reached 169,146 bytes there, three quarters of it in the 256 px entry.

Does Fit inside leave empty space in the icon?

Yes, on the short sides. A 600 x 300 picture became 32 x 16 px inside the 32 px icon, with 8 transparent rows above and below it. Fill the square uses the middle 300 x 300 px instead and cuts off both ends.

How long does it take to make the icon?

Less than a second for our test pictures, timed from pressing Create ICO file to the download button. All six sizes from the 512 x 512 logo took 50 ms in Chrome 157, 40 ms in Firefox 155 and 77 ms in the WebKit build; from a 4,000 x 4,000 px JPEG, 172, 188 and 653 ms.

Related Tools