// Runs in your browser

PNG to ICO

A website icon is not one picture. A browser tab shows it at sixteen pixels, a desktop at thirty-two, a file manager at forty-eight or more, and the one file that satisfies all of them holds one drawing per size. This page draws your picture once for each size and puts every drawing into a single `.ico` file. You choose the set of sizes, and the file is written for you. Your picture is fitted into a square at each size, so its proportions are kept and the empty space around it is left transparent.

Add a file

Drop a file here

or click to choose · paste with Ctrl+V · up to 20 MB

Press Ctrl+V (⌘ on a Mac) with an image on the clipboard

Preview

Your result shows up here.

Result—

Settings

Sizes to include

Export

The format and the size of the file you take away. Nothing is uploaded — the conversion runs on your own device.

How to turn a PNG into an ICO in 3 steps

  1. 01

    Add the picture you want as an icon

    Drop the file onto the page, choose it from your device, or paste it. PNG, JPG and WebP are accepted, up to 20 MB, so the picture you already have is enough.

  2. 02

    Choose the sizes the file should hold

    Three sets are on the panel: 16, 32 and 48 pixels; 16, 32, 48 and 64; or all six, up to 256. The page opens on the smallest set, which covers a tab, a desktop and a file manager.

  3. 03

    Download the one file with them all in

    The picture is drawn once per size, each drawing is stored inside a single .ico file, and the panel lists the sizes it holds. Press Download and the icon file is written to your device, ready to be named favicon.ico.

One file that holds every size a reader might ask for

This page builds a container, not a picture. ico file, so a website has one icon file to point at rather than a set of them. Why it matters is that the icon a reader sees is the one the file happens to contain: a browser tab asks for sixteen pixels, a desktop asks for thirty-two, a file manager asks for forty-eight, and if the file only holds one drawing, everything else is shown stretched and soft. So the file holds several, and the reader takes the one it needs. The picture itself is fitted into a square at each size with its proportions kept, which means the empty space beside a wide or tall picture stays transparent rather than being filled in. This is a different job from the SVG to PNG page, which redraws a vector at a size you name, and from the Crop Image into Circle page, which cuts a shape out of a picture. If you want the picture itself changed before it becomes an icon, the Resize Image to 300x300 page is the one for the dimensions. This page is the single-picture version: it writes one logo as an icon file. When a whole set of logos has to ship with a site, the Batch PNG to ICO writes an icon file for every one of them and hands back a single archive.

Frequently asked questions

Which sizes should I put in the icon file?

The smallest set — 16, 32 and 48 pixels — covers what almost every reader uses: a browser tab, a desktop and a file manager on a large screen. The medium set adds 64 for a high-density screen, and the largest adds 128 and 256 for a large display or a shortcut pinned to a taskbar. The set you pick is written into the file, and the reader takes the size it needs from it.

Why does my icon look blurry in the browser tab?

Usually because the tab shows it at sixteen pixels, and a picture scaled down to sixteen from a large original loses most of its detail. Drawing the icon at sixteen as well does not fix that on its own — the drawing has to be simple enough to read at that size. Keep the shape bold, leave out small text, and check the result at the size you will actually see it.

Should the source picture be a PNG or a JPG?

PNG, if you have one: an icon is often a picture with transparent corners, and a JPG cannot hold transparency, so its background would arrive as a solid block behind the shape. A JPG is still accepted, and the result is fine for a picture that fills the whole square with no transparent part. The icon is drawn at each size and stored as PNG inside the .ico file either way.

How do I put the icon on my website?

Download the file and name it favicon.ico, then put it in the root of your site beside the page that links to it. A page normally points at it with a link element that names the file and its type. Browsers also look for it without being told, which is why the name matters: a file called something else has to be linked explicitly.

What happens to the empty space around a wide picture?

It is left transparent. Your picture is fitted into a square at each size rather than stretched to fill it, so the proportions stay as they are and the space beside a wide or tall picture is not filled in with a color. That is what you want for an icon: the shape reads on its own, and the square the size demands does not distort it.

The icon is built in your tab

Everything this page does happens in the browser tab you are reading this in. Your picture is decoded there, drawn once per size there, and the icon file is assembled there; no request is made after the page has loaded, so there is nothing stored on a server to delete afterwards. PNG, JPG and WebP files of up to 20 MB are accepted, and the .ico you take away is built from the bytes the browser encoded on your own machine.