Hunt
Skip to content

Favicon Generator

Turn a logo into a complete favicon set: favicon.ico with 16, 32 and 48 pixel images, PNG favicons, a 180 × 180 Apple touch icon, 192 and 512 pixel icons for Android and installed web apps, and a web manifest. Copy the HTML tags, download everything as a ZIP, and check the preview on light and dark tab bars.

Runs in your browser

or drop or paste it here. A square SVG or a PNG of at least 512 × 512 works best. Nothing is uploaded.

0%
Web app manifest

Add to your <head>

Put the files in your site's root folder, then add these tags.

<link rel="icon" href="/favicon.ico" sizes="32x32">
<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="manifest" href="/site.webmanifest">
<meta name="theme-color" content="#ffffff">

site.webmanifest

{
  "name": "",
  "short_name": "",
  "icons": [
    {
      "src": "/android-chrome-192x192.png",
      "sizes": "192x192",
      "type": "image/png"
    },
    {
      "src": "/android-chrome-512x512.png",
      "sizes": "512x512",
      "type": "image/png"
    }
  ],
  "theme_color": "#ffffff",
  "background_color": "#ffffff",
  "display": "standalone"
}

What each file is for

  • favicon.ico: the classic favicon, which browsers also request from your site's root by default. It holds 16, 32 and 48 pixel images.
  • icon.svg (when you start from an SVG): a sharp icon at any size, used by current browsers.
  • favicon-16x16.png and favicon-32x32.png: PNG favicons for tabs and bookmarks.
  • apple-touch-icon.png: 180 × 180, used when an iPhone or iPad adds your site to the home screen.
  • android-chrome-192x192.png and -512x512.png with site.webmanifest: icons for Android home screens and installed web apps.

How to use the Favicon Generator

  1. Choose, drop or paste a square SVG or PNG, or press Sample.
  2. Adjust the padding and background, and check the previews.
  3. Enter your app's name and theme colour for the manifest.
  4. Download the ZIP, put the files in your site's root folder and paste the HTML tags into your <head>.

Examples

The HTML tags for an SVG logo

Input
logo.svg, theme colour #facc15.
Output
<link rel="icon" href="/favicon.ico" sizes="32x32">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<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="manifest" href="/site.webmanifest">
<meta name="theme-color" content="#facc15">

Without an SVG source the icon.svg line is left out. favicon.ico is marked 32x32 (it holds 16, 32 and 48) so that Chrome chooses the SVG when there is one.

The web manifest

Input
App name JS Hunt, theme colour #facc15, background #ffffff.
Output
{
  "name": "JS Hunt",
  "short_name": "JS Hunt",
  "icons": [
    {
      "src": "/android-chrome-192x192.png",
      "sizes": "192x192",
      "type": "image/png"
    },
    {
      "src": "/android-chrome-512x512.png",
      "sizes": "512x512",
      "type": "image/png"
    }
  ],
  "theme_color": "#facc15",
  "background_color": "#ffffff",
  "display": "standalone"
}

With no short name, the app name is used.

Inside favicon.ico

Input
Three PNG images: 16 × 16 (300 bytes), 32 × 32 (600 bytes) and 48 × 48 (900 bytes).
Output
1,854 bytes: 16 px at byte 54, 32 px at byte 354, 48 px at byte 954

A 6-byte header and a 16-byte entry per image (54 bytes), then the PNGs one after another.

Designing an icon that works at 16 pixels

A favicon is tiny: a full logo with text becomes a blur. Use a simple, bold symbol or a single letter, with strong contrast. Start from an SVG or a square PNG of at least 512 × 512, and look at the 16-pixel preview on both light and dark tab bars; add a background if the icon disappears on one of them.

Options

Padding
Empty space around the image, 0–20% of the icon's side on each edge.
Background
Transparent by default; choose a colour to fill every icon.
Apple touch icon background
Used for apple-touch-icon.png when the others are transparent (white by default).
App name, short name, theme colour
Written to site.webmanifest and the theme-color tag.

Limitations

  • One source image; to use a different design at 16 pixels, generate twice and combine the files.
  • SVGs that load external images or fonts render without them.
  • Raster images larger than about 50 megapixels may fail on phones.

Frequently asked questions

Do I still need favicon.ico?

It's still worth having: browsers, feed readers and other tools request /favicon.ico when a page doesn't say where its icon is. Modern browsers then prefer the SVG or PNG icons from your tags.

Where do I put the files?

In your site's root folder, so they're served at /favicon.ico, /apple-touch-icon.png and so on. If you put them elsewhere, change the paths in the tags and the manifest.

Why does my favicon not update?

Browsers cache favicons aggressively. Hard-reload the page, open it in a private window, or add a version to the file names (favicon.ico?v=2) after changing them.

Is my image uploaded?

No. The icons are drawn and packaged in your browser.