Favicon Generator

Make every icon file a website needs from one image (favicon.ico, the Apple touch icon, two PNG icons and a web manifest) and copy the HTML to paste, without uploading the image.

How to make a favicon

  1. Add your logo

    Drop a square image of at least 512 × 512 px on the square above, or choose it. An SVG works best, because every file is drawn from its shapes at its own size. If the image is not square, choose under Fit whether to keep it whole with space around it (Fit, the default), Crop to square or Stretch it.

  2. Fill in the details

    Type the name of your site in Site name for the manifest. Under Theme color and Apple icon background, pick white, black, yellow or blue, or type a hex color such as #ffffff. Both start as white.

  3. Download the ZIP

    Press Download favicon set (ZIP) to save one ZIP file, favicons.zip, with every file listed below.

  4. Add the files to your site

    Put the files in the root folder of your website, then press Copy under the HTML box and paste the HTML into the <head> of your pages.

What an ICO file is and which sizes Windows uses: how to make an ICO file.

Favicon size: every size and where it is used

There is no single favicon size. Each place that shows a site's icon asks for its own, and the generator makes these:

16 and 32 px, in favicon.ico: browser tabs, the address bar and bookmarks. MDN describes a favicon as usually 16 × 16 px. The HTML standard counts icon sizes in screen pixels, so on a screen with two pixels for every CSS pixel, a 16 px icon needs the 32 px image to stay sharp.

48 px, in favicon.ico: the largest image in the ICO file.

180 px, apple-touch-icon.png: the icon iOS uses when someone adds your site to the Home Screen. Apple's example gives 180 × 180 px for iPhone, and 152 and 167 px for iPad. When no icon has the exact size, iOS uses the smallest one that is larger, so one 180 px icon covers both.

192 and 512 px, icon-192.png and icon-512.png: listed in the web app manifest and in the HTML. Chrome, Edge and Samsung Internet need a 192 px and a 512 px icon in the manifest before they offer to install a site as an app.

Any size, favicon.svg (only when your image is an SVG): a vector icon that a browser can draw at any size.

For Google Search results, Google asks for a square icon of at least 8 × 8 px and recommends one larger than 48 × 48 px. It reads both rel="icon" and rel="apple-touch-icon" links, so the HTML below gives it the 180 px Apple icon as well as favicon.ico.

The files in the ZIP

favicon.ico: 16, 32 and 48 px in one file. When a page names no icon, browsers may look for /favicon.ico at the root of the site, so this file works even on pages without the HTML below.

apple-touch-icon.png: 180 × 180 px, with its transparent areas filled with the Apple icon background color (white unless you change it), so it has no transparent pixels. Apple's documentation says iOS looks for a file with this name in the root folder of the site.

icon-192.png and icon-512.png: the two PNG icons named in the manifest.

site.webmanifest: the web app manifest. It holds your site name (as name and short_name), your theme color (theme_color), the Apple icon background (background_color), start_url "/", display "standalone" and the two PNG icons. Browsers may use the theme color for their toolbar or address bar when your site runs as an app.

favicon.svg: included only when you start from an SVG. It is a 512 × 512 square that holds your original SVG, unchanged, with the Fit and Background you chose.

The HTML to paste

The box under the download button holds the HTML for these files, and Copy puts it on your clipboard. Paste it into the <head> of every page, or of the template your pages share. It assumes the files are in the root folder and reads:

<link rel="icon" href="/favicon.ico" sizes="16x16 32x32 48x48">

<link rel="icon" href="/favicon.svg" type="image/svg+xml" sizes="any"> (only when you started from an SVG)

<link rel="apple-touch-icon" href="/apple-touch-icon.png">

<link rel="icon" type="image/png" sizes="192x192" href="/icon-192.png">

<link rel="icon" type="image/png" sizes="512x512" href="/icon-512.png">

<link rel="manifest" href="/site.webmanifest">

If the files are in another folder, change the paths to match. When a page lists several icons, the browser picks the one that fits best by its type and size.

favicon.ico

favicon.ico is an ICO file, the Windows icon format, so one file holds several sizes. The HTML standard allows a browser to fetch /favicon.ico from the root of a site when a page has no icon link, so the file has that name and belongs in the root folder.

To make favicon.ico on its own, use the PNG to ICO converter with the Favicon preset. It writes the same 16, 32 and 48 px file, named after your image, so rename it favicon.ico.

SVG to favicon

Start from an SVG and every file is drawn from its shapes at its own size, so the 16 px image is drawn at 16 px rather than shrunk from 512. The ZIP then also holds favicon.svg, and the HTML names it with type="image/svg+xml".

A browser that cannot use an SVG icon moves on to the next most suitable icon, favicon.ico. Google Search does not list SVG among the favicon formats it supports, which is one more reason to keep favicon.ico and the Apple icon.

Your image is not uploaded

The files are made in your browser, and the ZIP is put together there. Your image and the site name you type never leave your device, and the page keeps working offline once it has loaded. How the tool works explains what happens to your image and how to check that nothing is uploaded.

Frequently asked questions

What is a favicon?

A small icon that represents a website. Browsers show it in tabs, the address bar and bookmarks, Google shows it next to the site in search results, and an iPhone or iPad uses a larger version when someone adds the site to the Home Screen.

What size should a favicon be?

Several sizes: 16, 32 and 48 px in favicon.ico, 180 px for the Apple touch icon, and 192 and 512 px for the web app manifest. Start from an image of at least 512 × 512 px so that no size has to be enlarged.

Is the favicon 16x16 or 32x32?

Both. A favicon is usually shown at 16 × 16 px, and on a screen with two pixels for every CSS pixel the same icon needs 32 px to stay sharp. favicon.ico holds both, plus 48 px.

Does the favicon have to be an ICO file?

No. A <link rel="icon"> can point to a PNG, an SVG or another image. favicon.ico matters for browsers that look for /favicon.ico when a page names no icon, and Google Search accepts ICO as well as PNG, GIF, JPEG, BMP, PPM and TIFF.

Can a favicon be 512x512?

Yes. The 512 px PNG in the ZIP is one of the two icons Chrome, Edge and Samsung Internet require in the manifest before they offer to install a site as an app. Tabs use the small sizes.

How do I add a favicon to my website?

Make the files here, put them in the root folder of your site, and paste the HTML from the box into the <head> of your pages. Google needs time to crawl your home page again before the new icon shows in search results.

Where does a favicon appear?

In browser tabs, the address bar and bookmarks, next to your site in Google Search results, on an iPhone or iPad Home Screen when someone adds your site there, and as the app icon when the site is installed as an app.

Is this favicon generator free?

Yes. There is no charge, no account and no watermark on the icons.

Is my image uploaded?

No. The favicon files are made in your browser and your image never leaves your device. The site counts visits with Google Analytics and Microsoft Clarity, which never receive your files, their names, their contents or the site name you type.