Guide

Favicon for Next.js

Next.js 14+ App Router treats /app/icon.png and /app/favicon.ico as conventions — drop them in and Next emits the right tags automatically.

Check favicons on any website

Install the FetchFavicon Chrome Extension to extract, preview, and validate favicons instantly.

Install Chrome Extension

Place favicon.ico inside /app and Next will serve it at /favicon.ico and inject the link tag. Create your multi-size ICO in seconds with our Favicon Generator.

For multi-size or themed icons, use the file conventions: icon.png, icon.svg, apple-icon.png inside /app. Test tab contrast across light and dark themes using our Favicon Preview tool.

How it works

  1. 1

    Generate favicon.ico

    Multi-size 16/32/48/64 from a 512×512 source.

  2. 2

    Place in /app

    /app/favicon.ico is auto-served. Add icon.png for HD.

  3. 3

    Verify

    Open /favicon.ico in your browser — Next serves it without any config.

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 a Next.js-ready favicon

Favicon Generator

FAQ

Where do icons go in Next.js App Router?+

Inside the /app directory. The file name (icon, apple-icon, favicon) determines the role.

What about the Pages Router?+

Drop favicon.ico into /public and link it from _document.tsx.

Do I still need a multi-size .ico?+

Recommended for legacy browser support, especially Edge and IE-mode shortcuts.

Related tools

Related guides

Guides →