A favicon is the small icon that sits next to your page title in a browser tab, in bookmarks, in browser history and, for many sites, beside your listing in search results. It is the smallest image on your website, but it shows up constantly. A blurry, generic or missing favicon makes a site look unfinished, while a clean one helps visitors find your tab among a dozen others.
The good news is that you do not need special design software to create a favicon. If you have a logo, a monogram or even a strong photo, you can turn it into a set of icon files in under an hour. This guide walks through choosing the source image, exporting the right sizes and formats, adding the HTML and fixing the most common problems.
What a Favicon Does and Where It Appears
Browsers look for a favicon on every page they load. If you have not declared one in your HTML, most browsers will request a file called favicon.ico from the root of your domain. If nothing is there, visitors see a generic blank page icon instead.
Your favicon can appear in several places, each at a different size:
- Browser tabs and the address bar, usually displayed at 16 by 16 or 32 by 32 pixels depending on screen density.
- Bookmarks and history lists, at similar small sizes.
- Phone home screens, when someone saves your site as a shortcut. iPhones and iPads use a separate, larger icon for this.
- Search results, where Google and some other search engines show a site icon next to the page title.
- Installed web apps, if your site uses a web app manifest.
Because the same small mark has to work in all of these places, the design decisions you make up front matter more than the export settings.
Start with the Right Source Image
The most common favicon mistake is shrinking a full logo, complete with a tagline and fine details, down to 16 pixels. At that size, everything turns into a smudge.
Simplify the design
Pick the single most recognizable element of your brand. That might be the first letter of your business name, a symbol from your logo or a simple shape in your brand color. Photographers often use a monogram or a stylized aperture or lens shape rather than an actual photo, because photos lose almost all detail at tiny sizes. If you do want to use a photo, crop it tightly to one bold subject with strong contrast, such as a silhouette.
Use a square, high-resolution canvas
Favicons are square. Work on a square canvas of at least 512 by 512 pixels so you can export every smaller size from one master file. If your logo is wide, do not squash it to fit. Either use a single element from it or center it on a square background with some breathing room around the edges.
Check contrast on light and dark backgrounds
Browser tabs can be light or dark depending on the user’s theme. A dark navy icon with a transparent background may vanish on a dark tab bar. Either add a solid background shape behind your mark or choose colors that hold up on both light and dark gray.
Keep your master files safe
Save the full-size source file, ideally as an SVG or a layered file plus a large PNG, somewhere you can reach it later. You will need it again when you redesign, launch a new site or hand assets to a developer. A hosted image library such as ImageCoast makes it easy to store brand assets in one place and share a link with a designer or collaborator instead of emailing attachments back and forth.
The Favicon Sizes and Formats You Actually Need
Older guides recommend exporting a dozen or more icon sizes. Modern browsers need far fewer. For most websites, this small set covers nearly every case:
- favicon.ico at 32 by 32 pixels (optionally containing 16, 32 and 48 pixel versions in one file). This is the fallback that older browsers and many tools request automatically.
- An SVG icon, such as icon.svg. Browsers that support SVG favicons will use it and keep it sharp at any size. It is optional, but useful if your mark is a simple vector shape.
- apple-touch-icon.png at 180 by 180 pixels, used when someone adds your site to an iPhone or iPad home screen. Give it a solid background, since iOS fills transparent areas.
- PNG icons at 192 by 192 and 512 by 512 pixels, referenced in a web app manifest, for Android home screens and installable web apps.
If search results matter to you, keep Google’s guidance in mind: the site icon should be square, at least 48 by 48 pixels, and ideally a multiple of 48 pixels (such as 48, 96 or 144), or an SVG. The icons above meet those requirements.
How to Create a Favicon Step by Step
- Prepare a square master image. Open your logo or photo in any editor that can crop and export, such as GIMP, Photoshop, Affinity Photo, Figma or a free browser-based editor. Crop to a square of 512 by 512 pixels or larger.
- Simplify and test at small sizes. Zoom out until the image is roughly the size of a fingernail on screen. If you cannot tell what it is, remove detail, thicken lines or enlarge the main element until it reads clearly.
- Export the PNG sizes. Export 512, 192 and 180 pixel PNGs from the master. Use the 180 pixel version with a solid background for the Apple touch icon.
- Create the ICO file. Many editors cannot save ICO files directly. GIMP can, and there are free favicon generators online that convert a PNG into a multi-size ICO file. Upload only the square icon, not other private files.
- Export an SVG if you have vector artwork. If your logo exists as a vector, save a simplified version as SVG and remove unnecessary metadata to keep the file small.
- Name the files clearly. Common names are favicon.ico, icon.svg, apple-touch-icon.png, icon-192.png and icon-512.png. Consistent names make troubleshooting easier.
Adding the Favicon to Your Site
Upload the icon files to your website, usually the root folder so that favicon.ico sits at yourdomain.com/favicon.ico. Then add these lines inside the head section of your pages:
- <link rel="icon" href="/favicon.ico" sizes="32×32">
- <link rel="icon" href="/icon.svg" type="image/svg+xml">
- <link rel="apple-touch-icon" href="/apple-touch-icon.png">
- <link rel="manifest" href="/manifest.webmanifest">
The manifest is a small JSON file that lists your 192 and 512 pixel icons along with your site name. If you do not need home screen installs, you can skip it.
Using a website builder or CMS
If you use WordPress, Squarespace, Wix, Shopify or a similar platform, you usually do not touch the HTML at all. Look for a setting called Site Icon, Favicon or Browser Icon, typically under site settings, identity or branding. Upload your 512 pixel PNG and the platform generates the smaller sizes and tags for you.
Troubleshooting a Favicon That Won’t Show Up
Favicons are notorious for seeming broken right after you change them. Before redoing your work, check these common causes:
- Browser caching. Browsers cache favicons aggressively. Open the site in a private window, or rename the file (for example, favicon-v2.ico) and update the link tag so browsers fetch the new version.
- Wrong path. Open the icon URL directly in your browser. If you get a 404 error, the file is not where your HTML says it is.
- Blocked by robots.txt. Search engines need to crawl the icon file and your home page. Make sure neither is disallowed.
- Search results lag behind. Search engines recrawl favicons on their own schedule, so a new icon can take days or weeks to appear in results even when it already works in browsers.
- Icon looks blurry. This usually means a large image is being scaled down by the browser. Export a dedicated 32 pixel file instead of relying on a 512 pixel image for tabs.
- Icon disappears on dark tabs. Add a background shape or a light outline. If you use an SVG, you can include a prefers-color-scheme media query inside it to switch colors for dark mode in browsers that support SVG favicons.
Frequently Asked Questions
What size should a favicon be?
Export a 32 by 32 pixel favicon.ico for browser tabs, a 180 by 180 pixel Apple touch icon, and 192 and 512 pixel PNGs for Android and web apps. Start from a square master image of at least 512 pixels so every size stays sharp.
Can I use a photo as a favicon?
You can, but most photos become unrecognizable at 16 or 32 pixels. If you use one, crop tightly to a single bold subject with strong contrast. A monogram or simple symbol almost always reads better.
Do I still need a favicon.ico file?
It is still a good idea. Many browsers and tools request /favicon.ico automatically, even when other icons are declared, so having one in your site’s root folder avoids errors and blank icons.
Does a favicon help SEO?
A favicon is not a ranking factor, but it does appear next to your listing in many search results. A clear, recognizable icon can make your result easier to spot and gives your site a more trustworthy, finished look.
Where should I keep my original favicon artwork?
Keep the full-size source files somewhere organized and backed up, separate from the exported icons on your server. Storing them with a service like ImageCoast lets you reach the originals from any device and share them with anyone who needs to update your site later.