Skip to content

How to make a favicon.ico and icon set from a PNG

Make favicon.ico, PNG sizes, an Apple touch icon, a web manifest and the HTML to paste from one picture in DocFila. On your device.

Convert in DocFila

The short answer

Choose a square-ish picture in the Image → Favicon set card of DocFila's Convert hub and save. You receive favicon.ico, 16, 32, 192 and 512 pixel PNGs, an Apple touch icon, a site.webmanifest and a snippet of HTML to paste into your page head.

Where does it run?

On this device, offline. The picture is not uploaded, so an unreleased logo stays private.

What is kept, and what changes?

Kept

Changed or lost

What are the steps?

  1. Prepare the picture. Use a square PNG with the logo centred, as large as you have. A big square gives the sharpest small icons.
  2. Open Image → Favicon set. In Tools choose Convert and open the card for the favicon set. Searching “favicon” or “png to ico” finds it.
  3. Choose the picture. Select Choose files to convert and pick your picture. PNG, JPG, WebP, BMP, GIF and TIFF are accepted.
  4. Convert and save. Start the conversion, then choose Save into a folder… or Save as one ZIP… to take all eight files.
  5. Install on your site. Upload the files to the root of your site and paste the contents of favicon-html.txt into the head of your pages. Fill in the manifest's names.

Which options does it offer?

No options. The sizes are fixed to what sites and browsers ask for: 16 and 32 pixel PNGs, 180 for the Apple touch icon, 192 and 512 for Android, and the multi-size ICO at 48, 32 and 16.

What are the limits?

One result set per picture. The picture must be a readable image; very large ones above 120 million pixels are declined. The set covers common browsers and home-screen shortcuts but is not an app-store icon pack.

When is another route better?

For iPhone, iPad and Android launcher icons for an app rather than a website, the Convert hub has a separate App icons card. To reduce a picture's file size first, use the compress-image tool. To remove a background before making the icon, use the background remover.

Questions

What does the favicon set contain?

It contains favicon.ico, favicon-16x16.png, favicon-32x32.png, apple-touch-icon.png, two Android Chrome icons at 192 and 512 pixels, a site.webmanifest file and favicon-html.txt holding the link tags to paste.

Why was my logo cropped?

Icons are square, so DocFila crops a centred square from your picture. Make the picture square before converting if you need to decide exactly what is kept.

Does it keep a transparent background?

Yes for the ICO and the PNG sizes. The Apple touch icon is placed on white, because iOS icons are expected to have no transparency.

Do I have to paste anything into my site?

Yes. Upload the files to your site's root and add the lines from favicon-html.txt to the head of your pages so browsers know where to find the icons.

Convert it in DocFila

Free to start, no card needed.