Favicon Generator

Published Updated

Make 16, 32 and 48 pixel favicons from a PNG, JPG, SVG or other image, and download them as one multi-size .ico file or as separate PNG files in a ZIP.

Three small icons, two ways to package them

You get up to three square icons: 16, 32 and 48 pixels, each rendered separately from your upload. A raster image is scaled down in one step; an SVG is redrawn at each size, which keeps edges sharp.

Inside the .ico file, every size is stored as a complete PNG image. That keeps the file small, but MDN's image format guide points out that PNG inside ICO only arrived with Windows Vista, and that favicons have largely moved to PNG files named in a link element. The ZIP option gives you exactly those PNG files.

Which file goes where

Icon sizes in HTML are counted in raw pixels, not CSS pixels, as the HTML standard defines for the sizes attribute. A typical setup with this tool's files:

FileWhere it goesHTML in the page head
favicon.ico (your .ico, renamed)Site rootNone needed: with no icon link, browsers may request /favicon.ico on their own
favicon-32x32.pngAny folder<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
favicon-16x16.pngAny folder<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
favicon-48x48.pngAny folder<link rel="icon" type="image/png" sizes="48x48" href="/favicon-48x48.png">

Given several icons, browsers pick the most suitable by type and size, per the same standard.

Inside the .ico and the ZIP

We loaded the page's real generator in Google Chrome 156, Chromium 153 (Playwright build, not Google Chrome), Firefox 155 and Playwright's WebKit build (not the Safari app), made icons from 14 generated files with the default settings, and for four of them also the ZIP and a two-size .ico. We split each .ico by its own directory and checked every PNG and ZIP offline with Python (Pillow 11.3.0 and zipfile). One run per engine.

PartWhat our files held, in all four engines
File header (6 bytes)Reserved 0, type 1 (icon), then the number of pictures: 3 with the default sizes, 2 with only 16 and 48 ticked
Directory, 16 bytes per pictureWidth and height 16, 32 or 48; colour count 0; 1 plane; 32 bits per pixel; the picture's byte size and where it starts. The field layout is the ICONDIR and ICONDIRENTRY of Microsoft's Icons in Win32
PicturesComplete PNG files placed one after another, 16 px first, starting at byte 54. Every one opened in Pillow as 8-bit RGBA, colour type 6, which the W3C PNG specification calls truecolor with alpha
Extra PNG chunksNone in Chrome 156 and Chromium 153; Firefox 155 added a private chunk named deBG holding 16 hexadecimal characters; the WebKit build added sRGB and a small eXIf chunk (colour space and pixel size)
ZIP optionfavicon-16x16.png, favicon-32x32.png and favicon-48x48.png, deflate-compressed; Python's CRC check passed for every archive
Engine.ico from the 512 px logo (16 / 32 / 48 px PNG).ico from the 400 px photo-like JPEG
Chrome 1563,224 bytes (521 / 969 / 1,680)8,132 bytes
Chromium 1533,290 bytes (528 / 984 / 1,724)8,115 bytes
Firefox 1553,431 bytes (553 / 1,094 / 1,730)7,272 bytes
WebKit3,374 bytes (567 / 1,029 / 1,724)7,403 bytes

Each engine compresses PNG its own way and shrinks pictures its own way, so the same logo gives files of different sizes and slightly different pixels. All four browsers opened every .ico made here as an image and picked its 48 px picture to show.

How each browser shrinks a picture to 16 pixels

The page draws your picture at each size with the canvas smoothing quality set to high, halving it first while the icon is less than half the current size: a 512-pixel picture becomes 256, 128, 64, 32 and then 16 pixels. The HTML standard leaves the scaling method to the browser, saying it does not define the precise algorithm for scaling an image down. Two tests show what that means. A 512 x 512 picture of 1-pixel black and white stripes should become an even mid grey (127 or 128) when averaged; a 400 x 400 photo-like picture was compared with the exact average of each 25 x 25 block of the same picture as the browser decodes it, as a mean difference on the 0 to 255 scale.

EngineStripes, darkest to lightest grey: 16 / 32 / 48 pxPhoto at 16 px, mean difference
Chrome 156127-127 / 127-127 / 127-1271.30
Chromium 153127-127 / 127-127 / 127-1272.00
Firefox 155127-127 / 127-127 / 127-1272.33
The WebKit build128-128 / 128-128 / 128-1282.12

So all four engines averaged the stripes to a flat grey at every size, and the photo-like picture stayed within 1.30 to 2.33 levels of the block average. The 16 px logo had 40 partly transparent pixels along its outline in each of the four, so its outline is smoothed alike everywhere.

Going the other way, an 8 x 8 picture enlarged to 48 px is smoothed, not kept blocky: the crisp 4 x 4 square in it got soft edges with 28 (WebKit build) to 62 (Chrome 156) different transparency levels.

Odd inputs, measured

  • A rectangle is fitted, not stretched: a 600 x 300 picture became a 16 x 8 picture with 4 transparent rows above and 4 below (24 transparent rows in all at 48 px), and a 300 x 600 one got the same bands at the sides, in all four engines.
  • An SVG with no width, height or viewBox is treated as 300 x 300 by this page, so our 100 x 100 green square filled only the top-left third of each icon.
  • An .ico as the source: the browser handed over its largest picture (256 px) in all four engines, so the icons were made from that one.
  • An animated GIF gave its first frame. A HEIC photo opened only in the WebKit build; the other three said Couldn't read this image, as they did for 30,000 random bytes.
  • With no size ticked the page asks you to select at least one; with only 16 and 48 ticked the .ico held two pictures.

Generating the icons

  1. Step 1

    Upload your logo

    Any image your browser opens, or an SVG. A rectangular picture is fitted inside the square without stretching, and the leftover bands stay transparent, so only a square picture fills the whole icon.

  2. Step 2

    Tick sizes and pick a format

    16, 32 and 48 px start ticked. Choose one .ico holding every ticked size, or a ZIP with files named favicon-16x16.png and so on.

  3. Step 3

    Download and rename

    The .ico is named after your upload. Rename it favicon.ico for your site's root folder. The result card previews each size at its real size.

Drawing for 16 pixels

Microsoft's icon guidelines put it bluntly: scaling down from a large icon does not work, and the smaller the icon, the more the defining details need exaggerating. In practice:

  • Start from a square source of at least 256 px, or an SVG.
  • Use one letter, symbol or shape rather than the full logo with its tagline.
  • Thicken thin lines; a 1 px stroke in a 512 px logo disappears at 16 px.
  • Check the 16 px preview on the result card. It is shown at its real size, close to what a browser tab will show.

Search results and phones want bigger icons

Google's favicon guidelines require a square icon of at least 8 x 8 px, recommend going larger than 48 x 48, and accept ICO and PNG among other formats. Since 48 px is this tool's largest size, add a bigger PNG for search and home screens: App Icon Generator makes 180, 192 and 512 px files, and PNG to ICO packs sizes up to 256 px into one .ico. For a non-square logo, square it up first with Crop Image.

Favicon questions

What sizes does a favicon need?

Small spots such as a browser tab use the 16 px size, and a screen with double pixel density draws that same spot with 32 real pixels, so 16 and 32 belong in every set. For search results Google recommends a square favicon larger than 48 x 48.

Should I use the ICO file or the PNG files?

Both. Browsers may ask for /favicon.ico when a page names no icon, so an ICO in the root folder is a good fallback. MDN notes that favicons have largely moved to PNG files with link tags, and that PNG inside ICO, which this tool writes, needs Windows Vista or later.

Can I make a favicon from an SVG logo?

Yes. The SVG is redrawn at each size rather than shrunk from a bitmap, so edges stay crisp. A wide SVG keeps its proportions and is centered with transparent space above and below. In our test a wide PNG was treated the same way in all four engines we tried.

Why does my favicon look blurry at 16 px?

Sixteen pixels cannot show fine detail: the tool averages your picture down in halving steps, so a thin line turns into a faint one. Use one bold letter or shape with strong contrast.

Is a transparent background kept?

Yes, every size is saved as a PNG with its transparency. A JPG has none, so its background fills the corners; a JPG that is not square still gets transparent bands at the sides or top and bottom.

Can it make Apple touch icons or PWA icons?

No, this tool stops at 48 px. With its Web option, App Icon Generator builds the 180 px Apple touch icon, 192 and 512 px web app icons and a favicon.ico in one ZIP.

Does the tool give me the HTML link tags?

No, it only downloads the .ico or the ZIP of PNG files. The table under Which file goes where on this page lists a link line for each PNG file, and notes that browsers may request /favicon.ico on their own when a page names no icon.

Why does my icon look different when I make it in another browser?

Mostly in file size. The tool halves a big picture in steps before the last draw, so a pattern of 1-pixel stripes became an even grey at 16, 32 and 48 px in Chrome 156, Chromium 153, Firefox 155 and the WebKit build. Each browser still writes PNG its own way, so the .ico for the same logo ranged from 3,224 to 3,431 bytes.

Can I start from an .ico, an animated GIF or a HEIC photo?

An .ico works: in our test the browser handed the page its largest picture (256 px), and the icons were made from that. An animated GIF gives its first frame. HEIC opened only in the WebKit build; Chrome 156, Chromium 153 and Firefox 155 could not read it.

Will browsers open the .ico this tool makes?

All four engines opened every .ico we made here as an image and chose its 48 px picture. We did not test a live website's tab icon.

Related Tools