How to Configure Favicons and App Icons in Next.js App Router (2026 Guide)
In Next.js App Router, place an icon.png, icon.ico, or icon.svg file inside your app/ directory for automated favicon detection. For dynamic theme-aware favicons, export an ImageResponse from app/icon.tsx with appropriate size and contentType exports.
Check favicons on any website
Install the FetchFavicon Chrome Extension to extract, preview, and validate favicons instantly.
When implementing nextjs metadata favicon, browsers evaluate link headers, display densities, and manifest definitions in a strict hierarchy. Desktop browsers prioritize high-DPI SVG or PNG declarations, falling back to /favicon.ico only when explicit markup is missing.
Modern specifications demand square aspect ratios and 32-bit RGBA transparency. Generate your multi-resolution bundle with our Favicon Generator, build legacy ICO files with the PNG to ICO converter, and verify adaptive theme rendering in our App Icon Preview studio.
How it works
- 1
Prepare high-resolution square asset
Start from a clean vector SVG or 512Γ512 PNG with transparent background.
- 2
Generate optimized multi-resolution bundle
Export a 16/32/48 multi-size .ico alongside dedicated 180Γ180 Apple touch and 192/512 manifest PNGs.
- 3
Deploy to server root and verify headers
Place favicon.ico at /favicon.ico and verify HTTP 200 response with correct MIME type.
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
Generate and test your favicons now
Favicon GeneratorFAQ
Why is my nextjs metadata favicon not updating after deployment?+
Browsers cache favicons aggressively in a dedicated internal database. Force refresh with Ctrl+F5, append ?v=2 to your asset path, or inspect the live URL in an incognito window.
Do I need both favicon.ico and SVG/PNG files?+
Yes. A multi-size favicon.ico provides 100% universal legacy fallback, while SVG and PNG files provide crisp scaling on Retina displays and PWA install prompts.
What happens if favicon.ico returns a 404 or 301 redirect?+
Search engine crawlers and browser address bars will fail to display the site icon in search snippets and tab bars. Icons should always return a direct HTTP 200 OK.
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.
Favicon Package Generator
One upload, every icon size your site needs β packaged as a ZIP.