Favicon & App Icon Generator

Upload an image, get a real favicon.ico, apple-touch-icon and Android Chrome icons plus a site.webmanifest. Nothing leaves your browser.

Updated:

100% client-side

Source image

Drop an image here, or

Square preview of the generated icon

Generated icon set

Generates exactly the sizes real sites need today: 16×16 & 32×32 (packed into favicon.ico), 180×180 (apple-touch-icon.png), and 192×192 & 512×512 (android-chrome, also used by PWA manifests). No legacy Windows-8 tile sizes or browserconfig.xml.

—
favicon.ico preview
favicon.ico
apple-touch-icon.png preview
apple-touch-icon.png
android-chrome-192x192.png preview
android-chrome-192x192.png
android-chrome-512x512.png preview
android-chrome-512x512.png

            

            

How to use Favicon & App Icon Generator

  1. Drop an image or logo onto the Source image panel, or click browse files (or Example).
  2. If the image isn't square, choose Crop to center square or Pad to square, and pick a padding background color or leave it transparent.
  3. Optionally set a Theme color, used in the generated site.webmanifest and meta tag.
  4. Click Download all to save every icon file at once, or download each asset (and the manifest) individually.

What this tool generates

A modern site needs several icon files, each read by a different browser or OS: a small multi-size .ico file for legacy compatibility and browser tabs, a 180×180 PNG for iOS home-screen icons, and 192×192/512×512 PNGs referenced from a site.webmanifest for Android and PWA install prompts. This tool generates all of them from a single source image, entirely with <canvas> resizing in your browser — no server, no upload.

How the favicon.ico file is actually built

A .ico file is a small, well-documented binary container, not a special image codec. Its header (ICONDIR) lists how many images are embedded; each image gets a 16-byte directory entry (ICONDIRENTRY) describing its width, height, bit depth, byte size, and — critically — the exact file offset where its data starts. Modern icon readers (every current browser and OS) accept a complete PNG file as that embedded data, so this tool never touches raw bitmap encoding:

ICONDIR (6 bytes): reserved=0, type=1, count=2

ICONDIRENTRY #1 (16 bytes): 16x16, 32bpp, size=<16px PNG length>, offset=38
ICONDIRENTRY #2 (16 bytes): 32x32, 32bpp, size=<32px PNG length>, offset=38 + <16px PNG length>

[16x16 PNG bytes][32x32 PNG bytes]

The offset field is the part most likely to be wrong: entry #2's offset must equal entry #1's offset plus entry #1's real, measured PNG byte length — not a rounded or assumed value. This tool's offset math was hand-verified in a Node test that checks every header field, the offset of every entry, and confirms that the bytes sitting at each declared offset actually begin with the PNG magic number (0x89 0x50 0x4E 0x47) before ever shipping.

How non-square images are handled

Stretching a non-square logo to force it into a square would distort it, so this tool never does that silently. Pick Crop to center square to keep the middle square portion of the image, or Pad to square to scale the whole image down to fit inside the square and fill the leftover space with a background color (or leave it transparent) — the square preview updates instantly so you can see exactly which one you're getting before downloading.

Examples

1. A wide wordmark padded into a square. A 600×200 PNG logo with Pad to square selected: the whole logo is scaled to fit and the leftover space is filled (transparent here), instead of being cropped to the middle letters. Every output is a square at the size each platform expects:

favicon-wide.png · 600×200px · 11765 bytes (not square — padding applied)

favicon.ico                  16×16 + 32×32 · multi-size .ico
apple-touch-icon.png         180×180px · PNG
android-chrome-192x192.png   192×192px · PNG
android-chrome-512x512.png   512×512px · PNG

2. Head tags for an SVG logo with a brand theme color. A square 64×64 SVG source with Theme color #2563eb. The same color goes into the theme-color meta tag and into theme_color and background_color in the generated site.webmanifest:

<link rel="icon" href="/favicon.ico" sizes="32x32">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="192x192" href="/android-chrome-192x192.png">
<link rel="icon" type="image/png" sizes="512x512" href="/android-chrome-512x512.png">
<link rel="manifest" href="/site.webmanifest">
<meta name="theme-color" content="#2563eb">

The manifest's name and short_name come out as "My Site", so replace them with your site's name before deploying. If the SVG came from a design tool, run it through the SVG Cleaner & XSS Sanitizer first, and if your brand color is in RGB, HSL or OKLCH, get its hex value from the Color Converter. For how browsers pick an icon from the manifest's icons list, see the icons member on MDN.

Frequently asked questions

Does this tool crop or stretch non-square images?

It never stretches an image to force it square, since that would distort it. Choose either center crop (keeps the middle square portion) or padding (scales the whole image down to fit, filling the extra space with a background color or leaving it transparent).

Is the generated favicon.ico a real, working icon file?

Yes. It's a genuine ICONDIR container built byte-by-byte with a 16x16 and a 32x32 PNG-compressed image inside, following the same format modern browsers and operating systems read — not a renamed PNG.

Can I upload an SVG logo?

Yes. SVG sources are rasterized in your browser using a canvas at each target size, so a vector logo comes out crisp at every resolution.

Is my image uploaded anywhere?

No. Every resize and file assembly happens locally using the Canvas API and typed arrays in your browser — your image never leaves your machine.