webdev_favicon_generator
Generate a complete favicon bundle including PNG set, ICO, apple-touch-icon, webmanifest, and HTML tags from text, emoji, initials, or uploaded image.
Instructions
Favicon Bundle Generator. Render a complete favicon bundle from text, an emoji, two-letter initials, or an uploaded base64 image data URI, returning the multi-size PNG set, a multi-resolution favicon.ico, an apple-touch-icon, a site.webmanifest, ready-to-paste HTML link tags, and a downloadable ZIP. Use this to produce browser tab and home-screen icons; for embedding a single image as a data URI use webdev_base64_image_encoder, and to shrink SVG artwork first use webdev_svg_optimizer. Runs server-side on the input you provide (GD image rendering only): read-only, non-destructive, contacts no external service, caps uploads at 4 MB, and is rate-limited (30 requests/minute for anonymous callers). Returns every generated file base64-encoded plus the resolved metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| faviconType | No | Source of the icon glyph. text/initials draw textContent (initials force upper-case), emoji draws emojiContent, upload rasterizes imageDataUrl. Invalid values fall back to initials. | initials |
| textContent | No | Text or initials drawn when faviconType is text or initials. Truncated to 8 characters; font shrinks as length grows. Defaults to AB. | |
| emojiContent | No | Single emoji drawn when faviconType is emoji. Defaults to a rocket glyph. | |
| backgroundColor | No | Icon background as a 3- or 6-digit hex color (for example 4338ca). Ignored when transparentBackground is true. Defaults to 4338ca. | |
| textColor | No | Glyph color as a 3- or 6-digit hex color. Defaults to ffffff. | |
| shape | No | Icon outline shape. Non-square shapes mask the corners to transparency. | rounded |
| fontFamily | No | CSS font stack hint for text glyphs; unrecognized values fall back to Arial. | Arial, sans-serif |
| sizes | No | Pixel sizes of PNG icons to emit (deduped and sorted). Out-of-range values are dropped. Defaults to 16, 32, 48, 64, 180, 192, 512. 16/32/48 always feed the .ico, 180 the apple-touch-icon, 192/512 the manifest. | |
| imageDataUrl | No | Source artwork for faviconType upload as a base64 data URI (png, jpeg, gif, webp, or svg+xml; SVG needs Imagick). Required for the upload type; max 4 MB decoded. | |
| imageFit | No | How an uploaded image is scaled into the square canvas. | contain |
| transparentBackground | No | When true, omit the background fill and keep the canvas transparent. | |
| padding | No | Inner padding as a fraction of icon size (clamped 0 to 0.4). | |
| siteName | No | Application name written into site.webmanifest. Falls back to tabTitle then Your Website. | |
| tabTitle | No | Page title used in the generated preview HTML; also the manifest name fallback. Defaults to Your Website. | |
| themeColor | No | theme-color meta and manifest theme as a 6-digit hex color. Defaults to backgroundColor. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | Whether generation succeeded. | |
| result | No | The generated bundle. |