WeblixTools
Free • Favicons, dark mode SVG and iOS & Android app icons

Next.js App Router Favicon Generator

Get favicon.ico, icon.svg and an Apple icon that the Next.js App Router picks up from the app/ folder without extra code.

Presets:

Icon Configuration

Corner Squircle Radius22%
Square (0%)Apple Squircle (22%)Pill / Circle (50%)
Glyph Padding / Margin4%
Dynamic SVG Dark Mode Overrides

When a user toggles their OS or browser into Dark Mode, this background color activates automatically via CSS:

#0f172a
Icon preview
Full size (512 × 512)

This is the 512 px icon from your download. The smaller sizes are drawn separately so they stay sharp.

Vector SVGMulti-Res .ICOiOS 18 Xcode

Browser tab preview

WeblixTools – My App
https://weblixtools.com

Home screen preview

iPhone & Android
Standard1024x1024
iOS 18 DarkDark Mode
iOS 18 TintedMonochrome
Android RoundAdaptive

Framework Implementation

Next.js 14 / 15 / 16 (App Router)
// Next.js 14 / 15 / 16 (App Router)
// Simply place these generated files in your 'app/' directory:
// 1. app/icon.svg           (Generated dynamic dark/light vector favicon)
// 2. app/apple-icon.png     (180x180 Apple Touch Icon)
// Next.js serves them automatically, no extra code needed
HTML5 / Astro / Vite
<!-- Modern HTML5 Head Tags -->
<link rel="icon" href="/icon.svg" type="image/svg+xml" sizes="any" />
<link rel="icon" href="/favicon.ico" sizes="32x32" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="manifest" href="/site.webmanifest" />
From the blog

Guides on Favicons and App Icons

All articles
Reviews

What Our Users Say

Real feedback from people using WeblixTools, checked by our team before it appears.

Adding icons to a Next.js App Router project

Next.js adds the right <link> tags itself when icon files sit in the app/ directory, so you don't edit the layout. On the Pages Router, put every file in public/ and paste the HTML snippet from the studio into _document.tsx.

How to use it

  1. 1Generate your icon and download the ZIP.
  2. 2Copy favicon.ico and icon.svg into app/, and rename apple-touch-icon.png to apple-icon.png.
  3. 3Move site.webmanifest and the android-chrome PNGs into public/.
  4. 4Add manifest: "/site.webmanifest" to the metadata export in app/layout.tsx.

Which file goes where in an App Router project

Next.js (14, 15 and 16) reads three file names in app/ and writes the head tags for you. The names matter: apple-touch-icon.png from the ZIP has to become apple-icon.png, and apple-icon must be a PNG or JPG, not an SVG.

File from the ZIPPut it hereWhat Next.js adds to <head>
web/favicon.icoapp/favicon.ico<link rel="icon" href="/favicon.ico" sizes="any">
web/icon.svgapp/icon.svg<link rel="icon" href="/icon.svg?…" type="image/svg+xml" sizes="any">
web/apple-touch-icon.pngapp/apple-icon.png<link rel="apple-touch-icon" href="/apple-icon.png?…" sizes="180x180">
web/site.webmanifest and android-chrome PNGspublic/Nothing, until you set manifest in metadata

Two rules that catch people out

  • favicon.ico only works at the top level of app/. Inside app/dashboard/ it's ignored. Use icon.svg or icon.png there if a section needs its own icon.
  • Pick one method. If you add the files to app/ and also list them under metadata.icons, the page ends up with duplicate icon tags.

Linking the manifest

The manifest isn't detected from public/, so add it to the metadata export in your root layout. You can replace the file with app/manifest.ts later if you want the manifest written in code.

// app/layout.tsx
import type { Metadata } from "next";

export const metadata: Metadata = {
  title: "My App",
  manifest: "/site.webmanifest",
};

Pages Router, Vite and other frameworks

Without the app/ conventions, copy everything from the web folder into public/ and add the tags yourself. On the Pages Router they go in pages/_document.tsx. In Vite, Astro or plain HTML they go in the <head> of your main template.

// pages/_document.tsx
import { Html, Head, Main, NextScript } from "next/document";

export default function Document() {
  return (
    <Html lang="en">
      <Head>
        <link rel="icon" href="/icon.svg" type="image/svg+xml" sizes="any" />
        <link rel="icon" href="/favicon.ico" sizes="32x32" />
        <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
        <link rel="manifest" href="/site.webmanifest" />
      </Head>
      <body>
        <Main />
        <NextScript />
      </body>
    </Html>
  );
}

Static files or app/icon.tsx?

Next.js can also draw an icon in code with ImageResponse in app/icon.tsx. That's handy when the icon depends on data, such as a different colour for each tenant. For one fixed brand icon, static files are simpler. They need no rendering step, and only an SVG file can switch colours in dark mode.

Modern Icon Packages vs. ICO/PNG-Only Converters

Web standards have evolved. A single fixed-size PNG or ICO looks soft on high-density screens and can disappear on dark browser tabs.

FeatureWeblixToolsBasic ICO/PNG converter
Dynamic SVG Dark/Light Mode✓ Yes, with a CSS media queryFixed colours only
Apple iOS 18 Light/Dark/Tinted✓ Complete AppIcon CatalogSingle 180 px PNG
Where Your Image Is Processed✓ In your browser, nothing uploadedVaries; often uploaded to a server
Framework-Ready Snippets✓ HTML, Next.js App RouterGeneric HTML tags
PWA Web Manifest✓ site.webmanifest includedUsually not included

Frequently Asked Questions

Where do I put the downloaded files in a Next.js project?

Place favicon.ico, icon.svg, and apple-icon.png directly in your /app root directory. Next.js handles serving and caching automatically.

Why is my old favicon still showing in Next.js?

Delete any old favicon.ico in public/ (it can shadow the app/ version), restart the dev server and hard-reload. Browsers cache favicons for a long time.

Can I generate the icon dynamically with icon.tsx?

Yes. Next.js supports app/icon.tsx with ImageResponse, but a static icon.svg is smaller, supports dark mode and needs no server rendering.

See all FAQs →