Guide

THE TOOLBOX / VECTOR & FAVICON STUDIO

Convert SVG to PNG, WebP &
multi-size favicon.ico.

Rasterize SVG vectors up to 2048×2048 px, pack binary 16/32/48px favicon.ico containers, and export Next.js & PWA manifest snippets 100% locally.

LIVE PREVIEW & METADATASource 64×64

Ready to rasterize SVG to PNG/WebP or pack a 16/32/48px binary favicon.ico.

THE DETAILS

High-DPI vector rasterization, binary Microsoft ICONDIR packing, and modern PWA icon standards.

1. Native Binary .ico Container Packer

Many web converters simply rename a single PNG to favicon.ico, causing blurry scaling on Windows taskbars and browser bookmark bars. Our engine writes a true little-endian ICONDIR header and ICONDIRENTRY directory table bundling crisp 16×16, 32×32, and 48×48 32-bit RGBA frames.

2. Lossless High-DPI PNG & WebP Scaling

Because SVG paths are resolution-independent mathematical curves, our pipeline scales your vector coordinate space directly to the target pixel dimensions (`180×180` Apple Touch, `512×512` Android PWA, or `2048×2048` high-DPI) prior to rasterization.

3. Sandboxed SVG Security Sanitizer

Before loading SVG markup into an offscreen image buffer, the sanitizer removes executable <script> tags, <foreignObject> nodes, and inline on* event attributes while ensuring the required XML namespace is present.

4. Ready-to-Paste Next.js & HTML Snippets

Copy complete HTML5 <head> link tags, Next.js App Router export const metadata icon objects, and W3C manifest.webmanifest files. Want to minify your SVG markup or convert an existing raster photo first? Use the SVG Optimizer & JSX Converter or Image Resizer & Compressor.

Modern Web & PWA Favicon Asset Matrix

Asset FilenameDimensions & FormatTarget Platform / Browser
/favicon.ico16×16, 32×32, 48×48 (Binary ICO)Desktop browser tabs, bookmarks, RSS readers
/icon.svgScalable Vector SVG (with viewBox)Modern Chrome, Firefox, Safari, Edge tabs
/apple-touch-icon.png180×180 px (Opaque PNG recommended)iOS / iPadOS Safari “Add to Home Screen”
/icon-192.png & /icon-512.png192×192 px & 512×512 px (PNG)Android Chrome PWA launcher & splash screen

Common SVG-to-Favicon Pitfalls & Troubleshooting

Transparent Apple Touch Icons Turning Black

iOS Safari does not support alpha transparency on Home Screen icons and fills transparent pixels with solid black. Switch Background to Solid Background Hex when exporting your 180×180 Apple Touch icon.

Missing xmlns Attribute in Raw SVGs

Inline HTML5 SVGs often omit xmlns="http://www.w3.org/2000/svg", which causes standalone image decoders to fail. Our sanitizer automatically injects the canonical XML namespace.

External Web Fonts Inside SVG Text

For security reasons, browser Canvas rasterizers block external @font-face network requests inside SVG images. Convert text layers to vector outlines in Figma or Illustrator before exporting.

Non-Square SVG Aspect Ratios

Favicons and PWA icons require a 1:1 square aspect ratio. Center wide logos inside a square viewBox="0 0 64 64" so the icon is not stretched.

Frequently Asked Questions

How does this tool create a real multi-resolution .ico file in the browser?

Instead of renaming a PNG file to .ico, our binary packer constructs a spec-compliant Microsoft ICONDIR 6-byte little-endian header followed by 16-byte ICONDIRENTRY directory records for 16×16, 32×32, and 48×48 32-bit RGBA PNG frames.

Which favicon sizes do modern browsers, iOS, and Android actually need?

Following Evil Martians’ modern favicon checklist, you only need: (1) favicon.ico containing 16×16, 32×32, and 48×48 frames for legacy user agents, (2) icon.svg for scalable vector tabs with dark-mode support, (3) apple-touch-icon.png at 180×180 px for iOS Home Screen bookmarks, and (4) 192×192 and 512×512 PNGs referenced in manifest.webmanifest for Android PWAs.

Why does my SVG need a viewBox attribute to scale cleanly to 1024px or 2048px?

The SVG viewBox="0 0 width height" attribute defines the internal vector coordinate system. When a viewBox is present, the HTML5 Canvas rasterizer scales bezier curves mathematically to any target resolution (up to 2048×2048 px) with zero pixelation.

Is untrusted SVG markup sanitized before rendering to Canvas?

Yes. The sanitizer strips <script> elements, <foreignObject> subtrees, and inline on* event handler attributes before creating the local SVG Blob URL.

Are my brand logos or unreleased app icons uploaded to a server?

Never. SVG sanitization, HTML5 Canvas rasterization, and binary .ico byte packing execute 100% client-side inside your browser tab.