Skip to main content
toolsxulo

Favicon Generator

Upload an image to get six PNG files (16×16 through 512×512), each as its own download, plus the <link> tags to paste into the <head>. A non-square image is stretched to a square.

Source image

A square image of at least 512×512 is best. A non-square image is stretched to a square at every size.

No image yet

Choose an image above to generate the six sizes.

HTML snippet
<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="48x48" href="/favicon-48x48.png" />
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="192x192" href="/android-chrome-192x192.png" />
<link rel="icon" type="image/png" sizes="512x512" href="/android-chrome-512x512.png" />

How it works

From the image you choose, the tool builds six PNG favicon files at fixed sizes: 16×16, 32×32, 48×48, 180×180, 192×192, and 512×512. The image is drawn on a canvas in the browser and stretched to a square at each size, with no cropping and no added margins. A non-square source is therefore stretched. A source smaller than 512×512 is enlarged for the bigger sizes.

You download each size separately, under the tool's fixed filenames: favicon-16x16.png, favicon-32x32.png, favicon-48x48.png, apple-touch-icon.png (180×180), android-chrome-192x192.png, and android-chrome-512x512.png. There is no zip download, and no .ico file.

The HTML snippet is always on the page, even before you choose an image. Each tag points to a path at the site root, for example href="/favicon-32x32.png". The 180 size is written with rel="apple-touch-icon"; the other sizes use rel="icon". If you put the files in a different folder, edit the href values. The tool accepts any file the browser can load as an image; if it cannot, an error message appears.

How to use it

  1. Press "Upload image" and choose a file. A square of 512×512 or larger is best, so the image is not stretched or enlarged.
  2. After the image loads, six previews appear. Download each size you need with "Download". You can pick a different image with the same button, which then reads "Choose a different image".
  3. Copy the HTML snippet and paste it into the <head>. Upload the files to the site root with those exact names, or fix the href values if they live in another folder.

Examples

Any image (the HTML snippet is fixed, even with no upload)<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="48x48" href="/favicon-48x48.png" /> <link rel="apple-touch-icon" type="image/png" sizes="180x180" href="/apple-touch-icon.png" /> <link rel="icon" type="image/png" sizes="192x192" href="/android-chrome-192x192.png" /> <link rel="icon" type="image/png" sizes="512x512" href="/android-chrome-512x512.png" /> This is the tool's exact output. The paths assume the files sit at the site root.
A square 512×512 logoSix PNG files to download, with the names and sizes in example 1. Each file is the same image, stretched to that size.
A rectangular image, for example 800×400The same six sizes, but the image is stretched to a square in each one and looks wider or taller than the source. To avoid that, crop the source to a square before you choose it.

Frequently asked

Why does the image need to be square?
The tool stretches it to a square at every size, without cropping. A non-square source will be distorted. Cropping to 1:1 before you choose the file avoids that stretch.
Does the tool also create a .ico file?
No. It only creates PNGs at these six sizes. If you need favicon.ico, convert it separately; this tool does not export that format.
Where do the files go on the site?
The HTML snippet points at the root, for example /favicon-32x32.png. Upload them there with those names, or change the href values if the files are in another folder. If you download only some of the sizes, edit the snippet so it does not point at files you did not upload.
Do I have to use all six sizes?
The tool always generates all six and a snippet that references all of them. You can download only what you need, then edit the snippet so it does not point at missing files.
Can I make a favicon from an SVG or from text?
There is no text editor or dedicated SVG converter here. If the browser can load the file as an image, the tool will draw it; otherwise you will see an error. The output is always PNG.
How is apple-touch-icon different from the other tags?
In this tool's snippet, only the 180×180 file (apple-touch-icon.png) is written with rel="apple-touch-icon". The other five sizes are written with rel="icon".