![]()
Any website's icon as a clean, safe SVG, with colours that fit every theme.
Try it on favicons.page · API · Self-hosting · Security
One URL per site
No key, no query parameters, CORS open. Every response is an edge-to-edge SVG, and its headers carry the colours to put around it:
x-icon-shape: square x-icon-light-plate: #ebecfa
x-icon-fill: bleed x-icon-dark-plate: #181b3f
x-icon-accent: #5a67f2 x-icon-dark-text: #6b77f3
Or let the server draw the badge for you, on a rounded square or an iOS-style
superellipse. It follows the viewer's light or dark theme by itself; add
/light or /dark to pin one:
Need a single-colour icon for a toolbar or a tab bar? Ask for the mask and tint it with CSS:
}

Follows your theme
Icons are made to switch with your interface, not to fight it.
- Automatic light and dark. Leave the theme out, as in
/color/github.com/superellipse, and the SVG carries both palettes and switches them with the viewer'sprefers-color-scheme. One URL for light and dark pages, and it flips the moment the operating system does. - Your own theme switch. If your app has a toggle of its own, pin a version
with
/lightor/darkand swap the URL. Every version has a stable URL and its own cache entry, so icons look the same on every visit. - Any colour you like.
/mono/{site}is a mask: tint it with your accent or with theX-Icon-*-Monocolour from the headers.X-Icon-*-TextandX-Icon-*-Mono-Platecolour the sender name and the link chip around it. - Safe to inline. Ids and classes inside every SVG are unique to that icon, so dozens of them can sit in one page without clashing.
<!-- follows the OS -->
<!-- pinned -->
From JavaScript
favicons.page on npm has no dependencies and works in
browsers, Node 18+, Deno, Bun and edge runtimes. It builds URLs, reads the SVG
with its palette, waits out the first queued response for you, and points at
your own instance with one option. Components for React and Vue, a Svelte
action and a web component come in the same package:
import from "favicons.page";
;
// https://favicons.page/color/github.com/superellipse
const icon = await ;
icon...; // "#181b3f"
import from "favicons.page/react";
Why favicons
- Vector, always. Sites that ship SVG keep their exact shapes. Bitmaps are
traced into smooth vectors, so even a 32 px
favicon.icoscales to any size. - Looks right on light and dark. Badge, text and mask colours for both themes, checked against WCAG contrast. No more black logo on a black row.
- The real logo first. The owner's BIMI mail logo, then the site's own icons and manifests, then optional fallback providers. A generated identicon only when nothing exists, and the headers say why.
- Built to be attacked. Every image is decoded in a throw-away seccomp sandbox with no files, network or exec, then rebuilt by an allowlist SVG writer. No SSRF, no decompression bombs, no scripts in your icons.
- Private by design. Requests collapse to the registrable domain, so per-recipient subdomains can't become read receipts. Lookups go over encrypted, malware-filtering DNS. Client IPs are never logged.
- Fast and small. About 170 000 cached icons per second on a laptop, 10 000 on a 4-core Celeron thin client, in about 50 MB of RAM. Benchmarks.
Compared with the usual favicon URLs
| favicons.page | Google s2/favicons |
DuckDuckGo ip3 |
|
|---|---|---|---|
| Format | SVG, any size | PNG, up to 256 px | ICO |
| Colours for light and dark themes | yes, in headers and ready-made badges | no | no |
| Monochrome mask | yes | no | no |
| Icons by app name | about 17 000 | no | no |
| Self-hostable, open source | yes, MIT | no | no |
| Unknown site | unique identicon, X-Icon-Fallback-Reason says why |
404 and a generic globe |
404 and a generic image |
Self-hosted apps by name
Optional catalogs serve icons by slug, with the same palettes, masks and plates. favicons.page carries about 17 000 of them: Simple Icons, selfh.st, Dashboard Icons, Devicon and theSVG, each response naming its license:

On your dashboard
Any dashboard that takes an icon URL works: Homepage with ready-made badges, Glance with monochrome masks tinted to its theme.


Self-host in one command
Two containers from a 9 MB image (on GHCR and as favicons/favicons on Docker Hub): the API, and a renderer with no network, a
read-only root and no capabilities. This page itself is built with the
site feature and ships with prerendered catalogs and the icons of the 100 000
most popular sites as ghcr.io/peleda-app/favicons.page; release binaries are on GitHub Releases,
and cargo install favicons builds the API. Built-in Let's Encrypt, local
disk or S3, GCS and Azure caches, blocklists and every other option are in
docs/SELF-HOSTING.md.
For agents and automations
/llms.txt explains the API to language
models, /openapi.json describes it for
tools, and every response exposes its headers and timings to any origin.
Documentation
- How it works: sources, tracing, caching, the request path
- HTTP API: statuses, headers, palettes, fallback reasons
- Security model: threats, sandbox, hardening checklist
- Self-hosting: Docker, binaries, TLS, small servers
- Performance: wrk numbers and the k6 load test suite
- JavaScript: the
favicons.pagenpm package with React, Vue, Svelte and web components
&& &&
MIT. The banner shows logos of open-source self-hosted projects, each a trademark of its project (list); page icons by Phosphor (MIT) and Fluent Emoji (MIT).