How to Create a Favicon
A favicon is a small identity mark, not a miniature version of every detail in your logo. The hard part is often choosing what survives at 16 pixels and installing the right file—not converting an extension.
isMust editorial guide · Examples checked
Start with a mark that survives reduction
A wide wordmark can become an unreadable stripe in a browser tab. Use a distinctive symbol or a short initial with space around it. Inspect the actual 16px and 32px previews at their native size; a beautiful 512px preview cannot establish small-size legibility.
For a transparent source, examine it on light and dark backgrounds. A dark outline that disappears on a dark tab needs a contrasting shape or background. Enlarging a tiny raster source makes more pixels, not new detail.
- Keep an editable master separately from the exported favicon files.
- Check narrow gaps and thin strokes; they may merge at small sizes.
- Use Contain when the entire mark must remain visible. Use Cover only when cropping is acceptable.
Contain vs Cover: a concrete geometry example
Take a 512×256 rectangular source and a 32×32 output with no padding. Contain scales it to 32×16, centered with 8px above and below. Cover scales it to 64×32 and crops 16px from each side. These are the converter’s fit calculations, not a claim that either treatment looks better for every logo.
This is why cropping a long name can remove letters even though the exported file is the correct size. Choose the composition before generating the final package.
| Fit | Scaled source | Position in 32×32 canvas |
|---|---|---|
| Contain | 32×16 | x=0, y=8 |
| Cover | 64×32 | x=−16, y=0 |
Know what each generated file is for
isMust writes a real ICO container with six PNG-encoded entries, plus separate PNG assets in its optional package. This is not a guarantee of compatibility with legacy applications requiring BMP-only ICO entries. Browser favicon installation and an installable web app are separate jobs.
| File | Purpose / caution |
|---|---|
| favicon.ico | 16, 32, 48, 64, 128 and 256px entries; convenient multi-size icon |
| favicon-16x16.png / favicon-32x32.png / favicon-48x48.png | Individual raster sizes; do not simply rename one to .ico |
| apple-touch-icon.png | 180×180 asset for a touch-icon declaration |
| icon-192.png / icon-512.png | Assets referenced by the optional manifest; not guaranteed maskable icons |
Install the files, then verify the actual response
Upload the exported files to your own website and add the relevant link declarations to the document head or your framework’s metadata system. This example assumes the files are at the site root. Adjust paths for your deployment and avoid adding a second conflicting icon configuration.
Open the icon URL directly. It should return the intended image, not a login page, a redirect loop or an HTML fallback with HTTP 200. Then check a normal tab and a dark-themed tab. A stale tab icon is not proof that the new file failed to upload.
<link rel="icon" href="/favicon.ico">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">When the old icon keeps appearing
Separate file delivery from browser caching: inspect the published head, follow the declared URL, verify the response type and compare the downloaded file. Test a fresh browser profile or clear the relevant site cache. If you temporarily change an asset filename while debugging, update the declaration too; do not keep rotating URLs as a substitute for correct caching.
Google Search’s favicon is a separate surface. Google documents square icons, crawler access to the homepage/icon, and a stable URL. Browser-tab success does not guarantee search-result display or immediate refresh. Refer to the current Google guidance rather than promising inclusion.
- Wrong picture at the declared URL: fix upload/path/configuration first.
- Right picture at the URL, stale tab: investigate browser/site caches.
- Right tab icon, absent Search icon: review crawl access and Google’s eligibility guidance; do not repeatedly reconvert the same file.
Sources and method references
Try the related tools
- PNG to ICO Converter — Convert PNG, JPG, WebP or SVG images into a multi-size ICO file and complete favicon package.