WordGPT
← Favicon generator

Favicon generator for Astro

In Astro, files in the public folder are served from the root, and the link tags go in the head of your layout. Make your favicon below, download the zip, and follow the steps for Astro. Free, no sign-up, and nothing leaves your device.

Start from

Shape
Colours

Preview

128 pixel favicon128px
64 pixel favicon64px
48 pixel favicon48px
32 pixel favicon32px
16 pixel favicon16px
My site

In a browser tab

On a phone home screen, as My site

The zip has favicon.ico, favicon.svg, PNGs at 16, 32, 48, 180, 192, 512 px, the Apple touch icon, a web manifest and the lines to paste in your page.

Paste in your page's <head>

<link rel="icon" href="/favicon.ico" sizes="48x48">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">
<meta name="theme-color" content="#2563EB">

How to add it to Astro

Use favicon.svg (Files in the public folder, linked in your layout).

  1. Make your favicon here and download the zip.
  2. Copy every file from the zip into your project's public/ folder (replace the default favicon.svg).
  3. Open your main layout (for example src/layouts/Layout.astro) and replace the favicon link lines with the contents of head-snippet.html.
  4. Restart the dev server and hard-refresh the tab.
  5. Build and deploy; check the live tab in a private window.

If it does not work

  • Use /favicon.svg and /favicon.ico (with the leading slash) so the links work on every page.
  • If a theme or starter has its own head component, edit the favicon lines there instead.
Design a logoMake a whole brandFavicon for Next.jsFavicon for React (Vite or Create React App)Favicon for plain HTML
    Favicon generator for Astro: make and add a favicon | WordGPT