Mar 02, 2026
Aris S.
5min Read
A favicon is a small icon that serves as your website’s visual identity in browser tabs, bookmarks, and history logs. It helps users recognize your site among other pages and enhances your branding. You can add it to your website using these methods:
Favicons in browser tabs are 16×16 px, while those in taskbar shortcuts are 32×32 px. They are commonly in .ico format, but you can also use .svg files for better scalability. Regardless, it’s best to keep favicons simple and maintain visibility by using mid-tone colors or borders.
To add a favicon using HTML, you need to add a custom tag to your site’s index.html or header file. This manual method is best if you custom-code and design your website from scratch.
Before proceeding, ensure you have access to your website’s root folder and can edit the necessary files. Also, prepare a 64×64 px image called favicon.ico, favicon.svg, or favicon.png, depending on your preferred format. Then, follow these steps:

<!-- For an ICO image --> <link rel="icon" type="image/x-icon" href="favicon.ico">
<!-- For an SVG image --> <link rel="icon" type="image/svg+xml" href="favicon.svg">
<!-- For a PNG image --> <link rel="icon" type="image/png" href="favicon.png">
The favicon should appear in the browser tab. If not, check your code and try accessing the website in incognito mode to bypass the cache.

There are different ways to add a favicon to a WordPress website. For example, you can do this with the Gutenberg editor by adding the image using the Site Logo block and enabling the Use as site icon option.
You can also add a favicon by going to your admin dashboard’s sidebar → Appearance → Customize → Site Identity and uploading your image. If you want more customization and insertion options, you can also install a plugin like RealFaviconGenerator.
For more details about all the methods, check out our guide on adding a favicon in WordPress.
In Hostinger Website Builder, adding a favicon is a streamlined process because we offer a feature built into the tool. All you need to do is upload the file, and the builder handles the technical implementation for you.
Here’s how to add a favicon in Hostinger Website Builder:


Your website’s favicon should now be updated.
Following best practices when adding a website favicon ensures your icon is easily identifiable and serves as an effective branding tool. Here are several aspects to consider when adding a favicon:
When adding a favicon to your website, several issues may arise that prevent the icon from showing or appearing correctly. Here are some of the most common technical issues, their causes, and solutions.
Web browsers temporarily store data about your website as cache to save bandwidth and speed up load time. If your favicon is not showing, it’s likely that your browser is still using the old version of your site.
This issue is on the user end, meaning there’s nothing wrong with your favicon or your website. To verify if the error is cache-related, access your website in incognito mode or hard reload the page by pressing Ctrl + Shift + R or Cmd + Shift + R on your browser.
Typically, browser caching problems will resolve automatically. If this issue persists after a few hours, consider flushing your website cache to force browsers to fetch the updated information.
If you set an incorrect file path inside your custom HTML code, web browsers won’t be able to find your image. Consider this snippet:
<link rel="icon" type="image/x-icon" href="favicon.ico">
The example above tells your web browser to look for an image called favicon.ico in the current folder. For example, if you add the code in index.html, the favicon should be located in the same directory as the HTML file.
To resolve this, simply specify the correct path to the file. For instance, if your index.html is located in /var/www/index.html and your favicon is inside /var/www/images/favicon.ico, the correct code would be:
<link rel="icon" type="image/x-icon" href="images/favicon.ico">
Also, the path and file name are case-sensitive. This means Favicon.ico is different from favicon.ico.
A syntax error, like a missing quote or incorrect attribute in your link tag, can prevent your favicon from displaying correctly. Additionally, error messages may occasionally appear due to this issue.
Here are several issues that can cause syntax errors:
You can check for syntax errors manually or use an online validation tool. After identifying the problem, simply update your code and save your HTML file.
Important! Syntax errors rarely occur if you set up a favicon using the built-in feature of WordPress, a plugin, or a website builder because the process is automated and validated. If it happens, ask the developer for assistance since you can’t revise the code manually.
A favicon serves as the visual identifier of your website in search results, establishing branding and helping it stand out from other sites. With that in mind, the next step after finalizing the design of your site is to submit it to search engines.
Submitting your website to search engines allows platforms like Google to crawl your site’s content, including its new favicon, and display it on the search results page.
Although this procedure is automatic, manual submission may be necessary to speed up the process and help search engines index your web pages more accurately.
The steps for submitting your website vary depending on the search engine. Generally, you need to generate a sitemap and upload it to a search engine indexing platform, such as Google Search Console or Bing Webmaster Tools.