Favicon Generator
Add an image, or type up to 4 characters or an emoji, pick the colors, and download a complete favicon set. The example, the letter “P” in #ffffff on #2563eb, makes 9 files: PNGs at 16, 32, 48, 180, 192 and 512 px (the 180 px one is the apple-touch-icon), a favicon.ico holding 16, 32, 48 px, an SVG icon, and a web manifest. You also get the HTML link tags to paste into your page head, and one ZIP of everything. Your image is drawn on a canvas in your browser and the files are built there: nothing is uploaded.
Updated Runs in your browser: nothing you enter is uploadedHow this tool works
Preview
The PNG files at their real sizes. At 16 px only a big, simple shape stays readable.
16 px
32 px
48 px
180 px
Your files
- favicon.icoClassic favicon with 16, 32, 48 px inside
- icon.svgSharp at any size in browsers that support SVG icons
- favicon-16x16.png16 × 16 px: Browser tab, small
- favicon-32x32.png32 × 32 px: Browser tab, high-density screens
- favicon-48x48.png48 × 48 px: Windows shortcuts, search result lists
- apple-touch-icon.png180 × 180 px: iPhone and iPad home screen
- android-chrome-192x192.png192 × 192 px: Web manifest, Android home screen
- android-chrome-512x512.png512 × 512 px: Web manifest, install splash screen
- manifest.webmanifestWeb app manifest naming the 192 and 512 px icons
HTML for your page head
<link rel="icon" href="/favicon.ico" sizes="32x32">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/manifest.webmanifest">Web manifest (manifest.webmanifest)
{
"name": "My Site",
"short_name": "My Site",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#2563eb",
"background_color": "#2563eb",
"display": "standalone"
}The files and what each size is for
| File | Size | Used for |
|---|---|---|
| favicon.ico | 16, 32, 48 px | Classic favicon; also what browsers request from the site root when no tag is given |
| icon.svg | Any size | Sharp at any size in browsers that support SVG icons (text and emoji icons only) |
| favicon-16x16.png | 16 × 16 px | Browser tab, small |
| favicon-32x32.png | 32 × 32 px | Browser tab, high-density screens |
| favicon-48x48.png | 48 × 48 px | Windows shortcuts, search result lists |
| apple-touch-icon.png | 180 × 180 px | iPhone and iPad home screen |
| android-chrome-192x192.png | 192 × 192 px | Web manifest, Android home screen |
| android-chrome-512x512.png | 512 × 512 px | Web manifest, install splash screen |
| manifest.webmanifest | n/a | Web app manifest that points at the 192 and 512 px icons |
Inside favicon.ico
| Part | Bytes | Contents |
|---|---|---|
| ICONDIR header | 6 | Reserved 0, type 1 (icon), number of images |
| ICONDIRENTRY, one per image (3 here) | 16 each | Width, height, colors 0, reserved 0, planes 1, bit count 32, data size, data offset |
| Image data | Varies | A complete PNG file for each size, stored one after another |
| Directory total | 54 | Header plus 3 entries: the first image starts at this offset |
How to make a favicon in your browser
- Choose the source. Pick “Text or emoji” and type up to 4 characters, or pick “Image” and choose, drop or paste a picture. A square image with the subject centered works best; other shapes are cropped to the middle square.
- Set the colors and shape. Choose the text color, the background color and a square, rounded or round tile. Check the previews at 16 and 32 px: small sizes need big, simple shapes.
- Name your site and set the folder. The site name goes into the web manifest. If the icons will not sit in the site root, type the folder, such as /icons/, so the tags and manifest point at the right place.
- Download the set. Download the ZIP, or single files from the list. Upload the files to your site, then copy the link tags into the <head> of every page.
Frequently asked questions
- Are my images uploaded anywhere?
- No. The image is read and drawn by your browser on your device, and the PNG, ICO, SVG and ZIP files are built in memory there. Nothing is sent to a server or saved. If you allow analytics, the site records only that a button was used, never an image, text or color.
- Which favicon sizes do I need?
- A small set covers current browsers and devices: a favicon.ico (16, 32, 48 px inside), an SVG icon if you can supply one, a 180 × 180 px apple-touch-icon for iOS home screens, and 192 × 192 and 512 × 512 px PNGs named in a web manifest for Android and installable web apps. This tool also writes the loose 16, 32 and 48 px PNGs for places that want them.
- What HTML do I add to my pages?
- Put these tags in the head: <link rel="icon" href="/favicon.ico" sizes="32x32"> <link rel="icon" href="/icon.svg" type="image/svg+xml"> <link rel="apple-touch-icon" href="/apple-touch-icon.png"> <link rel="manifest" href="/manifest.webmanifest"> The sizes="32x32" on the ICO link stops Chrome from preferring the ICO over the SVG, and the other tags are listed for the file names this tool writes. The tool updates them when you change the folder.
- Do I still need a favicon.ico?
- Yes, it is still worth having. Browsers, feed readers and other tools request /favicon.ico from the site root even when a page has no icon tag, and some do not read PNG or SVG icons. Put favicon.ico in the root folder as well as linking it.
- Why is the apple-touch-icon filled instead of transparent?
- iOS rounds the corners itself and fills any transparent area with black, so the 180 × 180 px icon is always drawn as a full square in your background color, even when your favicon uses a round or rounded tile.
- Why does an emoji look different in the favicon than on my phone?
- Emoji are drawn with the emoji font on your device (Apple Color Emoji, Segoe UI Emoji or Noto Color Emoji), so the PNG files show that device’s style. The SVG favicon holds the emoji as text, so each visitor’s browser draws it with their own emoji font. For one exact look everywhere, use the PNGs or upload an image.
- What does the web manifest do?
- It is a small JSON file that names your site and lists icons, so Android and browsers can show your icon when someone adds the site to their home screen or installs it as an app. The manifest from this tool lists the 192 and 512 px icons, uses your background color as the theme and background color, and sets display to standalone. Edit the name and colors to suit.
- What image works best?
- A simple, high-contrast, square picture with the subject in the middle. A favicon is shown as small as 16 px, so fine detail disappears. A logo mark works better than a full logo with words. The tool crops to the center square; very large images (over 50 megapixels) are refused so the tab does not run out of memory.
- Is the icon good enough for a “maskable” app icon?
- The 512 px icon is declared as a regular icon. Maskable icons need the artwork kept inside a central safe zone (a circle with 80% of the icon’s width as its diameter), because the phone may crop the edges to its own shape. If you want that, keep your text or logo small and centered, or add a "purpose": "maskable" entry to the manifest yourself.
How it works
Text and emoji icons are laid out once: the font size is chosen so up to four characters fit with a margin (about 0.88 of the tile width, never more than about two-thirds of the tile for letters), the text is centered, and the tile is a square, a rounded square (corner radius 22% of the width) or a circle. The same layout is written as an SVG (512 × 512 viewBox) and drawn onto canvases for the PNG sizes. An image is cropped to its centered square, drawn onto a working canvas, and then halved step by step toward each target size with high-quality smoothing, because one big jump skips pixels and looks jagged; EXIF rotation is applied when the picture is opened. Image icons use the same square, rounded or round tile as a mask, and the 180 px apple-touch-icon is always a full square on your background color. favicon.ico is a PNG-in-ICO file: a 6-byte directory, a 16-byte entry for each of the 3 sizes, then the PNG files. The ZIP stores every file without compression (the PNGs are already compressed), with a CRC-32 for each file. The link tags follow the short set many current guides recommend, and the manifest lists the 192 and 512 px PNGs. Icon recommendations change over time, so check that the tags suit the browsers you must support.
Sources
- Evil Martians: How to Favicon in 2021 (updated): six files that fit most needs
- MDN: Define your app icons (sizes, maskable icons and the safe zone)
- MDN: icons member of the web app manifest
- Wikipedia: ICO file format (ICONDIR, ICONDIRENTRY and PNG-in-ICO)
- PKWARE: ZIP file format specification (APPNOTE.TXT)
- MDN: HTMLCanvasElement.toBlob()
More free tools
- Image ResizerResize and compress JPEG, PNG and WebP images by width, height, percent or longest side, and convert the format. Runs in your browser; nothing is uploaded.
- Image to Base64 ConverterTurn an image into a Base64 data URI with ready HTML, CSS and Markdown snippets and exact sizes, or decode Base64 back to an image. Runs in your browser.
- QR Code GeneratorTurn a link, text, Wi-Fi login, email or phone into a QR code. Set error correction, size and colors, then download PNG or SVG. Made on your device.
- Image Color PickerPick any pixel of an image for its HEX, RGB, HSL and OKLCH value, and get its dominant colors with contrast. Runs in your browser; nothing is uploaded.
- SVG OptimizerMinify SVG code or an .svg file safely: removes metadata, editor data and unused ids, rounds numbers, previews both. Runs in your browser.
- Meta Tag GeneratorGenerate a copy-ready head snippet: title, description, canonical, robots, Open Graph and X card tags, with length checks and search and social previews.
More: Web, URLs, images and networkAll developer toolsAll toolsHome & DIY calculators