Guide

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.

Install Chrome Extension

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. 1

    Generate a multi-size .ico

    Use our favicon generator with a 512×512 source.

  2. 2

    Drop into /public

    Place favicon.ico, favicon.svg, and apple-touch-icon.png there.

  3. 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.

WebAssembly Oxipng Lossless
Platform Dimension Specifications & Compression Benchmark
Target Platform / OSRequired DimensionsFormat & DeliveryOxipng Wasm WeightByte Savings
Google Search SERP48×48 px (multiples of 48).ico, .png4.6 KB-68.9%
Apple iOS / iPadOS Safari180×180 px.png (apple-touch-icon)14.8 KB-67.9%
Android Chrome & PWA192×192 px & 512×512 px.png (site.webmanifest)59.1 KB-69.3%
Windows Edge & Desktop16×16, 32×32, 48×48 pxMulti-resolution .ico8.8 KB-69.5%
Legacy Web Browsers32×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 Generator

FAQ

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

Related guides

Guides →