← Favicon generator
128px
64px
48px
32px
16px
My site
Design a logoMake a whole brandFavicon for Next.jsFavicon for React (Vite or Create React App)Favicon for plain HTML
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
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).
- Make your favicon here and download the zip.
- Copy every file from the zip into your project's public/ folder (replace the default favicon.svg).
- Open your main layout (for example src/layouts/Layout.astro) and replace the favicon link lines with the contents of head-snippet.html.
- Restart the dev server and hard-refresh the tab.
- 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.