How to add a favicon to your website
Set up a favicon for browser tabs and directory listings. Follow the HTML or site builder steps, then test your published icon before submitting to Pithmark.
By Pithmark
A favicon is the small icon in a browser tab. To set one up, create a square version of your brand mark and publish it through your site’s favicon setting or homepage HTML. For Pithmark, make sure /favicon.ico opens an image on the website you submit.
Create a square icon
Start with a simple square brand mark. Check it at browser-tab size to make sure the shape is clear. If your full logo contains a long name or tagline, use its symbol or initials.
Keep a square PNG or SVG as your source. For the standard directory address, export a real ICO file. A multi-size ICO can include 16, 32 and 48 pixel versions. Use an image editor or converter that exports ICO so the file contains image data in the correct format.
Publish it on your website
If you manage the site’s files, put favicon.ico in the public root so it opens at https://yourdomain.com/favicon.ico. Add this tag inside the homepage’s head, or in the shared head that your site uses for every page.
<link rel="icon" href="/favicon.ico">- In a site builder, look for Favicon or Site Icon in the site settings. Upload your square image there and publish the site.
- In WordPress 6.5 or later, open Settings → General and find Site Icon. WordPress recommends a square PNG at least 512 pixels wide and tall.
Check both the tab and the icon URL
Open your published homepage in a private window and look for the icon in the tab. Use the same domain you’ll submit, including the www or subdomain if that’s where the site lives.
Next, open /favicon.ico on that domain in the address bar. Pithmark normally uses this address for new listings, so check it even if the browser tab already looks right.
- The icon URL displays or downloads an image without a sign-in or browser challenge.
- If it shows an error, a generic host icon or the homepage itself, check that your own icon is available at that exact address. Ask your site provider how to publish the file at the root if your builder only sets a tab icon.
- Check the page source for rel="icon" and open its href too if it points to a different file. This lets you confirm that both your declared icon and the standard address work.
Submit the website URL
Once the icon works, enter your public website URL in Pithmark’s Official URL field. Your website hosts the image, so there’s no separate icon upload on the form. Submissions need a working favicon.
For an example of a listing with an official site icon, see NamoLux below. Its website serves the mark as an SVG and Pithmark has that icon recorded for its listing. NamoLux is owned by Pithmark’s creator.
Common questions
- My favicon appears in the tab. Why can’t a directory find it?
- Your browser may use a file declared elsewhere in the homepage HTML. Pithmark normally tries /favicon.ico on the submitted site. Check that address directly as well as the file your page declares. Other directories can have their own requirements.
- What if the old icon is still showing?
- Open the exact icon URL in a private window. If it still serves the old image, check that you published the change and clear your site or CDN cache if you use one. Search engines and directories can take longer to pick up an updated icon.
- Will Google show the favicon in Search?
- A public square favicon declared on the homepage can make the site eligible to show an icon. Google has its own crawl and display rules, so the icon may take time to appear or may be omitted.
Sources
Researched with official sources and written with AI assistance.