Favicon Generator
Turn one image into favicon.ico, 16 to 512 px PNGs, an Apple touch icon and manifest icons, plus the exact <head> tags. Runs in your browser.
The interactive tool loads here when JavaScript runs.
About this toolWhat is the Favicon Generator?
The Favicon Generator takes one source image and draws it onto square canvases at the sizes browsers and devices ask for: 16, 32, 48 and 96 px PNGs for tabs and shortcuts, a 180 px apple-touch-icon.png for iPhone and iPad home screens, and 192 and 512 px icons for a Web App Manifest. It can also pack the 16, 32 and 48 px images into a single favicon.ico.
You control the background (a solid colour or transparent), the padding around the artwork and the corner rounding, which is set as a percentage so a 16 px tab icon and a 512 px splash icon get the same shape. Wide or tall images are fitted inside the square rather than stretched. When you are done, Copy HTML gives you the link tags for exactly the files you generated, and a site.webmanifest file is produced when you include the 192 or 512 px size.
Everything is drawn with the canvas API in your browser, so the image never leaves your machine. The tool does not trace or simplify artwork; if your logo has fine detail, the 16 px version will show that detail as mush, and the fix is a simpler mark, not a better resampler.
- favicon.ico with PNG-compressed 16, 32 and 48 px entries
- Apple touch icon, PNG favicons and 192/512 manifest icons
- Aspect-ratio-safe fitting, padding and percentage corner radius
- Generated <head> tags and a starter site.webmanifest
- Runs in your browser; the image is not uploaded
Updated
How to use the Favicon Generator
- Click Select Image and choose a square PNG, JPG, WebP or SVG, ideally 512 px or larger. A preview appears under the upload box.
- Under Settings, choose Transparent Background or pick a Background Color, then set Padding (%) and Corner Radius (% of icon size, 50 = circle).
- Under Select Sizes, keep the default set (16, 32, 48, 180, 192 and 512) or use Common, All or None, and leave "Also pack 16, 32 and 48 px into favicon.ico" ticked if you want an ICO file.
- Click Generate Favicons. Each file appears with a preview and its own download button; Download All saves them one after another.
- Click Copy HTML and paste the tags into your page <head>. Put the files in your site root, or change the paths in the tags to match where you put them.
Worked examples
A wide logo at 32 px
Input
200 x 100 px logo, Padding 0%, transparent background, 32 px selected
Output
favicon-32x32.png with the logo drawn 32 x 16 px, centred vertically (8 px empty above and below)
The image is scaled to fit the square and keeps its 2:1 shape. A favicon needs a square mark, so a wordmark usually works better cropped to its symbol or first letter before you upload it.
The generated head tags
Input
Default sizes with favicon.ico enabled
Output
<link rel="icon" href="/favicon.ico" sizes="any"> <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="48x48" href="/favicon-48x48.png"> <link rel="apple-touch-icon" href="/apple-touch-icon.png"> <link rel="manifest" href="/site.webmanifest">
The 192 and 512 px files are not linked directly; they are listed in site.webmanifest, which the manifest link points to. Edit the name and short_name fields in that file before publishing.
Background and insight
Favicons started with Internet Explorer 5 in 1999, which looked for a file called favicon.ico in the site root. That habit stuck: most browsers still request /favicon.ico when a page declares no icon, which is why a missing one fills server logs with 404s. The ICO container is a Microsoft format that holds several bitmaps of different sizes in one file. Since Windows Vista it can hold PNG-compressed images, and that is the variant this tool writes, with a 6-byte header, a 16-byte directory entry per size, then the PNG data.
Modern pages declare icons explicitly. A PNG link with a sizes attribute covers browsers, rel="apple-touch-icon" covers iOS home screens (180 x 180 is the size current iPhones use, and iOS ignores transparency there, so give it a solid background), and a Web App Manifest lists the 192 and 512 px icons that Android and installable web apps use. Google Search shows a site icon next to results and its documentation asks for a square icon that is a multiple of 48 px, which is why 48 and 96 are in the list.
The biggest practical gotcha is caching. Browsers cache favicons aggressively and separately from the page, so after replacing one you often see the old icon for days. Changing the file name or adding a query string such as /favicon-32x32.png?v=2 in the link tag forces a fresh fetch.
Common use cases
Launching a new site
Produce the full icon set from a logo in one pass instead of exporting seven sizes by hand from a design tool.
Making a web app installable
Get the 192 and 512 px manifest icons and a starter site.webmanifest that Chrome and Android look for.
Fixing a blurry tab icon
Replace a single upscaled 16 px file with properly sized 16, 32 and 48 px versions so high-density screens get a sharp icon.
Stopping favicon 404s
Generate a real favicon.ico for the site root so the automatic /favicon.ico request stops failing.
Tips and limitations
- Start from at least 512 x 512 px. Downscaling is clean; upscaling a small logo just enlarges its blur.
- Check the 16 px preview first. If you cannot recognise the mark at that size, simplify it: one letter or symbol, thick strokes, high contrast.
- Give the Apple touch icon a solid background. iOS does not keep transparency there and fills it in.
- Transparent favicons can disappear on dark browser themes. Either add a background or test the icon on both light and dark tabs.
- Corner radius only clips the square; it does not move your artwork. Add some padding when you round heavily so corners do not cut into the logo.
- If the old icon still shows after deploying, rename the files or add ?v=2 to the hrefs; favicon caches are stubborn.
Sources and further reading
- Define a favicon to show in search results, Google Search Central. Square icons in multiples of 48 px
- icons: Web app manifest, MDN Web Docs. The 192 and 512 px manifest icons
- Configuring Web Applications, Apple Developer. apple-touch-icon for iOS home screens
- Icons, Microsoft Learn. The ICO file header and directory entries
- HTML Standard: Link type "icon", WHATWG. The /favicon.ico fallback and the sizes attribute
Frequently asked questions
What favicon sizes do I actually need?
A favicon.ico (or a 32 px PNG) for browser tabs, a 180 x 180 apple-touch-icon.png for iOS home screens, and 192 and 512 px PNGs in a Web App Manifest for Android and installable apps. Add 48 or 96 px if you care how the icon looks in Google Search results.
Is the favicon.ico from this tool a real ICO file?
Yes. It is a proper ICO container with a directory entry for each of the 16, 32 and 48 px images, stored as PNG data inside. Windows Vista and later, and every current browser, read PNG-based ICO files. Very old software that only understands BMP-based ICO entries will not.
Why does my old favicon still show after I replaced it?
Browsers cache favicons separately from the page and for a long time. Hard-refreshing the page often is not enough. Rename the file or add a version query such as ?v=2 to the href in your link tag, and the browser will fetch the new one.
Can I use an SVG as the source image?
You can upload an SVG and the tool will rasterise it to PNG at each size. If the SVG has no width and height attributes, some browsers report no intrinsic size and the image is fitted to the full padded square. The output is always PNG and ICO, not SVG.
Should a favicon have a transparent background?
For browser tabs, transparency is fine and lets the icon sit on the tab colour, but test it on dark mode. For the Apple touch icon, use a solid background, because iOS fills transparent areas. Manifest icons can be either, though Android may place them on its own background shape.
Where do I put the favicon files on my server?
The simplest setup is the site root, which is what the generated tags assume (href="/favicon.ico" and so on). If you keep them in a folder such as /icons/, change every href in the HTML and every src in site.webmanifest to match.
Why does the 16 px favicon look blurry or unreadable?
At 16 x 16 there are only 256 pixels to work with, so detailed logos turn into noise no matter how well they are resampled. Use a simplified mark for small sizes, such as a single letter or symbol with thick strokes and strong contrast.
Is there an in-depth guide to the Favicon Generator?
Yes. “Favicon Sizes and Formats: What Browsers and Phones Actually Use” covers the background, how it works, common pitfalls and worked examples. Read the full guide.
Related Tools You May Like
Free, in-browser tools that pair well with this one.