Guide

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.

Install Chrome Extension

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

    Prepare high-resolution square asset

    Start from a clean vector SVG or 512Γ—512 PNG with transparent background.

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

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

Generate and test your favicons now

Favicon Generator

FAQ

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

Related guides

Guides β†’