← All microservices
Favicon generator
Images
Turn one image into a full favicon set: favicon.ico, PNG sizes, the Apple touch icon, Android icons, site.webmanifest and the HTML tags.
What it does
- favicon.ico in 16, 32 and 48 pixel sizes
- Apple touch icon and Android icons
- A ready-made site.webmanifest
- The HTML tags to paste in
Good for
- New websites
- Rebrands
- Installable web apps
Send a square logo of at least 512 pixels for the sharpest result. Non-square images are centred, and the Apple icon gets a solid background because iOS shows transparent ones on black.
Example
POST https://bloodweb.net/api/v1/favicon-generate
curl -H "Authorization: Bearer YOUR_KEY" -F file=@logo.png -F "name=My site" https://bloodweb.net/api/v1/favicon-generate -o favicons.zip
Options
| Name | Description |
|---|---|
filefile |
A square image works best, at least 512px: jpg, png, gif, webp, bmp, tiff, heic, avif, ico. Non-square images are centred. |
padding
|
Space around the image, as a percentage of the icon size. Default: 0 |
background
|
Icon background, or "transparent". Default: transparent |
apple_background
|
Background for the Apple touch icon, which iOS shows on a black square when transparent. Default: #ffffff |
name
|
App name for site.webmanifest. Default: My site |
theme_color
|
theme_color for site.webmanifest. Default: #ffffff |
Returns
A zip: favicon.ico (16, 32, 48), favicon-16x16.png, favicon-32x32.png, apple-touch-icon.png (180), android-chrome-192x192.png, android-chrome-512x512.png, site.webmanifest, favicon-tags.html.