Skip to content
Free tools Let's talk

Free tool

PNG to ICO converter

Turn a PNG, JPG, SVG or WebP image into a real multi-size ICO file: 16, 32, 48 up to 256 pixels in one favicon.ico, with transparency kept. It all happens in your browser, so your logo is never uploaded.

1Add your image

2Choose the sizes

Icon sizes in the ICO file

If the image is not square

Background

3Check and download

Add an image to see each size at its real pixel size.

Everything runs in your browser. Your image is read and converted on your device and never uploaded or stored.

Beyond the tool

If the icon is a smudge at 16 pixels, the logo needs a compact version.

We redesign logos so they hold up from a browser tab to a billboard, and deliver every file format a website and a printer will ask for.

Get a logo design proposalA fixed-price proposal within one working day

The guide

PNG to ICO Converter: the complete guide

4 referencesMethodology and limitsUpdated 15 October 2026

Built and maintained by the designers and marketers at DEMARCA, an award-winning design studio in Portugal.

On this page
  1. How to convert a PNG to ICO
  2. What is an ICO file
  3. Which sizes does an ICO need
  4. How to add the favicon to your website
  5. How to make the icon look sharp at 16 pixels
  6. Methodology and limits
  7. Sources

How to convert a PNG to ICO

  1. Add your image. Drop a PNG, JPG, SVG or WebP on the box. A square logo of at least 256 pixels is ideal; an SVG works at any size because it is drawn large first and scaled down sharply.
  2. Pick the sizes. For a website favicon, 16, 32 and 48 pixels cover browser tabs, bookmarks and Windows shortcuts. Add 256 for a Windows desktop or app icon. If your image is not square, choose how to handle it: Fit keeps the whole picture with empty margins, Fill crops it to a square, Stretch squashes it.
  3. Check the preview. Every size is shown at its real pixel size on a checkerboard, so you can see how the logo holds up at 16 pixels, and whether the transparency came through.
  4. Download. Save favicon.ico, put it in the root folder of your website, and paste the one line of HTML shown under the preview. If you also want the Apple icon, the Android icons and the web manifest, the favicon generator makes the whole set from the same image.

What is an ICO file

ICO is the icon format Windows has used since the 1990s, and the format browsers first used for favicons. An ICO file is a container: a small header followed by one or more complete images, each at its own size. That is why one favicon.ico can hold a 16 pixel icon for a browser tab, a 32 pixel one for a high-density screen and a 48 or 256 pixel one for a desktop shortcut, and the operating system or the browser picks the one that fits.

Inside the container each image can be stored as a bitmap or as a PNG. This converter stores each size as a PNG, which keeps full transparency, keeps the file small and is read by every browser and by Windows since Vista. A converter that only renames the file from .png to .ico does not produce a valid icon: the container structure has to be built, and that is what this page does.

Which sizes does an ICO need

SizeWhere it is usedInclude it for
16 × 16Browser tabs and bookmarks on standard screens, address bar suggestionsEvery favicon
32 × 32Tabs on high-density screens, the Windows taskbar, Windows shortcutsEvery favicon
48 × 48Windows desktop shortcuts, and a size Google likes for site icons in search resultsEvery favicon
64 × 64, 128 × 128Larger Windows views and some launchersApplication icons
256 × 256Windows Explorer extra-large icons and large application iconsWindows application icons

For a website you rarely need more than one ICO and one extra line. A single favicon.ico with 16, 32 and 48 pixels, linked from the head of your pages, works in every browser. Modern sites often add an SVG icon and an Apple touch icon on top, which is what the favicon generator produces.

How to add the favicon to your website

Upload favicon.ico to the root of your site, so it opens at yoursite.com/favicon.ico. Browsers ask for that address by default, even if the page says nothing. For full control, add this line inside the head of every page: <link rel="icon" href="/favicon.ico" sizes="16x16 32x32 48x48">. The sizes value lists what is inside, so the browser can pick the best match.

On WordPress, upload the icon under Appearance, Customize, Site Identity, where it is called the Site Icon (use a PNG of at least 512 pixels there; WordPress makes the sizes itself). Shopify, Squarespace and Wix have a favicon field in their theme or brand settings. After a change, browsers may keep showing the old icon for a while, because they cache favicons aggressively: open the icon's address directly and reload it, or test in a private window.

How to make the icon look sharp at 16 pixels

A 16 pixel icon has 256 pixels in total, so a detailed logo turns into a smudge. Three habits help. Use the simplest version of your mark, usually a single letter or symbol without the company name. Keep strong contrast between the shape and its background, which is also what a color contrast checker measures. And leave a little margin: browsers round the corners and add padding in some views, and a logo touching the edge gets clipped.

If the preview shows that your logo does not survive at 16 pixels, that is a design problem, not a conversion problem, and it is worth fixing once: a compact mark that works everywhere is one of the files a brand identity should include.

Methodology and limits

Decoding
Your image is opened by your browser on your device. SVG files are drawn at a large size first, so the small icons are scaled down from sharp artwork. Animated GIFs and WebPs use their first frame.
Resizing
Each size is drawn on its own square canvas with the browser's high-quality smoothing. Large reductions are done in halving steps to avoid jagged edges. Fit scales the whole image to touch the square on its longer side; Fill scales it to cover the square and crops the rest; Stretch ignores the proportions. A source smaller than a chosen size is enlarged, which looks soft, and the page warns you.
The ICO file
Each size is saved as a PNG (canvas toBlob) and written into an ICO container: a six-byte header, a 16-byte directory entry per size and the PNG data. After the file is built, the page reads its header back and lists the sizes it finds, so the numbers shown come from the file itself. PNG data inside ICO is supported by every current browser and by Windows Vista and later. Windows XP and some older programs cannot read PNG entries.
Limits
One source image at a time, up to 100 million pixels and 16,384 pixels on a side. Colors are converted to sRGB and metadata is not copied. The ICO holds square icons only, so a non-square source is fitted, filled or stretched as you choose.

Sources

FAQ

Questions people ask

How can I convert a PNG image to a favicon?

Drop the PNG on the box above, keep the 16, 32 and 48 pixel sizes ticked and download favicon.ico. Upload it to the root folder of your website and add the link line shown under the preview. A square PNG of 256 pixels or more gives the sharpest result.

How do I turn an image into an ICO file?

Add the image here (PNG, JPG, SVG, WebP, GIF or BMP), choose the sizes and download the ICO. Renaming a file from .png to .ico does not work, because an ICO is a container that holds several images; this page builds that container for you.

Can a PNG be a favicon?

Yes. Current browsers accept a PNG favicon declared with a link tag. Many sites still keep a favicon.ico in the root as well, because some tools and older software request /favicon.ico without reading the page, and an ICO can hold several sizes in one file.

Is favicon.ico still used?

Yes. Browsers request /favicon.ico by default when a page declares nothing, and it is still the safest single file to serve. Modern sites add an SVG icon and an Apple touch icon on top, but the ICO stays as the fallback.

How can I convert a GIF to an ICO?

Drop the GIF on the box. An ICO holds still images, so an animated GIF is converted from its first frame. Choose the sizes you need and download the file.

Which sizes should an ICO file contain?

For a website favicon, 16, 32 and 48 pixels in one file are enough. For a Windows application or desktop icon, add 256 pixels. Larger files do not make the favicon sharper in a browser tab; they only make the file heavier.

Is my image uploaded to a server?

No. The image is read and converted by your browser on your own device, and the ICO file is built there too. Nothing is sent or stored, so you can use it for unreleased logos and client work.

Why does my icon look blurry?

Usually the source is smaller than the largest size you ticked, so it was enlarged, or the logo has too much detail for 16 pixels. Use a larger source or an SVG, and a simplified version of the mark, such as one letter or symbol, for the small sizes.

More free tools

See all 52 tools

Logo redesign

Let's make something matter.

We redesign logos so they hold up from a browser tab to a billboard, and deliver every file format a website and a printer will ask for. Independent design and marketing studio in Portugal. Senior-led projects, transparent pricing and clearly defined deliverables for international clients.

  • A reply from a designer within one working day
  • A fixed-price proposal before any work starts
  • Senior-led work with clearly defined deliverables
  • Clients in Portugal, across Europe and further afield

Request a quote

Prefer email? hello@wearedemarca.com