Template
Favicon set from one SVG
This favicon template turns one SVG into the full set a modern site needs: 16 and 32 pixel favicons, the 180 pixel Apple touch icon, the 192 and 512 pixel PWA icons, and the SVG itself for browsers that support it.
Unlike an upload form, it runs in your repo, so the favicon updates whenever the SVG does.

Favicon guide Favicon source on GitHub
The files and the HTML that uses them
The collection exports PNGs named after each size and a copy-source entry that writes the SVG. Add outFile to each export to write straight into your public folder. Then link them in the head: an icon link with type image/svg+xml, a 32 pixel PNG fallback, an apple-touch-icon link and a web manifest listing the 192 and 512 icons.
Open Assets does not write a .ico file. Every current browser accepts PNG and SVG favicons; if you still need favicon.ico for an old crawler, convert the 32 pixel PNG with a tool like ImageMagick.
Design for 16 pixels
At 16 pixels a favicon is 256 dots. Thin strokes vanish and text becomes noise. The sample uses a stroke width near 9 percent of the canvas and one central shape. If your logo has detail, make a simpler mark for the favicon rather than shrinking the logo.
The zoomed 32 pixel variant above shows how the render handles anti aliasing at that size.
Reuse it as the app icon
The same SVG can feed an app icon collection at 1024 pixels, so the website, the PWA and the store icon all match. Add a dark mode version with a media query inside the SVG if you want the tab icon to adapt.
Agent prompt
Using Open Assets (npx open-assets), add a favicon collection to assets.json with sourceSize 512x512, using assets/favicon/icon.svg as the template. Export pwa-512, pwa-192, apple-touch-icon, favicon-32 and favicon-16, each with an outFile into public/, plus a copy-source svg entry. Then add the matching link tags and web manifest icons to my site head. Render with npx open-assets render.assets.json collection
{
"id": "favicon",
"label": "Favicon set",
"sourceSize": {
"width": 512,
"height": 512
},
"templates": [
{
"src": "assets/favicon/icon.svg",
"name": "icon"
}
],
"export": [
{
"name": "pwa-512",
"size": {
"width": 512,
"height": 512
}
},
{
"name": "pwa-192",
"size": {
"width": 192,
"height": 192
}
},
{
"name": "apple-touch-icon",
"size": {
"width": 180,
"height": 180
}
},
{
"name": "favicon-32",
"size": {
"width": 32,
"height": 32
}
},
{
"name": "favicon-16",
"size": {
"width": 16,
"height": 16
}
},
{
"type": "copy-source",
"format": "svg"
}
]
}Sizes it renders
| Platform | Size | Pixels | Name in assets.json | Copy |
|---|---|---|---|---|
| Web | PWA icon (large) | 512 × 512 | pwa-512 | |
| Web | PWA icon | 192 × 192 | pwa-192 | |
| Web | Apple touch icon | 180 × 180 | apple-touch-icon | |
| Web | Favicon | 32 × 32 | favicon-32 | |
| Web | Favicon (small) | 16 × 16 | favicon-16 |
FAQ
Frequently asked questions
What favicon sizes do I need in 2026?
An SVG favicon, a 32 pixel PNG fallback, a 180 pixel Apple touch icon, and 192 and 512 pixel icons in the web manifest. The 16 pixel size is optional.
Does this make a favicon.ico?
No. Open Assets renders PNG and copies the SVG. Convert the 32 pixel PNG if you need an .ico file.
Is it a free favicon generator?
Yes. Open Assets is MIT licensed and runs locally or in CI. Nothing is uploaded.
Can the favicon change with dark mode?
The SVG favicon can, using a prefers-color-scheme media query inside the SVG. PNG fallbacks cannot.