Favicon Generator
Resize an uploaded image in the browser, set padding and background, and download PNG, ICO, and HTML link tags.
Your data stays in your browser. This tool processes your input locally and does not upload it to a server.
What is a favicon generator?
A favicon generator converts one image into the icon files a website needs for browser tabs, bookmarks and phone home screens. This tool resizes your image in the browser to 16, 32, 48, 180, 192 and 512 pixel PNGs, packs a favicon.ico, and gives you HTML link tags and a ZIP.
What you get
Upload an image up to 8 MB, choose a background color and padding, and click Generate. You can download each PNG, a favicon.ico that holds the 16, 32 and 48 pixel versions, or a ZIP containing all PNGs, favicon.ico and a links.html file.
Each icon is drawn on a square canvas filled with your background color. The image is scaled to fit inside the padding, keeping its aspect ratio and centered. Padding gives logos breathing room, and the background fills transparent areas.
Installing the icons
Copy the files to your site’s public root and paste the link tags into the head of your HTML. Browsers also request /favicon.ico by default, so keeping that file in the root is a safe fallback. The 180 pixel PNG is used as the Apple touch icon, and the 192 and 512 pixel sizes are commonly referenced from a web app manifest.
For best results start from a square image of at least 512 by 512 pixels with simple, bold shapes. Fine detail disappears at 16 pixels.
Privacy
The image is read and resized with the browser’s canvas, and the ZIP is built in memory. Your file is never uploaded to a server.
Examples
Generated files from one logo
Input
A square logo.png, background #ffffff, padding 0Output
favicon-16.png, favicon-32.png, favicon-48.png, favicon-180.png, favicon-192.png, favicon-512.png, favicon.ico, links.html (all in festivkit-favicons.zip)Link tags produced
Input
Click "Copy HTML"Output
<link rel="icon" href="/favicon.ico" sizes="48x48" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32.png" />
<link rel="icon" type="image/png" sizes="48x48" href="/favicon-48.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/favicon-180.png" />
<link rel="icon" type="image/png" sizes="192x192" href="/favicon-192.png" />
<link rel="icon" type="image/png" sizes="512x512" href="/favicon-512.png" />The hrefs match the file names in the ZIP, so you can unzip the files into your site root and paste the tags into your <head> as they are.
Common mistakes and edge cases
- Place the files where the tags point. The tags use root-relative paths such as /favicon-32.png, so the files must sit in your site root or you must edit the hrefs.
- The tool fills the background with a solid color, so transparent areas of your logo become that color. There is no option to keep transparency.
- A non-square image is scaled to fit and centered, leaving bars of background color. Crop to a square first for a tighter fit.
- Detailed logos and small text are unreadable at 16 and 32 pixels. Use a simplified mark or a single letter.
- Some browsers request /favicon.ico on their own, so keep that file in your site root even though the tags also reference it.
- Browsers cache favicons aggressively. If you do not see the new icon, hard refresh or clear the cache.
How to use this tool
- Upload a square image if you have one.
- Set the background color and padding.
- Generate the sizes, then download a single file or the ZIP.
Frequently asked questions
Which favicon sizes does this tool create?
It creates PNG files at 16, 32, 48, 180, 192 and 512 pixels. The favicon.ico packs the 16, 32 and 48 pixel versions. The 180 pixel file suits an Apple touch icon, and the 192 and 512 pixel files suit web app manifests and installable apps.
Is my image uploaded to a server?
No. The image is loaded into your browser, resized with the canvas API and packaged into a ZIP locally. Nothing is transmitted, so you can use unreleased logos safely. Images larger than 8 MB are rejected.
What is the best image to use for a favicon?
Use a square image, ideally 512 by 512 pixels or larger, with a simple bold shape and strong contrast. Favicons appear as small as 16 pixels, so avoid thin lines and small text. SVG, PNG, JPG and other formats your browser can display are accepted as input.
Where do I put the favicon files?
Place them in your site’s public root so they load from paths like /favicon.ico, then add the generated link tags to the head of every page. Browsers request /favicon.ico automatically even without a tag, so keep that file at the root.
Does the tool generate a web app manifest?
No. It produces PNGs, an ICO and link tags only. If you want an installable web app, create a manifest.webmanifest yourself and reference the 192 and 512 pixel icons from its icons array.
References
Last reviewed