Modern favicon best practices
Modern favicon setup is simple: use SVG as the primary icon, add PNG/ICO fallbacks, and include Apple Touch + PWA icons. This generator outputs the full set in one download.
Vector SVGs keep icons crisp at any size, while PNG/ICO provide compatibility and reliable rendering in search results and legacy contexts. Keep files lightweight and use high-contrast shapes for small sizes.
Why this setup works
- Scales cleanly from 16×16 to 512×512
- Compatible with modern browsers and fallbacks
- Dark mode ready with light/dark colors
- Search-result friendly with a 96×96 PNG
- Lightweight assets for fast load
Browser support (modern browsers)
| Browser |
SVG Support |
Dark Mode |
Recommended Format |
| Chrome / Edge (modern) |
✅ Full |
✅ Yes |
SVG + PNG fallback |
| Firefox (modern) |
✅ Full |
✅ Yes |
SVG + PNG fallback |
| Safari (recent) |
✅ Good |
⚠️ Limited |
SVG + PNG fallback |
| Legacy / embedded |
⚠️ Limited |
— |
ICO or PNG |
Recommended favicon file set
This file set works across modern frameworks and static sites. Place it in your root or /public folder and use the generated HTML snippet.
Perfect File Structure
/public
├── favicon.svg # Primary icon (modern browsers)
├── favicon.ico # Browser fallback (16 / 32 / 48 px)
├── favicon-96x96.png # Google SERP fallback (96×96)
├── apple-touch-icon.png # 180×180 (iOS standard since iOS 8)
├── icon-192.png # 192×192 (Android/PWA)
├── icon-512.png # 512×512 (PWA splash screens + WordPress Site Icon)
├── icon-maskable-192.png # Android adaptive icon
├── icon-maskable-512.png # Android adaptive icon
└── site.webmanifest # Web app manifest
Essential Favicon Sizes (Priority Order)
| Size |
Purpose |
Priority |
Notes |
| SVG |
Modern browsers, scalable, dark mode |
High |
Keep lightweight |
| 16×16 |
Browser tabs, bookmarks |
High |
Keep lightweight |
| 32×32 |
Retina tabs, Windows taskbar |
High |
Keep lightweight |
| 96×96 |
Search results / fallback |
Recommended |
Keep lightweight |
| 180×180 |
Apple touch icon (iOS/iPadOS) |
High |
Keep lightweight |
| 192×192 |
Android home screen, PWA |
High |
Keep lightweight |
| 512×512 |
PWA splash screens + WordPress Site Icon |
High |
Keep lightweight |
Platform support guide
Different platforms have slightly different requirements. Use this quick guide to pick the right file and placement.
Platform-Specific Favicon Requirements
| Platform |
Required Files |
Upload Method |
Notes |
| WordPress |
icon-512.png |
Settings → Site Icon |
Upload the 512×512 PNG. WordPress generates the rest. |
| Webflow |
icon-192.png |
Site Settings → General → Icons |
Upload one square image. Webflow generates the sizes. |
| Wix |
favicon-96x96.png or favicon.svg |
Dashboard → Website Settings |
Requires a published premium site with a connected domain. Raster sides must be a multiple of 48 px. |
| Shopify |
Square PNG, 32 × 32 suggested |
Theme settings → Logo/Favicon |
The Shopify install target explains how to extract the 32 px PNG frame from favicon.ico. |
| Squarespace |
apple-touch-icon.png or icon-192.png |
Favicon panel |
Recommended 100–300 px. Check that the chosen PNG is at most 100 KB. |
| Next.js / React |
All files from ZIP |
Project's public/ directory |
Use App Router metadata for Next.js or add the HTML snippet to index.html for Vite/React. |
| Static HTML |
All files from ZIP |
Copy files + paste HTML snippet |
Use the HTML snippet from the download for compatibility |
| Chrome install promotion (manifest icons) |
icon-192.png + icon-512.png + site.webmanifest (keep every icon referenced by the manifest) |
Root directory + manifest link |
Other criteria also apply; browser installation rules vary. |
Next.js / React quick setup
For Next.js (App Router), put the extracted files directly in your project's public/ directory. Next.js serves them at root URLs such as /site.webmanifest. For Vite/React, use public/ and add the HTML snippet to index.html.
Next.js Quick Start:
- Download the ZIP from this Favicon Generator
- Extract the ZIP and copy its contents directly into your project's
public/ directory
- Add the metadata below to your root layout
import type { Metadata, Viewport } from 'next';
export const metadata: Metadata = {
manifest: '/site.webmanifest',
icons: {
icon: [
{ url: '/favicon-96x96.png', type: 'image/png', sizes: '96x96' },
{ url: '/icon-192.png', type: 'image/png', sizes: '192x192' },
{ url: '/favicon.svg', type: 'image/svg+xml', sizes: 'any' },
],
shortcut: '/favicon.ico',
apple: [{ url: '/apple-touch-icon.png', sizes: '180x180', type: 'image/png' }],
},
};
export const viewport: Viewport = {
themeColor: [
{ media: '(prefers-color-scheme: light)', color: '#ffffff' },
{ media: '(prefers-color-scheme: dark)', color: '#0f172a' },
],
};
Next.js App Router (file conventions)
To let Next.js create the icon tags automatically, use its App Router icon file conventions:
- Place
favicon.ico at app/favicon.ico, at the root of the App Router.
- Copy
favicon.svg as app/icon.svg and apple-touch-icon.png as app/apple-icon.png.
- For an installable web app, copy
site.webmanifest as app/manifest.webmanifest using the manifest convention. Keep public/favicon.svg, public/icon-192.png, public/icon-512.png, public/icon-maskable-192.png, and public/icon-maskable-512.png at the paths referenced by the generated manifest.
Choose either the file conventions or the explicit metadata setup for your icons. If you use metadata, remove the starter app/favicon.ico and any other conflicting icon or manifest convention files.
Vite/React Projects:
- Place all favicon files in
/public directory
- Use absolute paths:
/favicon.svg not ./favicon.svg
- Copy the HTML snippet from this generator into
index.html
Manifest icons for web apps
For Chrome’s install promotion, the manifest icon check looks for 192×192 and 512×512 icons in the manifest. This generator includes both, but installation rules vary by browser. Meeting the icon check is not a guarantee of installation.
See Chrome’s full install promotion criteria.
Dark mode-ready icons
Dark mode is common across browsers and OS themes. Provide light and dark colors so your favicon stays readable in tabs, bookmarks, and search results.
The SVG output can include light/dark styles via CSS media queries, and the HTML snippet sets theme-color for each mode.
Dark mode tips
- Use high contrast at 16×16 and 32×32 sizes.
- Test both themes in your browser.
- Keep shapes simple for clarity at small sizes.
AI & CLI Automation
Connect your AI agent to the MCP endpoint at https://favicongenerator.io/mcp using Streamable HTTP. Ask it to run generate_text_favicon to create a favicon for the letter A.
REST API example
This GET request returns SVG, an HTML snippet, and a web app manifest. The API does not generate PNG or ICO files.
curl 'https://favicongenerator.io/api/text-favicon?text=A&background_start=%230f172a&text_color=%23ffffff'
See the developer guide and OpenAPI reference for other endpoints and options. Use the browser generator or paste SVG in the code editor to produce the full ZIP, including PNG and ICO files. The ZIP is built locally in your browser.
Performance & SEO
Favicons do not directly change rankings, but they improve recognition in tabs, bookmarks, and search results. A clear, consistent icon helps users find your site quickly.
Keep assets lightweight and simple. Small, optimized files load fast and render crisply at tiny sizes.
Tip: SVG and PNG should be optimized. The generator outputs lightweight files by default.
Helpful references
If you want to dive deeper, these resources cover favicon and PWA guidance:
- W3C - Web standards
- MDN Web Docs - Favicon and manifest docs
- Next.js Docs - App Router metadata
- web.dev - Performance and PWA guidance
- WHATWG - HTML specifications
- Can I Use - Browser compatibility
Frequently asked questions
What is a favicon generator?
A favicon generator creates website icons in multiple formats. This tool creates SVG, ICO, a 96×96 PNG, a 180×180 Apple touch icon, and 192×192 and 512×512 manifest icons. The SVG can include light and dark styles.
What favicon files do I need for modern sites?
Use favicon.svg for browsers that support SVG, favicon.ico as a fallback, favicon-96x96.png for search results, and apple-touch-icon.png for iOS. For a web app, include the manifest and the icons it references.
How do I add a favicon to WordPress?
For WordPress, upload the icon-512.png file in Settings → Site Icon. WordPress will generate the rest automatically.
Does this favicon generator support dark mode?
Yes. The SVG favicon can include light/dark styles via CSS media queries, and you can set separate theme colors for each mode.
Is this favicon generator really free?
Yes. It is free to use, with no registration required. All processing happens in your browser, so files stay local.
What's the difference between ICO and SVG favicons?
ICO is a legacy format supported by older browsers and some platforms. SVG is modern, scalable, and supports dark mode. Best practice is SVG as primary with ICO (and PNG) fallbacks.
Ready to ship?
Favicon setup should be quick. Use the generator above, download the ZIP, and drop the files into your project. The HTML snippet is ready to paste.
Need guidance for a specific platform? Check the tutorials for step-by-step instructions.
Ready to create your favicon? Scroll up and use the generator.