Favicon for React
React doesn't render the <head> for you — the favicon lives in index.html. Drop your favicon.ico into /public and link it; modern setups also ship an SVG and PNG variant.
Check favicons on any website
Install the FetchFavicon Chrome Extension to extract, preview, and validate favicons instantly.
Vite and CRA both serve /public at the root, so /favicon.ico is the default discovery path. Convert your logo into a multi-resolution container using our PNG to ICO converter or generate crisp vector icons with our SVG to ICO tool.
For high-DPI displays and PWA install prompts, add a 180×180 apple-touch-icon and a 512×512 PNG to /public and bundle your complete assets using our Favicon Package generator.
How it works
- 1
Generate a multi-size .ico
Use our favicon generator with a 512×512 source.
- 2
Drop into /public
Place favicon.ico, favicon.svg, and apple-touch-icon.png there.
- 3
Link in index.html
Add <link rel="icon" href="/favicon.ico"> and <link rel="icon" type="image/svg+xml" href="/favicon.svg">.
Platform Dimension Specifications & Compression Benchmark
Standard dimension requirements across search engines, mobile OS, and WebAssembly Oxipng lossless byte reduction.
| Target Platform / OS | Required Dimensions | Format & Delivery | Oxipng Wasm Weight | Byte Savings |
|---|---|---|---|---|
| Google Search SERP | 48×48 px (multiples of 48) | .ico, .png | 4.6 KB | -68.9% |
| Apple iOS / iPadOS Safari | 180×180 px | .png (apple-touch-icon) | 14.8 KB | -67.9% |
| Android Chrome & PWA | 192×192 px & 512×512 px | .png (site.webmanifest) | 59.1 KB | -69.3% |
| Windows Edge & Desktop | 16×16, 32×32, 48×48 px | Multi-resolution .ico | 8.8 KB | -69.5% |
| Legacy Web Browsers | 32×32 px / 16×16 px | .ico (/favicon.ico) | 3.1 KB | -67.0% |
* Benchmark measurements based on lossless RGBA Oxipng WebAssembly compression executing locally in modern web browsers.
Try it now
Build a React-ready favicon
Favicon GeneratorFAQ
Where does the favicon go in a Vite React app?+
/public/favicon.ico (and /public/favicon.svg if you want a vector variant).
How do I add a dark-mode favicon?+
Use a single SVG with a <style>@media (prefers-color-scheme: dark) {...}</style> block.
Why won't my favicon load in dev?+
Hard-refresh the tab. Browsers cache /favicon.ico per-origin even across reloads.
Related tools
Favicon Generator
Generate a complete favicon pack (ICO + PNGs) for every device and browser.
PNG to ICO Converter
Free online PNG to ICO converter for Windows icons, app icons, and website favicons.
SVG to PNG Converter
Rasterize SVG vector graphics into PNG at any resolution.