Favicon Generator
Generate every favicon size and an ICO container from one source image.
- Your draft is kept in this tab's session storage and cleared when the tab closes.
Draft kept in this tab
Your draft is kept in this tab's session storage and cleared when the tab closes. - Processing happens in this page. No application server receives your input.
Runs in your browser
Processing happens in this page. No application server receives your input.
Source image
Favicon files
- Source format
- PNG
- Source dimensions
- 512 ร 512 px
- Letterbox mode
- Square (1:1 โ no letterbox)
- Archive entries
- 4
- Archive size
- 324 B
| Name | Resolution | Media type | Size | Save |
|---|---|---|---|---|
| favicon.ico | 16ร16, 32ร32, 48ร48 | image/x-icon | 189 B | |
| favicon-16.png | 16ร16 | image/png | 45 B | |
| favicon-32.png | 32ร32 | image/png | 45 B | |
| apple-touch-icon.png | 180ร180 | image/png | 45 B |
HTML link tags
What this tool does
Renders a single raster or SVG source image into the standard favicon sizes (16ร16 through 512ร512), packs a multi-resolution favicon.ico (16ร16, 32ร32, 48ร48), assembles favicons.zip locally, and generates the corresponding HTML <link> tags without uploading any image.
Generation & safety rules
- PNG or raster image under the size cap: decodes dimensions and emits a ZIP of the requested sizes, favicon.ico, and HTML <link> tags.
- SVG source: decodes through the sanitized rasterizer without executing active content and produces the same multi-size PNG + ICO archive.
- Non-square source image: preserves aspect ratio via centered letterbox placement filled with the selected background color rather than stretching.
- Non-image file: rejects with DecodeFailed before emitting partial output.
- Oversized source: rejects files above 16.0 MB with InputTooLarge and dimensions above 8,192 pixels on any side with DimensionsTooLarge before canvas allocation.
Operational limits & execution
Maximum source file size: 16.0 MB (InputTooLarge above cap). Maximum source dimension: 8,192 ร 8,192 px on the longest side (DimensionsTooLarge checked before decode). Decode and canvas draw run locally in-page; ZIP assembly runs in codegen.worker.ts via fflate.
Worked example
Input:
a 512 by 512 PNG, sizes [16, 32, 180]Expected output:
favicons.zip containing favicon-16.png, favicon-32.png, apple-touch-icon.png
<link rel="icon" sizes="16x16" href="/favicon-16.png">Scope: this covers the page itself. Your browser, operating system, clipboard, downloads, extensions, and crash recovery may keep copies, and a compromised site origin would not be protected.