Why use Favicon Generator
Upload a logo or any other image and this tool draws it at six square sizes: 16x16, 32x32, 48x48, 180x180, 192x192 and 512x512 pixels. Each one downloads as a PNG with its conventional filename, such as favicon-32x32.png or apple-touch-icon.png, and a block of five link tags is ready to copy into the head of your page. A source that is not square is scaled to fit and centred, with a background colour you choose filling the rest. The work is done by your browser on your own device. The output is PNG only: there is no favicon.ico, SVG icon or web manifest file.
Favicon sizes this generator creates and where each one is used
All six files are square PNGs. The filename is what you get on download.
| Size | Filename | Used for | In the generated tags |
|---|---|---|---|
| 16x16 | favicon-16x16.png | Browser tabs on standard-density screens | Yes, rel="icon" |
| 32x32 | favicon-32x32.png | Tabs on high-density screens, taskbars and shortcut lists | Yes, rel="icon" |
| 48x48 | favicon-48x48.png | Desktop shortcuts and site icons shown beside search results | No, add your own tag if you want it |
| 180x180 | apple-touch-icon.png | iPhone and iPad home screen | Yes, rel="apple-touch-icon" |
| 192x192 | android-chrome-192x192.png | Android home screen icon | Yes, rel="icon" |
| 512x512 | android-chrome-512x512.png | Splash screens and install prompts for web apps | Yes, rel="icon" |
To use the 48x48 file, add: <link rel="icon" type="image/png" sizes="48x48" href="/favicon-48x48.png">
The favicon HTML code the tool gives you
These five lines go between <head> and </head> on every page. The paths assume the files sit in the site root.
- <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
- <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
- <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">
How a non-square image is fitted into each icon
The image is scaled by the smaller of size / width and size / height, then centred. Whatever is left over is filled with the background colour.
Square 512x512 logo
Source 512 x 512, background white
The logo fills every icon edge to edge. The 512x512 file is drawn at original size and the other five are scaled down.
Wide 1200x600 wordmark
Source 1200 x 600, background white
In the 32x32 icon the artwork is 32 x 16 px with 8 px bars above and below. In the 180x180 icon it is 180 x 90 px with 45 px bars.
A wordmark this wide is only 8 px tall at 16x16. Crop to a square symbol first.
Portrait 800x1000 illustration
Source 800 x 1000, background #0f172a
In the 192x192 icon the artwork is 153.6 x 192 px with 19.2 px bars of the dark colour on the left and right.
16:9 screenshot, 1920x1080
Source 1920 x 1080, background white
In the 512x512 icon the artwork is 512 x 288 px with 112 px bars above and below. At 16x16 it is 16 x 9 px.
What is not included: favicon.ico, SVG, the manifest and transparency
The background colour is painted across the whole square before the image is drawn, so the icons are never transparent. A logo on a transparent background comes out on white unless you pick another colour. That suits the apple-touch-icon, which needs a solid background anyway, but it means a tab icon cannot blend into a dark browser theme. Choose the colour your logo is meant to sit on.
No favicon.ico is produced. Browsers ask for /favicon.ico on their own when a page declares no icon, so without the link tags, or on pages such as raw PDF or image URLs that have no head section, visitors see the default blank icon.
No site.webmanifest is written either. Android and installable web apps read their icons from that file, so if you want the 192 and 512 pixel icons used on install, create a manifest that lists them: an icons array with one entry per file, each giving src, sizes and type image/png, then link it with rel="manifest".
The files download one at a time, not as a ZIP, and there is no SVG output or separate dark-mode icon.
Making a logo readable at 16x16
- Use the symbol or first letter, not the full name. Text set smaller than about 10 px tall turns into a smudge.
- Leave little or no padding in the source. At 16 pixels, a 10 percent margin on each side costs you roughly 3 of them.
- Prefer two or three flat colours with strong contrast over gradients and thin outlines.
- Pick a background that differs from both light and dark tab bars, or accept white and check it in both themes.
- Start from 512x512 or larger. A crisp large source gives the browser more to average when it scales down.
- After deploying, reload with the cache bypassed. Browsers hold on to favicons longer than most files.
Using Favicon Generator
- 1
Under Source image (square works best), choose your logo or icon. Files up to 30 MB are accepted.
- 2
Set Background for non-square/transparent areas. It defaults to white and is painted behind the image in every size.
- 3
Check the six previews, paying most attention to 16x16 and 32x32, where fine detail disappears first.
- 4
Download each PNG. The filenames are already the ones the generated tags refer to.
- 5
Copy the block labelled HTML to add inside <head> and paste it into your page template.
- 6
Upload the PNG files to the root folder of your site, so that /favicon-32x32.png and the others resolve.