PNG to ICO: Make Favicons and Icons From Any Image

PNG to ICO: Make Favicons and Icons From Any Image

Converting a PNG to ICO is the quickest way to turn any image into a proper favicon or app icon. Whether you need a small logo for a browser tab, an icon for a Windows shortcut, or a recognisable mark for your website, ICO is still the standard format for the job. This guide explains what the conversion does, which sizes to include, how to prepare your source image, and how to install the finished favicon — including the complete 2026 setup.

Key takeaways

  • An ICO file is a container holding several sizes of the same image; the browser or operating system picks the size it needs.
  • Start from a square PNG of at least 512 × 512 pixels — 1024 × 1024 is better.
  • Include 16 × 16, 32 × 32 and 48 × 48 at minimum, plus 256 × 256 for large desktop icons.
  • Renaming a PNG to .ico does not convert it. The file must be properly encoded.
  • The 2026 favicon stack is favicon.ico, a 32 × 32 PNG, and a 180 × 180 Apple touch icon — plus an SVG.
  • Place favicon.ico at the root of your site, because browsers still request it from there by default.

What PNG to ICO Actually Means

A PNG is a single image at one size. An ICO file is something different: it is a container, not a single image. One .ico file holds several sizes of the same picture — typically 16 × 16, 32 × 32 and 48 × 48, with 256 × 256 often added — and the browser or operating system picks the size it needs. This description of ICO as a multi-image container is given in Pixotter’s 2026 guide “How to Convert PNG to ICO”, in favicondl.com’s conversion guide, and in DuneTools’ favicon guide from April 2026.

ICO was introduced by Microsoft in 1999 as the Windows icon format, and it has survived because the same icon has to look right at many different sizes, on different screens, in different parts of the interface. According to DuneTools, and to MDN’s documentation as cited by ToolHQ, browsers still request /favicon.ico from the site root by default, even when a page contains no link tag pointing at it.

Modern ICO files are also far smaller than many people expect. Since Windows Vista, the images inside an ICO file have been stored as PNG-compressed data, so a multi-size ICO typically weighs only 10–30 KB, according to Pixotter. Converting a PNG to ICO, then, is not just changing a file extension — it is packaging one image into a small bundle of sizes.

Which Sizes to Include — and Where Each One Appears

The sizes you include decide where your icon looks sharp and where it turns into a blurry smudge. According to Pixotter and favicondl.com, the standard set is:

Size Where it appears Why it matters
16 × 16 Browser tabs and bookmarks The smallest and most-seen size; the classic favicon size
32 × 32 High-DPI browser tabs and the Windows taskbar The size most desktop users actually see day to day
48 × 48 Windows desktop shortcuts Needs more detail than a tab icon, but still small
256 × 256 Large icons in Windows Explorer The showcase size; a poor source image shows up here first

For a favicon, the three small sizes — 16, 32 and 48 — are the essential minimum, and adding 256 costs almost nothing in file size. A converter that only produces a single 16 × 16 image is doing half the job.

A PNG image flowing into a multi-size ICO container holding 16, 32 and 48 pixel icons

Preparing Your Source PNG

Start square, and start big

Your source image should be square, and at least 512 × 512 pixels. According to Pixotter and the CopyProgramming ICO guide, 1024 × 1024 is better still. Downscaling preserves detail, while upscaling a tiny image does not: a 1024-pixel original shrinks cleanly to 16 pixels, but a 64-pixel original stretched up to 256 pixels just gets blurry.

If your logo is not square yet, fix that first. You can resize your logo square first with Fileoraa’s free image resizer, which lets you set exact dimensions and crop the image to a square in the browser. Never stretch a rectangular logo into a square — crop or pad it instead.

Simplify the design

A favicon is not a billboard. At 16 pixels, a detailed logo becomes an unrecognisable blob, so the design that works best is bold, simple and high-contrast: thick shapes, one or two strong colours, no small text. Many brands use a single letter, an initial, or a simplified mark for their favicon rather than their full logo. If yours is too detailed, remove thin lines, drop small text, and raise the contrast.

Keep transparency, but check the edges

PNG’s great strength is transparency, and ICO files preserve it: a transparent background stays transparent in the finished icon. Make sure the transparency is clean, though — stray semi-transparent pixels around the edges can show up as a faint grey halo at small sizes.

Save your source as a PNG with a transparent background, at the largest size you have. If your original artwork is a JPG, convert it first — converting JPG to PNG gives you a lossless base to work from. Avoid starting from a heavily compressed JPG, because its artefacts get baked into every size in the ICO.

How to Convert PNG to ICO, Step by Step

There are three reliable ways to convert: an online converter, a command-line tool, and a desktop image editor. All three produce the same kind of file, so pick the one that fits your workflow.

Method 1: Use an online converter

This is the fastest route, and the right choice for most people. A good online PNG to ICO converter runs in your browser: you upload your square PNG, choose the sizes, and download the finished .ico file in under a minute.

  1. Prepare your source image. Square, at least 512 × 512 pixels, clean transparent background, simple bold design.
  2. Upload the PNG and select the sizes — 16, 32, 48 and 256 is the standard set.
  3. Download the .ico file and check its size. A multi-size ICO should typically be around 10–30 KB.
  4. Preview every size. Look at the 16 × 16 version at actual size. If it is unreadable, simplify your source and convert again.
  5. Keep the original PNG. If you ever need to change the icon, you will want the big square original — not the ICO, which cannot be upscaled back.

Method 2: Use ImageMagick from the command line

If you convert icons regularly, or need to do it as part of a build process, the command line is the most repeatable option. ImageMagick is free, runs on Windows, macOS and Linux, and converts a PNG to a multi-size ICO in one command:

magick logo.png -define icon:auto-resize=256,48,32,16 favicon.ico

This reads your square PNG, generates all four sizes, and writes them into one favicon.ico file. Because it is scriptable, you can drop it into a build script and regenerate your favicon automatically every time the logo changes.

Method 3: Use GIMP

GIMP, the free image editor, can export ICO files directly and gives you the most control. Open your PNG, choose File, then Export As, and change the extension to .ico. GIMP will ask which sizes to include — tick 16, 32, 48 and 256 — and export the file.

A blurry favicon compared with a crisp multi-size favicon at several sizes

Installing the Favicon on Your Website

Converting the file is only half the job. The other half is putting it where browsers can find it. The most important step is also the simplest: put favicon.ico at the root of your website, so it is served from https://yoursite.com/favicon.ico. Browsers still request /favicon.ico from the site root by default, even without a link tag — a behaviour documented by DuneTools and by MDN as cited by ToolHQ. If the file sits in a subfolder, some browsers will never find it.

Next, add a link tag to the head of every page, so browsers know exactly which icon to use. The line for the ICO file reads: link rel=”icon” type=”image/x-icon” href=”/favicon.ico” — written as a normal HTML tag inside angle brackets. Keep the path absolute from the root, starting with a forward slash.

Finally, test the result. Open your site in a fresh browser window, look at the tab, and bookmark the page to check the bookmark icon too. Then clear the cache and check again, because favicons are cached aggressively.

The 2026 Favicon Stack

A single ICO file was enough in 2010. It is not enough in 2026. Modern browsers, high-DPI screens and mobile devices each have their own preferred icon format, and the complete setup is now a small set of files that work together. According to DuneTools’ favicon guide from April 2026 and FileCrisp’s favicon generator guide from October 2026, the complete 2026 favicon setup is three files, plus an SVG:

  • favicon.ico (containing 16, 32 and 48) — for legacy browsers and Windows, and for the automatic root request browsers still make.
  • A 32 × 32 PNG — for modern browsers, which prefer a crisp PNG over ICO when both are available.
  • A 180 × 180 apple-touch-icon PNG — for iOS home screens, where a saved website gets this icon instead of a screenshot.
  • An SVG favicon — for modern browsers, which can scale a vector icon to any size without loss of quality.

You do not need to design four different icons: start from the same square source PNG, export the PNG sizes from it, and create the SVG from your vector original if you have one. While you are at it, check your site’s other images too: a PNG to WebP conversion can cut their weight dramatically — every kilobyte you save is a faster page.

One logo used as a browser favicon, a phone home screen icon and a desktop shortcut

Common Mistakes to Avoid

Most broken favicons are broken for one of a handful of avoidable reasons. Run through this list before you publish yours.

  • Renaming a PNG to .ico. Changing the extension does not change the file: ICO has its own directory structure, and a renamed PNG is still a PNG wearing the wrong name. The file must be properly encoded — use a real converter, a command-line tool, or an editor that exports ICO.
  • Starting from a tiny image. A 64 × 64 logo upscaled to 256 × 256 is a blurry logo, and no converter can put the missing detail back. Start from at least 512 × 512; 1024 × 1024 is better.
  • Too much detail at 16 pixels. Thin lines, small text and busy backgrounds all disappear at the smallest size. Design for 16 × 16 first.
  • Forgetting the root file. Browsers request /favicon.ico from the site root by default, even with no link tag. If it is not there, you get the generic icon and a 404 in your logs.
  • Using only one size. An ICO with a single 16 × 16 image looks fine in a tab and terrible on a desktop shortcut. Include 16, 32, 48 and 256.
  • Not testing after publishing. Favicons are cached hard. If you never check the live site, you will not know the icon is broken until a visitor tells you.
  • Stretching a rectangular logo. A squashed logo looks unprofessional at every size. Crop or pad to a square instead, and keep the mark centred.

Frequently Asked Questions

What is the difference between a PNG and an ICO file?

A PNG is a single image at one size, while an ICO is a container that holds several sizes of the same image in one file — typically 16 × 16, 32 × 32, 48 × 48 and 256 × 256. Modern ICO files store those images as PNG-compressed data, keeping the whole file small, usually 10–30 KB.

What size should a favicon be?

A favicon should be a multi-size ICO containing 16 × 16, 32 × 32 and 48 × 48, with 256 × 256 added for large desktop icons. 16 × 16 appears in browser tabs and bookmarks, 32 × 32 covers high-DPI tabs and the Windows taskbar, and 48 × 48 covers desktop shortcuts. For the complete 2026 setup, add a 32 × 32 PNG, a 180 × 180 Apple touch icon, and an SVG alongside the ICO file.

Can I just rename a PNG file to .ico?

No. Renaming a PNG to .ico does not convert it, because ICO has its own directory structure and a renamed file is still a PNG inside. The file must be properly encoded with a real converter, a command-line tool such as ImageMagick, or an image editor such as GIMP that exports ICO.

What size should my source PNG be before converting?

Start from a square PNG of at least 512 × 512 pixels, and 1024 × 1024 is better. Downscaling preserves detail, so a large original shrinks cleanly to every size in the ICO, while upscaling a small image only produces blur. Keep the design simple and bold, with a transparent background, so it stays readable at 16 × 16.

Where do I put the favicon.ico file on my website?

Put favicon.ico at the root of your website, so it is served from https://yoursite.com/favicon.ico. Browsers request that path by default even when a page has no link tag pointing at it, so a missing root file means a generic icon and a 404 in your logs. Add a link tag to every page, and clear your browser cache when testing.

Make Your Favicon From Any Image

A good favicon is a small thing that does a large job: it marks your site in a crowded row of tabs, makes your bookmarks recognisable, and puts your brand on a visitor’s home screen. It costs almost nothing to get right.

Start with your source image. If your logo is not square yet, resize it square with Fileoraa’s free image resizer first, then convert the result to ICO with the sizes in this guide, and drop favicon.ico into your site root. Ten minutes of work, and your site will look finished in every tab, bookmark and home screen it appears on.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *