How to create a favicon for your web site

If you like to create a tiny favicon for your web site (the little icon displayed left of the URL in your browser) there is not much you need to know:

  • apt-get install netpbm

  • Create a bitmap of 16×16 pixels (Gimp is recommended)
  • Save the bitmap as .ppm format (select "raw mode")
  • Convert the file using ppmtowinicon favicon.ppm > favicon.ico

4 thoughts on “How to create a favicon for your web site

  • 2009-11-08 at 02:40
    Permalink

    If you use Gimp to make your favicon, you can save from Gimp as .ico (look in the file types for “Microsoft Windows icon”).

    Reply
  • 2012-07-10 at 10:08
    Permalink

    Maybe also try icotool from the icoutils package.
    Converts to and png, support for multiple image icons.

    Reply
  • 2012-10-21 at 20:11
    Permalink

    Note that a favicon doesn’t have to be in ICO format. So better use PNG and link it with the link element in the head of your HTML document. Only very old browsers would have a problem with favicons not being ICO. But PNG is much easier to create and a open standard (instead of the proprietary ICO).

    Reply
    • 2012-10-22 at 11:09
      Permalink

      You are right. The article is three years old and perhaps I should just remove it.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close