Skip to content

Favicon generator

Create every icon modern browsers, iPhones and Android home screens expect—packed in one ZIP.

Drop a logo, PNG or SVG here

Square SVG or PNG (at least 512×512) gives the sharpest app icons

HTML <head> tags
<link rel="icon" href="/favicon.ico" sizes="48x48">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">
<meta name="theme-color" content="#141413">

How to use Favicon generator

  1. Pick an icon source. Upload a logo under From image or SVG, or switch to From text or initials to style a letter badge.
  2. Check tab contrast. Inspect the Light browser tab and Dark browser tab previews to confirm legibility.
  3. Tune padding and colors. Adjust Safe-zone margin, Solid background on all icons, Site or app name, and Browser theme color.
  4. Download and install. Click Build favicon package (.zip), extract favicons.zip into your public folder, and paste the HTML head tags.

Everything runs in this browser tab. Nothing you paste or open is uploaded or logged, so it's safe for keys, tokens and private data.

What files belong in a modern favicon package?

A complete modern favicon package ships seven core files inside favicons.zip: a multi-resolution favicon.ico, an optional vector icon.svg, favicon-32x32.png, apple-touch-icon.png, two Android Chrome PNGs, site.webmanifest, and head-tags.html. Generating all assets from one master source inside your browser keeps brand proportions consistent across desktop tabs and mobile home screens.

Multi-size favicon.ico binary and vector icon.svg

Many online tools rename a single 32 px PNG to .ico, which breaks legacy crawlers and desktop bookmark managers. Here, encodeIco constructs a genuine ICONDIR binary containing 16×16, 32×32, and 48×48 frames encoded as 32-bit PNG payloads.

When your source is an SVG file or a generated text badge, the bundler also optimizes icon.svg at 2-decimal precision. If you want to inspect or further minify custom SVG logos before bundling, run your master vector through that tool first.

Apple touch icon, Android PWA Chrome icons, and site.webmanifest

Mobile operating systems read dedicated high-resolution PNGs instead of favicon.ico. The packager renders apple-touch-icon.png at 180×180 px for iOS Safari, plus android-chrome-192x192.png and android-chrome-512x512.png for Chrome and Progressive Web Apps.

Output file Dimensions Purpose Notes
favicon.ico 16, 32, 48 px Legacy browsers & RSS/bookmark crawlers Real 32-bit PNG ICONDIR binary
icon.svg Scalable vector Modern desktop & mobile tabs Included for SVG uploads & badges
favicon-32x32.png 32×32 px Standard raster tab fallback Crisp high-color PNG
apple-touch-icon.png 180×180 px iOS & iPadOS home screen Opaque backdrop enabled by default
android-chrome-192x192.png 192×192 px Android home screen shortcut Referenced in site.webmanifest
android-chrome-512x512.png 512×512 px Android splash & maskable icon Tagged "purpose": "any maskable"

Both Android icons are wired into site.webmanifest following the W3C Web App Manifest Specification, using your Site or app name (with short_name capped at 24 characters) and Browser theme color.

Converting PNG or SVG logos and designing text badges

You can generate a full icon suite either from an existing logo file or from scratch without opening a vector editor. Switching between From image or SVG and From text or initials updates the live tab and home-screen previews immediately.

PNG to ICO and SVG to ICO rasterization pipeline

In From image or SVG mode, drop any PNG, JPG, WebP, or SVG logo (square 512×512 px or larger is ideal for sharp downscaling). Uploaded SVGs are sanitized before rendering onto high-quality HTML5 Canvases at 16 px, 32 px, 48 px, 180 px, 192 px, and 512 px, handling both PNG to ICO and SVG to ICO workflows in one pass.

Designing 1-to-3 character badges with shape and contrast controls

Switching to From text or initials opens a clean SVG badge generator with a 512×512 viewBox aligned to the W3C Scalable Vector Graphics (SVG) 2 Specification. Enter 1 to 3 initials or an emoji, pick Rounded, Circle, or Square under Badge shape, and customize Background and Letter color.

Before finalizing your badge palette, check WCAG contrast between badge background and letter colors so small 16 px browser tab icons stay crisp and legible.

Why do Apple touch icons and dark tabs need special handling?

A logo that looks sharp on a white desktop tab can vanish in dark mode or render with black corners on an iPhone home screen. Inspecting both Light browser tab and Dark browser tab previews catches visibility issues before you publish.

Opaque background matte for iOS home screen icons

Apple’s home screen strips alpha transparency from apple-touch-icon.png and fills transparent pixels with black. Keeping Opaque background on iOS apple-touch-icon checked composites your logo onto your chosen backdrop color (or #ffffff for non-square badges) at 180×180 px while leaving desktop favicon.ico and icon.svg transparent.

Testing dark mode tab contrast and 0 to 25 percent safe-zone margins

Dark-colored monograms often disappear against dark browser chrome (#18181a). Enabling Solid background on all icons places a consistent matte behind every size, while the Safe-zone margin slider adds 0% to 25% padding (default 8%) so Android adaptive masks never clip logo edges. If your source image needs circular framing before generating icons, prepare it with the circle crop image tool.

Tip: Keep important badge initials or logo marks inside the center 80% of the canvas so Android "any maskable" icons never trim corners when cropped into circles or squircles.

Adding the five modern favicon HTML tags to your public folder

Modern browsers no longer require twenty separate <link> tags for obsolete Windows Tiles or legacy iPad resolutions. Clicking Build favicon package (.zip) packs all icons alongside site.webmanifest and head-tags.html using a background Web Worker so your browser stays responsive.

Unzip favicons.zip into your site’s public/ directory so each file serves from the domain root, then click Copy snippet to paste the <head> tags into your HTML template. Following the MDN Web App Manifests Guide, the <link rel="manifest" href="/site.webmanifest"> tag and <meta name="theme-color"> tag wire up mobile address-bar tinting and home-screen installation automatically.

If you host your site under a subpath rather than the domain root, update each href attribute in head-tags.html and the src paths inside site.webmanifest to match your base URL. Every image, ICO binary, and manifest file is built locally in your browser without uploading brand assets.

If you are launching a new web app or landing page and want printable links to match your freshly branded site, pair your icon package with our QR code generator to export matching SVG or PNG codes locally.

Questions

What sizes should a modern favicon have?

Modern sites need a multi-size favicon.ico with 16x16, 32x32, and 48x48 frames, a scalable icon.svg, a 180x180 apple-touch-icon.png, and 192x192 plus 512x512 PNGs referenced in site.webmanifest. Legacy 72x72 iPad and Windows Tile icons are no longer needed.

Why does an Apple touch icon need an opaque background?

When iOS saves a transparent PNG to the home screen, Safari fills transparent pixels with solid black. Keeping Opaque background on iOS apple-touch-icon enabled composites your icon over a solid backdrop before saving the 180x180 PNG.

Is the generated favicon.ico a genuine multi-resolution ICO binary?

Yes. The encoder writes a standard Windows and Web ICONDIR header followed by 16x16, 32x32, and 48x48 32-bit PNG frames rather than renaming a single PNG file.

When does the package include icon.svg?

An optimized icon.svg is included in favicons.zip whenever you upload an SVG source file or create an icon in From text or initials mode. Raster PNG or JPG uploads omit icon.svg and adjust the HTML snippet automatically.

What is the safe-zone margin slider used for?

The Safe-zone margin slider adds 0% to 25% padding around uploaded logos so rounded home-screen masks on Android and iOS never clip the outer edges of your mark. It defaults to 8% for balanced framing.

How do I deploy favicons.zip to a static site or framework?

Unzip favicons.zip directly into your project's public or static root directory so /favicon.ico and /site.webmanifest resolve at the domain root. Then paste the contents of head-tags.html inside your base layout head element.

Updated