Image conversion guides

Make a favicon from a rectangular logo

·

A browser tab can give a detailed logo just 16 pixels of space. This guide follows a wide logo from its original canvas to the different square images stored together in favicon.ico.

Favicon generator

Calculate where the logo will sit

For a 96 × 48 logo, the 16 px icon contains 16 × 8 px of artwork, with four transparent rows above and four below. In the 32 px icon, the artwork occupies 32 × 16 px. If the wordmark becomes hard to read, use the crop tool to isolate a recognizable part before converting.

Use the ICO in a browser tab

Download one icon, rename it favicon.ico and put it in the public root of your site. Inside the document head, add <link rel="icon" href="/favicon.ico">. Open the site in a new tab and check the smallest rendition. If the icon lives in a subdirectory, use its actual path.

HTML Standard on the icon link type

Choose artwork that survives at 16 pixels

A 320 × 40 wordmark fits into a 16-pixel square as a strip only two pixels high. Use a crop of the distinctive symbol or a separate compact logo for the icon. Inspect the 16-pixel entry at its own size before judging the larger entries.

A layered PSD contributes its saved composite. If that composite includes a solid presentation background, export the logo on transparency from the design file first.

Microsoft on ICO files and icon directory entries

Common questions

Can a batch make one icon containing several unrelated logos?

Each source image or TIFF page has its own ICO. The frames inside that ICO show the same artwork at several sizes.

What if my site serves images from an assets folder?

Put the icon in that folder and point the icon link to its public URL. For a file served at /assets/site.ico, use that path as the href.

Sources

Put it into practice.

Related guides