Creating a favicon is more than shrinking a logo. This guide shows how to turn a logo, avatar, or profile image into a clear website icon, export the right files, add favicon HTML code, and establish a repeatable review process for future redesigns and deployments.
Overview
A favicon is a small visual identifier associated with a website, page, or web application. It can appear in browser tabs, bookmarks, history views, shortcuts, and other interface locations. Because the available space is limited, a successful favicon usually depends on reduction: one recognizable shape, strong contrast, and minimal detail.
The most reliable workflow is:
- Choose a source image with a clear subject.
- Crop it to a square canvas.
- Simplify the artwork for small display sizes.
- Export suitable PNG and, when needed, ICO files.
- Place the files in a predictable public directory.
- Add the correct HTML references.
- Test the result in more than one browser context.
- Record what was shipped so the asset can be maintained.
You can complete the design step in an image editor, an avatar maker, or a favicon generator. A generator is useful when you need consistent resizing, multiple output formats, or a quick preview. The tool does not remove the need for judgment, however: an image that looks good at profile-picture size may become muddy when reduced to a tiny icon.
For a broader reference on dimensions and use cases, see the favicon sizes and formats guide. If the source is a personal avatar, also confirm that you have permission to use the image and that the design does not reveal more personal information than intended.
What to track
1. Source and design decisions
Keep a small record of the source asset, owner, license or permission status, and the intended identity. Note whether the icon represents a company, a project, a creator pseudonym, a development environment, or a personal site. This matters when several domains use related identities or when a profile image is also used on social platforms.
For a logo, start with the simplest recognizable mark rather than a full wordmark. Text often becomes unreadable at favicon scale. For an avatar, consider using a distinctive silhouette, face shape, initials, or color arrangement instead of trying to preserve every facial detail. A solid or lightly textured background can separate the subject from the browser interface.
2. Canvas, crop, and contrast
Use a square canvas and place the key shape inside a safe area with modest padding. Check the image at the smallest intended display size, not only at full resolution. Look for thin lines, tiny counters in letters, highlights that disappear, and edges that blend into light or dark browser themes.
Maintain a version with a transparent background when that supports the design, but also preview it against light and dark surfaces. If transparency causes the mark to lose definition, create a controlled background version. The dark-mode and high-density contrast checklist can help you assess this deliberately.
3. Output files and naming
A practical baseline is a 32 by 32 PNG for ordinary browser use and a multi-size ICO file when compatibility with older workflows or existing conventions matters. A larger PNG can support shortcut or platform-specific uses, but do not assume that one file serves every surface equally well. Review the requirements of your application, framework, manifest, or deployment system.
Use stable, descriptive names such as favicon-32.png, favicon.ico, and apple-touch-icon.png. Keep the production files in a public location, commonly the site root or a static assets directory. Avoid changing filenames unnecessarily: stable paths make caching and deployment checks easier.
4. HTML references
Place the following references inside the <head> element. Adjust paths and files to match your project structure:
<link rel="icon" href="/favicon.ico" sizes="any">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">The ICO line is optional if your project does not use an ICO file, and the touch-icon line is relevant only when you have created that asset. If you use a web app manifest, keep its icon entries consistent with the files you actually deploy. Avoid adding references to files that do not exist, because that creates unnecessary failed requests and makes troubleshooting harder.
For projects with several domains or environments, document which icon belongs to production, staging, development, and each subdomain. The multi-site favicon system guide provides a useful way to organize those relationships.
Cadence and checkpoints
Favicon maintenance is usually event-driven, but a light quarterly review is a practical default for active sites. Add the check to an existing release or identity-asset review rather than treating it as a separate project.
- Before first launch: confirm the crop, contrast, file paths, HTML references, and permission to use the source image.
- Before a rebrand: compare the favicon with the new logo, color system, avatar, and social profile imagery. Decide whether the icon should change with the brand or remain a stable recognition cue.
- Before a major deployment: verify that static assets are included in the build and that root-relative paths still resolve correctly.
- Monthly or quarterly: open the site in a clean browser context, inspect a bookmark or tab, and check that the icon remains legible in light and dark surroundings.
- After changing hosting, routing, or a framework: test paths, MIME handling, manifest references, and cache behavior.
For teams, turn these checkpoints into a small asset manifest or checklist. Automated validation can confirm that required files exist and that markup points to the expected locations. The favicon CI checks guide covers the kinds of checks that can be added to a deployment workflow.
How to interpret changes
When a favicon appears in one browser but not another, first separate design problems from delivery problems. A blurred or cluttered image usually indicates an asset issue: the source is too detailed, the crop is too tight, or the selected export is too small. A missing icon is more likely to involve a path, filename, markup, build, or cache issue.
Check the final page source or rendered document to confirm that the link element is present. Open each referenced URL directly and confirm that the response is the intended image rather than an HTML error page. Inspect the browser's network tools for failed requests, then verify that the deployed directory matches the local directory.
If the icon changed but an old version remains visible, test in a private window or a separate browser profile before changing filenames. Browsers and operating systems may retain icon data independently from ordinary page resources. If a filename must change, update every reference and remove obsolete entries from manifests and templates.
Interpret visual feedback at actual use sizes. A design that is technically sharp can still fail recognition if its subject has weak contrast or too many competing elements. Ask whether a reader can identify the site from the basic silhouette or color pattern without seeing the full logo. For a more formal review, use the favicon accessibility and brand recognition audit.
When to revisit
Revisit this workflow whenever the logo, avatar, domain, framework, hosting setup, or identity system changes. It is also worth returning on a monthly or quarterly cadence for active sites, especially when several people can modify templates or deployment files. A favicon is a small asset, but it sits at the intersection of design, HTML, build systems, caching, and brand identity.
Use this final checklist for each review:
- Open the source asset and confirm its intended owner and usage rights.
- Preview the icon as a square at small size against light and dark backgrounds.
- Remove detail that does not survive reduction.
- Export the formats your site actually needs, using clear stable filenames.
- Confirm that every HTML and manifest reference points to a deployed file.
- Test tabs, bookmarks, direct file URLs, and a clean browser context.
- Record the asset version, date, and reason for any change.
Once this checklist is part of your release routine, creating a favicon becomes a repeatable developer identity workflow rather than a last-minute image task. The same process can be applied to a new landing page, a pseudonymous creator site, a product subdomain, or a complete rebrand.