Perfecting Your Website’s Favicon

What is a Favicon?

When you visit a site that you like, you can add it to your favorites, bookmarking it for later. You can organize your bookmarks fairly well using any browser, but after a while, your bookmarks may begin to pile up. How do you distinguish one bookmark from the other? Maybe you would like to be able to visually recognize a site’s bookmark without having to read every single site name and description. This is where the favicon comes into play. A favicon is the small 16 by 16px or 32 by 32px icon that displays in a browser’s bookmarks (or “favorites”) listing next to its URL. Here, you can place your logo or a small, recognizable image that represents your site effectively with just a handful of pixels.

Creating a Favicon

You can build a favicon in just about any image editor that you’d like. You will have to convert your file later, but the initial creation can be done in a program such as Photoshop. You can start by creating a new document that is either 32px by 32px, or 16px by 16px. I would suggest starting out at the larger size, because most browsers will shrink the icon to fit its purposes. The larger size would be using for displaying larger icons.

With a blank canvas, the look of your favicon could follow a couple of different routes. If you have an existing website or logo, you will want to incorporate elements of your design into your favicon. You have very limited space, so it will likely be an abbreviated version of your logo or perhaps a signature typeface that you have used on your site.

Working with such a small format can be a pain, but if you are using Photoshop, you can zoom in very far to ensure that your favicon is set up pixel-perfect. Just make sure to view your icon at actual size to make sure it has the desired appearance at its true-to-life dimensions. I zoomed in to 1600% in order to build mine. Working at this near-microscopic level will help when adjusting alignment and sizing; you can simply use the arrow keys to nudge your favicon in one of the cardinal directions.

The key to an effective favicon is having a balance between positive and negative space. If you fill your favicon up too much, there won’t be enough negative space to make out what it is. This is especially true if you are using letters as your favicon.

Creative Beacon Logo

I am going to use Creative Beacon as a real-life example (shown above). The logo consists of the website name with a lighthouse built into the lettering. This provides a nice visual to illustrate the message. Our favicon can go one of two ways. The first might be vetting out the lighthouse and using that as the icon. I did this using the lasso tool and simply copying and pasting. when I zoomed out to true size, I couldn’t tell what it was. You couldn’t make out that it was a lighthouse at all.

favicon-lighthouse

The other idea is to use the first letter in both words of the logo, which of course are “C” and “B”. I used the same typeface, Trade Gothic, and used the same signature blue found in the logo. I centered the letters, but I did not tighten the kerning. Normally, I would pull the “C” and “B” closer together, but we have to remember that this will be 16px by 16px, and negative space will really help to define the forms. This will make them easily readable and recognizable.

You also want to avoid using long or tall images, or anything with a lot of detail, as it will break down at such a small size. After all, you are generally only working with 16px by 16px in your design. The key is to keep it simple.

Let’s compare the two favicons that we created at actual size, and you’ll immediately be able to tell which one is better. In the sample below, the lighthouse isn’t recognizable. The only way that I know it is a lighthouse is because I created the icon. However, you can read the “C” and the “B” very easily. We used colors that contrast well with each other. For example, I wouldn’t use aquamarine as the background color for my favicon, because it would make the letters difficult to read. In this case, the lighthouse just doesn’t work well, so make sure that you choose the right format that goes along with your site.

favicon-actual-size

Favicon File Formats

If you upload a GIF or a PNG file, your favicon will have alpha transparency, so if your icon appears in the tab in Firefox, it won’t have the square background behind it. This can offer some rare creativity for your tiny canvas, because if you desire a distinct non-square shape in your favicon, you can achieve it fairly easily. Notice in the favicon that I created (using a JPEG file format) that the white background shows up in Firefox’s tab, shown below. If you don’t want this, then you will want to save your initial design as a GIF or a PNG.

Favicon-example

Uploading Your Favicon

Once you have decided on a favicon, you can search for a favicon generator online. These make it easy for anyone to generate a favicon from a JPEG, GIF, or PNG file type. I found a good favicon generator here. Simply click upload an image in the left menu bar, and select the file that you created in Photoshop earlier. They have an option to shrink to fit a square or to keep as its current format. We wouldn’t want to squish our icon; we already created a square icon to begin with.

You can preview how your favicon will look, and if you are happy with it, you can download your own custom favicon. Once finished, click the download link to download your favicon in the .ico format. Now, all we have to do is place the favicon in the root directory of your website. Browsers will be looking for this when then they bring up your site. Notice in the example below, my new favicon is showing up next to the URL in the browser.

Your favicon might not show up immidiately, especially if you had a generic one in place before. Don’t despair, simply empty the browser cache and restart the browser. If that doesn’t work (especially if you are using Safari) you will have to reset Safari.

Conclusion

Creating a favicon for your site isn’t difficult, but it is something that few designers consider carefully. In a competitive online world, it’s one of few opportunities to distinguish your site from others, and to make returning to your site (by clicking on a browser bookmark) more likely to happen. Having no favicon at all — or worse, the favicon of the CMS software that you’re running your site with — is a common, easily-fixable mistake that makes your website and your bookmarked pages blend in and go unnoticed.

You can create your own custom favicon in minutes. You can make your favicon stand out and encourage return visits by following a few simple rules, such as giving it a lot of contrast, plenty of space, and by keeping your favicon very simple. You want instant recognition, return visits, and brand reinforcement.

Do you have tips that you’d like to share regarding the creation of your custom favicon? Do you have some favorite favicons from the web? Share them with us in the comments below.

Free book: Jump Start HTML5 Basics

Grab a free copy of one our latest ebooks! Packed with hints and tips on HTML5's most powerful new features.

  • http://www.pragmaticdesign.co.uk Web Design Wolverhampton

    If you’re feeling really lazy, Apple’s Emoji icons make great favicons. They can be found in iOS and Mountain Lion (not sure about the legality of using them though!)

  • http://michaelvanlaar.de Michael van Laar

    In my experience favicons are extremely important for clients. I experienced more than just once that one of the first things a new client asked me, was if I could make his logo appear in front of the url ;-) Sometimes it is so easy to make a client happy.

  • http://www.mogul.co.nz Bren Murrell

    Another great resource for creating Favicons is http://www.convertico.com. I usually create my favicons as PNGs at 64×64 or even 128×128 then upload them to convertico which converts them to tru .ico files. They tend to end up a little bigger in filesize than starting at 32 or 16 (which are valid sizes for this process too), but they look superb!

  • http://joshhumble.com/ Josh Humble

    I second Michael’s comment on the importance of favicons to clients, and I’ve had requests for them prior to launch (it’s a part of my build, regardless). I like Dynamic Drive’s favicon tool. Easy to use, and good quality .ico files: http://tools.dynamicdrive.com/favicon/

  • http://mwildmandesign.com M. Wildman

    This came across my desk at just the right time. I am a front end designer working with a graphic designer and I was just thinking I need to explain to him about the favicon.