Find Solutions > Web Development

How to Make and Use a favicon

A favicon is a website and bookmark icon. It is a little picture that can appear in the web browser in the bookmarks list, address bar, on the desktop, etc. To make it, you create a 16x16 .png file and then convert it to an "icon resource" with a little program called png2ico. [Just below is a summary of how to make a favicon. After the summary are more details]

Summary

  1. Make a small image [more ]
    1. In an image program such as Photoshop, make a 16 x 16 pixel image.
    2. Save this image as png format.
  2. Turn it into a favicon: [more ]
  3. using png2ico on your computer:


    OR
    using a cool tool on a website:

  4. Put the favicon (the favicon.ico file) on your website: [more ]
  5. Add the <link rel ... /> lines to your web pages: [more ]
    In the <head> section of your html pages, put the following lines:
    <link rel="icon" type="image/x-icon" 
        href="/favicon.ico" />
    <link rel="shortcut icon" type="image/x-icon" 
        href="/favicon.ico" />
    
  6. Now reload the page, and you should see your nice favicon in the address bar! [more ]

Details

[ what is a favicon?   |   making the favicon   |   installing the favicon ]

What is a favicon?

A favicon is a website and bookmark icon. It is a little picture that can appear in the web browser in the bookmarks list, address bar, browser tab, on the desktop, etc. A favicon is a nice and easy way to make your website look special.

Favicon is short for favorites icon The name comes from the Favorites (bookmarks) list for Microsoft Internet Explorer. When you add a site to your Favorites list, Internet Explorer (version 5 and above) asks the server if it has a file called favicon.ico. If it exists, this file will be used to provide an icon that is displayed next to the bookmark text. Other browsers (such as Mozilla, Firefox, Opera) now have support for favicons, and also display them in the address bar, browser tab, etc.

How do you make one?

You create a 16x16 .png file and then convert it to an "icon resource" with a little program called png2ico which you can get here. Above is a summary of how to do it. Below are more details:

1. Make a small image:

  1. In an image program such as Photoshop, make a 16 x 16 pixel image.
  2. Save this image as png format.
  3. Save the image(s) in a folder with the png2ico program.

2. Turn it into a favicon:

using png2ico on your computer:


OR
using a cool tool on a website:

3. Put the favicon (the favicon.ico file) on your website:

  1. Send the favicon.ico to your website (with WinSCP, ftp, or whatever program you use to upload files).
  2. The web browser will first look in the same directory that the file is in for a favicon. If it doesn't find it there, it looks in the top-level directory (like www.example.com/favicon.ico) so if you put it in the top-level directory, you can have a default favicon for all the pages on your website.

4. Add the <link rel ... /> lines to your web pages

5. Now reload the page, and you should see your nice favicon in the address bar!

All content not copyright by anyone else is copyright © 2003–2006 James Walker.
License for use is the GNU Free Documentation License. Find it:
here in the License directory
or at the Free Software Foundation, www.fsf.org