How to create and add a favicon to your website: A complete guide

Last update: August 26, 2026
  • The favicon is an essential branding element that improves the UX and professionalism of any website.
  • There are several compatible formats, with ICO being the universal standard, PNG ideal for transparency, and SVG the best option for scalability.
  • It is essential to adapt the icon size according to the device, differentiating between desktop tabs and shortcuts on iOS and Android.

Conceptual 3D illustration of web browser tabs with various colorful and minimalist favicons, ideal for headers.

I'm sure it's happened to you: you have a bunch of tabs open in your browser and suddenly you get lost trying to find that specific page you need. This is where the favicon comes in , that little icon that seems like an insignificant detail but is essential for any user to instantly recognize your website without having to read the tab title.

Whether you're setting up a personal blog to share your travels or managing a large company's website, maintaining your project's visual identity is key. A site without an icon conveys a sense of neglect or that the website is unfinished, while a well-designed one projects an air of professionalism and trustworthiness that sets you apart from the competition.

Best free logo maker
Related articles:
The best free online logo makers: complete guide + detailed comparison

What exactly is a favicon and what is it used for?

Close-up of HTML code on a computer screen in dark mode, representing the technical implementation of the favicon in the source code.

The term comes from "favorite icon ," as it initially served primarily to identify pages saved in bookmarks. Technically, it's an image file associated with your domain that browsers automatically load to represent your site in various places: from the address bar and tabs to browsing history and, sometimes, search results on mobile devices.

Beyond aesthetics, implementing a favicon helps keep the source code clean . If the browser looks for the traditional file and can't find it, it can generate a 404 error in the console, something we definitely want to avoid on an optimized website. Therefore, it's a fundamental element of user experience (UX) that facilitates switching between tabs and reinforces the brand in the visitor's mind.

Available formats: from classic ICO to modern SVG

Contemporary workspace with laptop, tablet and smartphones, illustrating the importance of optimizing the favicon for different devices and resolutions.

Previously, there was no alternative to using the .ico format , which was the absolute standard and the only one understood by all browsers, including the old Internet Explorer. Although it remains useful today due to its universal compatibility and because some browsers look for it by default in the server's root directory, we now have much more flexible options.

logos d
Related articles:
The Ultimate Guide to Mobile Logo Maker Apps: All the Tools and Expert Tips
  • PNG: It is the most common option nowadays because it allows transparent backgrounds and offers a much higher image quality than the ICO.
  • svg: Being a vector format, it is the king of the ScalabilityNo matter how much you zoom in, it will never pixelate, making it ideal for high-resolution or Retina displays.
  • ICO: It remains the "lifeline" to ensure that the website looks good even in very specific contexts, such as when someone views a PDF file hosted on your server.

Recommended measurements and sizes for each device

Hand-drawn wireframe sketch on paper, representing the design and simplification stage needed to create an effective icon.

You can't just upload any size image and expect it to look good; the secret is using the correct dimensions to prevent the icon from looking blurry or distorted. For standard desktop environments, such as browser tabs, the typical size is between 16x16 and 32x32 pixels.

However, the mobile world is a different story. Smartphones require higher-resolution images. For example, Android typically uses sizes of 192x192 or 512x512 pixels , especially if you're creating a Progressive Web App (PWA). Apple has its own standard called Apple Touch Icon , which is displayed when a user saves your website to their iPhone or iPad home screen, with an ideal size of 180x180 pixels.

How to design a working icon

Elegant work desk with computer and smartphone, conveying the sense of professionalism and confidence that comes from a carefully crafted visual identity.

Unlike a full logo, a favicon is tiny, so less is more . Trying to cram in your company's full name or a complex design is a huge mistake because it will end up looking like a blob of colors. The smartest approach is to opt for extreme simplicity : use a single letter, an iconic symbol from your brand, or a highly simplified version of your logo.

It's essential to use high contrast and vibrant colors so the icon stands out against the browser background, whether it's light or dark. Also, make sure the original image is perfectly square ; if you use a rectangular format, the browser will distort it, and the result will look awful.

Step-by-step guide to adding a favicon to your website

If you enjoy coding, the most straightforward way is to insert a line into the `<head>` section of your HTML . For a traditional ICO file, you would use the `link` tag specifying the file type. For a PNG file, you simply change the type to `image/png` . Ideally, you should upload the files to the root directory of your server for quick and easy access.

If you don't want to complicate your life with code and you use a CMS, it's a piece of cake:

  • WordPress: There's no need to install anything. Just go to Appearance > Customize > Site Identity and upload your image (preferably 512×512 px), as the system will generate all the necessary sizes.
  • PrestaShop: Access the section Design > Theme and logoUpload your file in the favicon section and don't forget to clear the cache so the change takes effect immediately.
  • Joomla: It depends on your template, but the most common way is to upload the file favicon.ico to the root or look for the specific option in the theme settings.

Solving common problems and optimization

It's very common that, after uploading the icon, you feel like nothing has changed and the old favicon is still there. Don't worry, it's not broken; browsers are simply very aggressive with icon caches . To fix this, you can try opening the website in incognito mode or force an update by pressing Ctrl + F5.

If you notice the icon looks pixelated, check that you're not scaling up a small image. It's best to start with a large image (like 512px) and let a favicon generator do the resizing. To optimize performance, try to keep the final file very small, ideally less than 20 KB , to avoid adding unnecessary weight to your page load time.

Implementing a favicon is a quick process that transforms the look of any website, providing a consistent visual identity and facilitating user navigation. From choosing the right format, such as SVG or PNG, and ensuring proper dimensions for Apple and Android devices, to correctly integrating it into the code or CMS, every detail contributes to making the page appear as a serious, optimized, and professional project.