Favicon generator

Create website icons in multiple sizes from an image.

  • Runs locally
  • Free

Use the tool

Your files are processed in your browser and are not uploaded to a server.

About this tool

Upload one image to generate favicon.ico and PNG icons from 16 to 256 px, downloaded as a ZIP. Non-square images are centered on a transparent canvas.

Typical uses

  • Create a browser tab icon for a new site
  • Produce a 180 px Apple touch icon
  • Prepare a 192 px icon for a PWA

How to use

  1. Upload one PNG, JPG or WebP image.

  2. Select Process and download a ZIP containing favicon.ico and multiple PNG sizes.

Good to know

Non-square images are centered with transparent padding. The ZIP includes 16, 32, 48, 64, 180, 192 and 256 px PNGs.

The eight files in the ZIP and how favicon.ico is built

“Image” takes a single picture. “Process images” scales it into square PNGs of 16, 32, 48, 64, 180, 192, 256 px and copies four of them, 16, 32, 48, 256, unchanged into favicon.ico. The tool then reports “Files created: 8.” Each file can be downloaded from “Results”, and “Download all as ZIP” saves favicon-pack.zip:

FilePixelsUse
favicon.ico16 / 32 / 48 / 256Four sizes in one file, for the site root
icon-16.png16 × 16also inside favicon.ico
icon-32.png32 × 32also inside favicon.ico
icon-48.png48 × 48also inside favicon.ico
icon-64.png64 × 64PNG only
icon-180.png180 × 180PNG only; iOS home screen icon
icon-192.png192 × 192PNG only; Web app manifest icon
icon-256.png256 × 256also inside favicon.ico

The first 70 bytes of favicon.ico are a directory: a 6-byte header and four 16-byte entries, followed directly by the four PNG files. favicon.ico is therefore exactly 70 bytes plus the sizes of icon-16, icon-32, icon-48 and icon-256. The directory fields (little-endian):

Byte offsetValue writtenMeaning
0–10Reserved, always 0
2–31Type 1 means icon (2 would be cursor)
4–54Number of images
6 + 16 × i16 / 32 / 48 / 0Width and height bytes of each entry; 256 can only be stored as 0
+4 / +61 / 321 colour plane, 32 bits per pixel
+8nLength of the image, which is a complete PNG file
+1270The first image starts at byte 70, the others follow in turn
  • The ICO stores PNG data rather than classic BMP bitmaps, so transparency is kept in full.
  • The 64, 180 and 192 px sizes exist only as separate PNG files, not inside the ICO.

What happens to non-square and small sources

For every size the whole image is scaled to the largest size that fits inside the square and centred; the rest stays transparent. Nothing is cropped or stretched, and small images are enlarged. The area the image actually covers (width × height in pixels, often fractional):

Source16 × 1632 × 32180 × 180256 × 256
1200 × 63016 × 8.432 × 16.8180 × 94.5256 × 134.4
512 × 51216 × 1632 × 32180 × 180256 × 256
400 × 10016 × 432 × 8180 × 45256 × 64
64 × 6416 × 1632 × 32180 × 180 (enlarged ×2.81)256 × 256 (enlarged ×4)
  • A 1200 × 630 social image becomes only 32 × 16.8 inside the 32 px icon, leaving 7.6 px of transparent space above and below, nearly half the height. It looks small and flat in a browser tab, so crop it to 1:1 first.
  • The reduction is large: a 512 px source is shrunk 32× for the 16 px icon, so a 20 px stroke becomes about 0.63 px. Thin lettering and detailed artwork are hard to read at 16 and 32 px; a simplified version works better.
  • A 64 × 64 source is enlarged 4× for the 256 px file and looks soft. Start from at least 256 px square, or 512 px if you also need the 512 px manifest icon described below.
  • A JPG has no transparency: the padding is still transparent, but the picture keeps its own white background. Cut out a logo first if you want a transparent one.

Referencing the files from a page

The WHATWG HTML Standard lets browsers request /favicon.ico from the site root when a page has no rel="icon" link, so putting favicon.ico in the root is the simplest setup. To declare the icons explicitly, add to <head>:

MarkupNotes
<link rel="icon" href="/favicon.ico">Points to the ICO in the root, which holds the 16, 32, 48 and 256 px images
<link rel="icon" type="image/png" sizes="32x32" href="/icon-32.png">For an extra PNG, state its pixel size in sizes. With several rel="icon" links the browser chooses using media, type and sizes
<link rel="apple-touch-icon" sizes="180x180" href="/icon-180.png">For home screen icons iOS does not use rel="icon"; it reads the non-standard apple-touch-icon. Without this line Safari looks in the root for apple-touch-icon.png, so renaming icon-180.png to that name and placing it in the root also works
{ "src": "/icon-192.png", "sizes": "192x192", "type": "image/png" }An entry in the icons array of the web app manifest
  • According to web.dev, Chromium needs at least a 192 × 192 and a 512 × 512 icon in the manifest. This tool does not make the 512 px version; export the same square source at 512 × 512 PNG with the batch resizer and add it.
  • MDN notes that the shortcut in rel="shortcut icon" is non-conforming and should no longer be used; write rel="icon".

Messages and pitfalls

Message or symptomCause and fix
Only PNG, JPG and WebP images are supported.The file is an SVG, GIF, ICO, HEIC or similar. Only PNG, JPG and WebP are read; export an SVG logo to a PNG of 512 px or more with the SVG converter first.
This image format cannot be opened by this browser.The file is damaged or the browser cannot decode it.
Choose one image at a time.Several images were chosen or dropped at once. Icons are made from a single image, so nothing stays selected; add just one and start again.
Processing cancelled.Cancel was pressed during generation. Sizes already made are not kept; process again.
Source images are limited to 45 MP and 16384 px per side.The source is above 45 megapixels or 16384 px per side and generation stops. Shrink it to a few thousand pixels with the batch resizer first; 512 px square is plenty for icons.

Sources

Frequently asked questions

What is in the ZIP?

favicon.ico plus PNG icons at 16, 32, 48, 64, 180, 192 and 256 px.

Does the source need to be square?

Square works best. Other shapes are centered with transparent padding, so crop to 1:1 first if you can.

How do I use the icons?

Place favicon.ico in your site root and reference the PNG icons with link tags in the page head.