WebzTools
Menu

Favicon Generator

Upload a PNG or JPG and download a complete favicon pack as one ZIP: a favicon.ico holding 16, 32 and 48 pixel images, PNG icons for browsers, a 180 pixel Apple touch icon, two Android icons and a site.webmanifest. Everything is made in your browser, so your image is never uploaded.

A favicon is the small icon shown in browser tabs, bookmarks and history, and often beside a site in search results. A square logo works best. If yours is not square, Contain keeps all of it and Cover fills the square by trimming the edges. SVG and WebP files are not accepted, so export those to PNG first with SVG to PNG or the Image Converter.

Runs in your browser. Favicon Generator processes your input on your own device. Nothing you enter or upload is sent to a server.

Did this tool help you? ☕

WebzTools is free to use. If this tool saved you some time, you can support the project with a coffee and help us keep improving the tools.

Buy Me a Coffee (opens in a new tab)

How to use the Favicon Generator

  1. Drop a PNG or JPG onto the upload area, or click it to choose a file.
  2. Pick Contain to keep the whole image inside the square, or Cover to crop it so it fills the square. Contain also offers a background color and padding.
  3. Optionally add a site name, short name, theme color and background color for the web app manifest.
  4. Select Generate Favicon Pack and check the previews at each size.
  5. Select Download Favicon Pack (.zip), or download any of the 8 files individually, such as just favicon.ico.
  6. Upload the files to your site and copy the HTML tags into your head, as described under Install the favicon on your site below.

Supported formats: JPG, JPEG and PNG input. Output is favicon-pack.zip, containing favicon.ico, five PNG icons and site.webmanifest.

What is in the favicon pack

Every file is rendered from the same 512 by 512 master image, so the crop, padding and background you choose stay identical across the whole pack. The ZIP always contains exactly these 8 files, no more and no fewer.

FileSizePurpose
favicon.ico16, 32 and 48 px in one fileThe classic favicon that older and non-browser contexts still look for first
favicon-16x16.png16 × 16 pxBrowser tab icon on standard displays
favicon-32x32.png32 × 32 pxBrowser tab and taskbar icon on higher-density displays
favicon-96x96.png96 × 96 pxDesktop shortcuts and some Android launchers
apple-touch-icon.png180 × 180 pxHome screen icon on iPhone and iPad
android-chrome-192x192.png192 × 192 pxHome screen and app list icon on Android
android-chrome-512x512.png512 × 512 pxSplash screens and install prompts on Android
site.webmanifestText fileTells the browser which icon to use at which size

Install the favicon on your site

Unzip the pack and upload all eight files to the root of your site, the folder that holds your home page, so each one loads at an address such as https://example.com/favicon.ico. Then paste these tags inside the head of your pages, or of the shared layout or template that every page uses. After you generate a pack, the tool shows the same tags with your chosen theme color and a Copy HTML Tags button.

Tags to paste into the head

<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.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">
  • The tags assume the files sit at the site root. If you keep them in a folder, change each href to match, and update the two icon paths inside site.webmanifest as well.
  • In a framework that serves a public folder, such as Next.js, Vite or Create React App, put the files in that folder and they are served from the root.
  • Website builders and content management systems usually have their own favicon or site icon setting. Use it where it exists, and give it android-chrome-512x512.png if it asks for a large square image.
  • Open your live /favicon.ico address in a browser to confirm the file loads before you check the tab icon.

PNG or JPG to favicon.ico

favicon.ico is assembled in your browser as a genuine ICO container: a real ICONDIR header followed by 16, 32 and 48 pixel PNG images with their own directory entries, not a single image saved with a different file extension. Download it from the file list to use it alone, or take the ZIP.

The PNG files are plain, standalone images at one exact size each, and site.webmanifest is a small JSON file naming the two Android icons, their sizes and your chosen theme and background colors. It is not a full Progressive Web App configuration: it does not add fields like start_url, scope or display, and it does not generate maskable icons, so none of its manifest icons declare a purpose beyond the default.

Contain or Cover

Contain keeps the entire image visible: it scales the source to fit inside the square, centers it, and fills any leftover space with the background you choose. Nothing is ever cropped, so use it when the whole mark matters.

Cover scales the source up until it fills the square completely, then keeps only the centered portion, trimming whatever does not fit. Nothing is stretched, but the edges of a non-square image are cut off, so use it for photos or artwork where losing the exact edges does not matter.

Contain

Input

1200 × 800 logo, Contain mode, 10% padding, white background

Output

Centered inside every square output with a white margin around it, nothing cropped

Cover

Input

1200 × 800 photo, Cover mode

Output

Scaled up and center-cropped to fill the square, left and right edges trimmed, nothing stretched

Backgrounds and padding

  • A square source image needs no cropping or padding decisions; Contain and Cover produce the same result.
  • Padding only applies in Contain mode. It insets the scaled image inside the square without distorting it; Cover mode fills the square completely, so padding has nothing to add there.
  • Transparent backgrounds are kept only where the source image itself already has transparency. A fully opaque source stays opaque; this tool cannot invent transparency that was never in the original file.
  • Apple does not render a transparent apple-touch-icon.png consistently, since iOS composites it onto a background of its own choosing. A solid background color is usually the safer choice, even if you keep the rest of the pack transparent.

Google can show your favicon next to your site name in search results. Its published guidance asks for a link tag with rel icon or apple-touch-icon on your home page, a square image (larger than 48 by 48 pixels is recommended), a favicon address that stays the same, and a home page and icon file that Googlebot and Googlebot-Image are allowed to crawl. Google supports one favicon per hostname.

This pack includes a 48 pixel image inside favicon.ico and 96, 180, 192 and 512 pixel PNGs. After you add the tags, Google has to recrawl your home page before anything changes. That can take several days to several weeks, and Google does not guarantee a favicon will be shown. The URL Inspection tool in Search Console can request a recrawl.

If your favicon does not show up

  • The tab still shows the old icon: browsers cache favicons hard. Try a hard refresh, a private window, or another browser before changing anything.
  • Open /favicon.ico on your live site. A 404 page means the file is not in the site root, or the upload failed.
  • Check that the link tags are inside the head element, not the body, and that each href starts with a slash so it resolves from the root.
  • Check that robots.txt does not block the icon files, and that a theme, plugin or older tag is not declaring a different favicon.
  • If the tab icon is right but Google Search still shows a default icon, wait for Google to recrawl the home page. Changing the favicon address again in the meantime slows this down.

Things worth knowing

  • Only PNG and JPG files are accepted. SVG, WebP, GIF and other formats are not supported.
  • A 16 × 16 or 32 × 32 favicon has very little room for detail. Complex logos and small text often become unreadable at that size, regardless of how the source image is prepared.
  • Enlarging a small source image cannot add detail it never had; the output will look soft, not sharper.
  • favicon.ico always contains 16, 32 and 48 pixel images. You cannot choose other ICO sizes.
  • This tool does not generate maskable icons: every manifest icon is listed without a purpose field, so Android will not crop them into a different shape.
  • This is a favicon and icon generator, not a full Progressive Web App setup. The manifest covers icons, a theme color and a background color only.
  • One image at a time. There is no batch favicon generation.

Frequently asked questions

What is a favicon?

A favicon is the small square icon a browser shows in a tab, in bookmarks and in history. Search engines can also show it beside your site name in results. It is normally supplied as favicon.ico plus a few PNG files at fixed sizes, and linked from the head of your pages.

How do I make a favicon from a PNG or JPG?

Upload the image, choose Contain or Cover, select Generate Favicon Pack and download the ZIP. You get a favicon.ico, five PNG icons and a site.webmanifest. A square image of at least 512 by 512 pixels gives the cleanest result, because every output size is scaled down from a 512 pixel square master.

How do I convert a PNG to ICO?

Upload the PNG, generate the pack and download favicon.ico on its own, or take the whole ZIP. The ICO is a genuine multi-image icon file with 16, 32 and 48 pixel versions inside it. This tool cannot produce an ICO with other sizes, such as 256 pixels, or a single-size ICO.

What size should my favicon actually be?

There is no single size any more. This tool generates the common set a modern site is expected to provide: a multi-size favicon.ico, four square PNGs (16, 32, 96 and 180 pixels, the last one specifically for Apple), two larger Android icons (192 and 512 pixels), and a manifest that tells browsers which one to use where.

Do I need both favicon.ico and the PNG files?

Practically, yes. Older and some non-browser contexts still look for favicon.ico by convention, while modern browsers, Apple's home screen and Android's app install prompt each read a specific PNG. Using the whole pack and the HTML tags this tool gives you covers all of them.

Which image formats can I upload?

PNG and JPG (also named JPEG) only. SVG, WebP, GIF and other formats are not accepted. Export a vector logo to PNG first with SVG to PNG, or change a WebP file to PNG with the Image Converter.

What happens if my image is not square?

You choose. Contain mode scales the whole image to fit inside the square and centers it, filling any leftover space with a transparent or solid background. Cover mode scales the image up and crops its center to fill the square completely. Neither mode stretches or distorts the image.

What is apple-touch-icon.png for?

It is the icon iOS and iPadOS use when someone adds your site to their home screen. It is always 180 by 180 pixels, and because iOS composites a transparent icon onto its own background in a way you cannot control, a solid background color is usually safer than transparent for that one file.

What do the Android icons and site.webmanifest do?

android-chrome-192x192.png and android-chrome-512x512.png are the home screen and install icons that Android and Chrome read through site.webmanifest. The manifest is a small text file listing those two icons, their sizes and your theme and background colors. It covers icons only: it has no start_url, scope or display fields, so it is not a full Progressive Web App setup.

How do I add the favicon to my website?

Upload all the files to the root of your site, then paste the HTML tags the tool shows into the head of your pages. The full steps, with the exact tags, are under Install the favicon on your site on this page.

Why is my favicon not showing?

Browsers cache favicons for a long time, so first try a hard refresh, a private window or a different browser. Then open /favicon.ico on your live site: a 404 means the file is not in the site root. Also check that the tags are inside the head and that robots.txt does not block the icon files. Google Search can take several days to several weeks to pick up a new favicon.

Is my image uploaded anywhere?

No. Every step, from decoding the image to building the ZIP, runs in your browser using canvas and JavaScript. The file never leaves your device.

Can the favicon have a transparent background?

Where your source image already has transparency and you choose Transparent in Contain mode, yes, it is kept. A source image with no transparency stays opaque; this tool cannot add transparency that was never there, and Cover mode fills the whole square with image content, so background choice has no visible effect.

Why does my favicon look blurry or unreadable at 16 pixels?

A 16 by 16 pixel square has very little room for detail. Complex logos and small text that look sharp at full size often blur together at that size, and enlarging a small source image cannot add detail it never had. Simpler marks tend to survive the smallest size better.

Browse all image tools