Favicon Generator: Build Every Browser Icon From One Source

A favicon looks like a minor detail until it fails. The tab shows a blank square, the iPhone home screen shows a screenshot of the page, or Android puts your logo inside a white circle with half the mark missing. Each symptom points to a different file: a missing ICO, an opaque 180 px PNG, or a maskable icon whose artwork sits too close to the edge.

The Favicon Generator on this site builds those files together from one source. You can upload an image or create a mark from a letter or emoji, adjust the shape, crop, and effects, then download a ZIP with browser PNGs, a multi-size ICO, an Apple touch icon, optional PWA and Windows assets, a web manifest, and an HTML snippet. The rendering happens in the browser, so the image is not uploaded anywhere.

This guide explains what each file does, how to choose the right size, and how to install the result without leaving a stale icon in a cache.

What a complete favicon set contains in 2026

A single 16×16 ICO is no longer enough, but a folder full of random exports is not the answer either. The useful set maps one file to each surface where the icon appears. The generator follows that map:

File Pixels Where it appears
favicon.ico 16, 32, and optionally 48 Legacy tab requests and direct /favicon.ico calls
favicon-16x16.png 16 Browser tab at standard density
favicon-32x32.png 32 Tab and taskbar at high density
favicon-48x48.png 48 Desktop shortcut and some bookmark surfaces
apple-touch-icon.png 180 iPhone and iPad Add to Home Screen
favicon-192x192.png 192 Android home screen and PWA install
favicon-512x512.png 512 PWA splash screen and store-style previews
maskable-192x192.png 192 Android adaptive icon with a safe zone
maskable-512x512.png 512 Large adaptive icon for install surfaces

The ZIP also includes site.webmanifest, favicon-snippet.html, and README.txt. Three optional PNG sizes, 64, 96, and 128 px, cover high-density tabs and listings that ask for a specific intermediate size. The optional SVG is a separate file and is linked from the snippet when enabled.

The table is not a checklist to fill by hand. Most of these files are the same drawing rendered at different widths, and the ICO is a container for three of those widths. Generating them separately is how versions drift: a new logo updates the 512 px PNG but leaves the old 32 px tab icon in place. One source and one export keep the set consistent.

The 180 px Apple file is the exception in the table. It is not just another resize. iOS treats it differently, and the next sections explain why.

Why the 16×16 render decides whether the icon works

The smallest icon is the hardest test. At 16 px, a thin outline, a small letter inside a detailed badge, or a photograph with several subjects turns into a gray smudge. Details that look elegant in a 512 px canvas disappear when the browser draws the same artwork in a 16 px tab.

Start with a square source, preferably 512 px or larger, and simplify before generating. A bold silhouette, one or two colors, and a clear negative space survive the downscale. Text is risky: a whole wordmark cannot be read at 16 px, and even a short word may lose its counters. A single initial or a simple symbol works better.

Padding matters as much as the shape. The generator's padding slider runs from 0 to 40%. A 10% padding on a 16 px icon leaves a 12.8 px drawing area, so the artwork has a little breathing room without becoming tiny. At 0%, a circular or rounded icon can look cramped because the visible shape already removes the corners.

The preview grid renders every selected size after you press Generate. Open the 16 px image before downloading the ZIP. If the mark is unreadable there, change the source or reduce the detail and generate again. Fixing the small size before upload is cheaper than replacing a favicon after a launch, when browsers and bookmarks may hold the old file for weeks.

Contrast is the other half of legibility. A pale gray mark on a white tile can pass a design review on a large monitor and still vanish in a dark browser theme. Check the icon against both light and dark tab backgrounds. The generator includes a dark preview switch for that reason.

ICO, PNG, and SVG: which format does what

The three formats solve different problems, and none of them replaces the other two.

The ICO file is a container, not a single image. It can hold 16, 32, and 48 px entries in one file, and browsers pick the entry that fits the space. The old convention of requesting /favicon.ico directly still matters because feed readers, bookmark tools, and some crawlers ask for that path without reading the page's link tags. Keep a real ICO at the site root even when the page declares PNG and SVG icons.

PNG files are the dependable modern fallback. A <link rel="icon" type="image/png" sizes="32x32"> tag tells the browser exactly what it is getting. The sizes attribute is not decoration: it lets the browser choose between the 16, 32, and 48 px files instead of scaling one image at random. PNG also preserves transparency, which is useful for a tab icon but not for the Apple touch icon.

SVG is the scalable option. One vector file can render crisply at any tab size, and a media query inside the SVG can swap colors for dark mode. Support is good in current Chrome, Edge, Firefox, and Safari, but it is not universal. iOS still needs the PNG fallback for home-screen use, and an older browser may ignore the SVG link entirely. Ship SVG as an enhancement, not as the only icon.

The generator's HTML snippet puts the ICO first, then the PNG sizes, then the Apple icon and manifest, and adds the SVG link only when the SVG option is on. Order is not a magic compatibility trick, but a clear set of alternatives helps a browser fall back without guessing.

If you change one format later, change the others in the same pass. A new SVG paired with an old ICO produces two different logos on the same page.

The Apple touch icon has stricter rules

The Apple touch icon is a 180×180 PNG used when someone taps Add to Home Screen in iOS Safari. It is also used in Reader Mode and some share surfaces. The rules are narrower than a normal favicon:

  • Use a PNG. iOS does not treat a JPEG as the home-screen icon.
  • Use an opaque background. Transparency can render as black or produce an unpredictable composite.
  • Do not pre-round the corners. iOS applies its own mask, and a pre-rounded image gets rounded twice.
  • Keep important artwork inside a 144×144 center area. The platform may apply a slight zoom or crop.

The generator gives the Apple icon its own background color and corner radius, so it can differ from the tab icon. It also checks the foreground color against that background. If the contrast is below 3:1, the glyph switches to a dark or light fallback instead of staying white on white. That matters most for a letter mark: a white initial on a white Apple tile is technically present in the file and visually absent on the phone.

The generator draws the 180 px file with a rounded shape when the Apple radius is above zero, but the surrounding PNG remains opaque. This is a compromise for previews and for platforms that do not apply their own mask. If you want the safest iOS result, set the Apple radius to 0 and let iOS do the rounding.

Apple caches home-screen icons aggressively. If the icon does not change after a new upload, remove the site from the home screen and add it again. A hard refresh in Safari does not always refresh the home-screen copy.

Maskable icons and the PWA manifest

Android does not simply place your icon on the home screen. It can crop the icon to a circle, a squircle, or another shape chosen by the device theme. A maskable icon reserves a safe zone for that crop. The important content belongs inside the central 80% of the image; the outer 20% may be cut away.

For a 512 px maskable icon, 80% is about 410 px. The generator applies a 10% inset on each side when it renders the maskable variants, which leaves that central area intact. The background still fills the whole tile, so the icon does not develop a transparent border after Android's mask.

The manifest tells the browser which files to use and how to present the installed app. A practical site.webmanifest includes:

  • name and short_name for the install prompt and home-screen label.
  • icons entries for 192 and 512 px PNGs with purpose: "any".
  • Separate maskable entries with purpose: "maskable".
  • theme_color for the browser UI and background_color for the splash screen.
  • display: "standalone" for an app-like window.

The generator builds those entries from the app name, short name, theme color, background color, and path prefix you enter. It lists the 192 and 512 px PNGs, adds the maskable files when that option is enabled, and includes the monochrome icon when selected. The 180 px Apple file stays out of the manifest because iOS reads the Apple link separately.

The path prefix is easy to overlook. If the icons live in /assets/icons/, set the prefix to /assets/icons/ and every manifest URL and snippet href follows it. A wrong prefix produces a manifest that loads but points to four 404s. The generator normalizes the value, adds leading and trailing slashes, and keeps one source for both the manifest and the HTML.

An SVG favicon is not a substitute for the manifest PNGs. The manifest icon list expects raster entries with explicit sizes values on most install surfaces. Keep the SVG as an additional browser-tab enhancement.

Windows tiles and the odd corners of the icon ecosystem

Windows is the part of the icon world most people forget until a site is pinned to the Start menu. The legacy tile set uses 70×70, 150×150, and 310×310 square PNGs plus a 310×150 wide tile. A browserconfig.xml file points to those images and sets the tile color.

The generator makes the whole group optional. Turn on Windows tiles and the ZIP adds the four PNGs and browserconfig.xml; leave the option off and the download stays smaller. The wide tile is composed as a 310×150 canvas with a 150 px icon centered at the 80 px mark, so the mark does not stretch across the wide format.

Most sites do not need the Windows group. Add it when the site is likely to be pinned by desktop users, when a client asks for a complete package, or when an existing browserconfig.xml already points to tile files. It is a small addition, but it is another place where an old logo can survive if the set is assembled by hand.

The ICO 48 option belongs to the same category. The default ICO contains 16 and 32 px entries, which covers tabs and the common legacy path. Some older shortcut surfaces prefer a 48 px entry, so the option adds it without changing the PNG set.

Inside the Favicon Generator: image, letter, or emoji

The tool has two source tabs. Upload accepts PNG, JPG, JPEG, WebP, SVG, and GIF, one file at a time, with a 15 MB limit. The file is read locally with the browser FileReader and drawn to a canvas. HEIC, AVIF, and TIFF are not decoded by the input, so convert those first if your camera or design app produced them.

The Letter / Emoji tab is for marks that do not need an image file. Type one to four characters, pick a background and foreground color, and choose a font family: system sans, Arial, Georgia, or Courier New. The weight control offers regular, semibold, and bold, with an italic switch and an auto-fit option. Auto-fit starts at a size based on the canvas and steps down until the glyph fits, which keeps a two-letter mark from overflowing its tile.

Shape and fit controls cover the cases that break a raw logo. Square, rounded, and circle change the silhouette. Padding runs from 0 to 40%, corner radius from 0 to 50%, and crop mode offers cover, contain, and stretch. Cover fills the tile and may crop the edges; contain keeps the whole image and leaves empty space; stretch changes the aspect ratio. Rotation is limited to 0, 90, 180, and 270 degrees, with horizontal and vertical flips. Trim removes fully transparent pixels before the icon is drawn.

Effects are optional and best used lightly. Bevel adds a highlight and shadow along the shape edge, with strength from 0 to 100%. Levels adjusts brightness and contrast from -100 to +100%. Tint applies a color over the artwork with opacity from 0 to 100%. These are useful for rescuing a flat logo, but a 16 px icon usually looks better with fewer effects, not more.

Choosing which output files to ship

The output sections control what lands in the ZIP. Extra PNG adds the 64, 96, and 128 px files. ICO 48 adds the third ICO entry. Maskable adds the 192 and 512 px safe-zone variants. Monochrome produces a black-on-transparent 512 px icon. SVG adds a vector file, and the dark SVG switch embeds a dark-mode color change. Windows adds the tile group and browserconfig. README adds the text instructions.

The manifest section is where the install metadata lives: app name, short name, theme color, background color, and path prefix. These values feed both site.webmanifest and the HTML snippet, so a path change does not have to be repeated in two places.

When you press Generate, the tool renders the preview grid but does not build every optional file yet. Download ZIP rebuilds the selected set and packages it with JSZip, which keeps the preview fast and ensures the archive matches the current settings. The separate SVG button exports just the vector, and the individual download buttons under each preview save one PNG. The snippet panel copies the exact link tags generated from the same options.

From ZIP to live site: install and cache-bust

Unzip the download and upload the files to the directory named in the path prefix. If the prefix is /, that means the site root. The ICO should be reachable at /favicon.ico, and the Apple icon at /apple-touch-icon.png. Put the manifest at the root as well unless the prefix says otherwise.

Paste the HTML snippet into the <head> of every page that should carry the icon. A typical result includes the ICO link, PNG links for 16, 32, and 48 px, the Apple touch icon, the manifest, and the theme color. If the SVG option was on, add its link too. The snippet uses the same prefix as the manifest, so relative paths and subdirectory installs work without hand editing.

After upload, test with the browser's Network panel. Request the ICO and check for a 200 response. A common failure is a server that returns an HTML 404 page with a 200 status or the wrong content type; the browser then ignores the file. The expected types are image/x-icon for ICO, image/png for PNG, and image/svg+xml for SVG. A response of text/html means the path is wrong even if the status looks green.

Caching is the next trap. Browsers store favicons longer than ordinary page assets, sometimes for weeks. A normal reload may not fetch the new file. Hard-refresh first, then version the URL with a query string such as favicon.ico?v=2, or rename the file and update the links. Content-hashed filenames are the most reliable long-term approach because a new build gets a new URL. If the site sits behind a CDN, purge the icon paths as well as the HTML.

Check robots.txt if the icon is missing from search results but works in a tab. Google fetches favicons independently and respects robots rules; a disallowed path can leave a generic globe next to the site. The icon itself is not a ranking factor, but it is part of how the result looks.

Finally, remove the old exports from the server when you replace a set. Old favicon-16x16.png files that are no longer linked still resolve, and a stale bookmark or an old page template can keep requesting them. A clean directory listing makes the current set obvious.

A practical pre-launch checklist

Run this list before calling the icon work finished:

  1. Open the 16 px preview and confirm the mark is readable without guessing.
  2. Check the 32 and 48 px PNGs for sharp edges and consistent color.
  3. Confirm the Apple icon is 180×180, PNG, and opaque, with no pre-rounded corners.
  4. Open the manifest and verify the 192 and 512 px entries, the maskable entries, the name, and the colors.
  5. Confirm the maskable artwork sits inside the central safe zone.
  6. Load /favicon.ico directly and check the content type and status.
  7. Paste the snippet into the page head and confirm every href resolves.
  8. Hard-refresh, then test in a private window to separate cache from deployment.
  9. Check the icon in a light tab theme and a dark tab theme.
  10. Keep the source image and the generated ZIP together for the next update.

The checklist is short because the generator has already done the repetitive work. The remaining decisions are about the mark and the paths, not about resizing nine files by hand.

Frequently Asked Questions

Is a single 512×512 PNG enough for a favicon?

No. A 512 px PNG is a good source and a useful PWA icon, but a browser tab may request a 16 or 32 px file and the legacy /favicon.ico path still expects an ICO. Ship the ICO, the small PNGs, the Apple icon, and the manifest icons together.

Should I use ICO or PNG for the browser tab?

Use both. The ICO covers legacy requests and the root fallback, while PNG entries with explicit sizes attributes give modern browsers a clean choice. SVG can be added for scalable rendering, but it does not remove the need for the PNG fallback.

Why does iOS show a screenshot instead of my icon?

The page is probably missing a valid Apple touch icon, or the file is transparent, JPEG, or the wrong size. Export an opaque 180×180 PNG, link it with rel="apple-touch-icon", then remove and re-add the site on the home screen to clear iOS's cached copy.

What makes an icon maskable?

A maskable icon keeps its important content inside the central 80% safe zone and lets the platform crop the outer edge. The manifest entry uses purpose: "maskable". A normal icon may lose its edges when Android applies a circular or squircle mask.

Does the generator upload my image?

No. The file is read with the browser FileReader, drawn to a canvas, and encoded in the page. The ZIP is assembled locally with JSZip. There is no upload endpoint, account, or server-side copy of the artwork.

Can I create a favicon from a letter or emoji?

Yes. The Letter / Emoji tab accepts up to four characters, two colors, four font families, three weights, italic, and auto-fit. The same renderer produces the PNG, ICO, Apple, PWA, SVG, and manifest outputs.

Why does my browser still show the old icon?

Favicon caches are stubborn. Hard-refresh, open the site in a private window, and check the Network panel for a 200 response with the right content type. If the server is serving the new file, version the URL with a query string or rename the file and update every link.

Yurii Hierts
Yurii Hierts

Odesa, Ukraine · SO reputation 2000 · Badges: 1🥇24🥈35🥉 · SO member since 2014