How Browser-Based SVG to PNG and ICO Conversion Works
Scalable Vector Graphics (SVG) define two-dimensional graphics using XML-based vector paths. While vectors scale infinitely without loss of fidelity, many web platforms, desktop environments, and mobile applications require fixed-resolution raster bitmaps like PNG or multi-layer ICO favicons. Our generator performs this conversion 100% locally in your browser memory using hardware-accelerated Canvas rendering.
Client-Side Security & Active Content Sanitization
Because SVG is an XML dialect, untrusted SVG files can embed active scripts, malicious event handlers (such as onload or onclick), and remote network trackers. Our sanitization boundary completely disarms vectors before rendering:
- Script Purging: Strips all
<script>elements and removes inline event handlers from all nodes. - Zero Network Leakage: Disables external
<image>,<use>, and CSS@importor@font-facenetwork URLs, preventing tracking and exfiltration. - Safe ForeignObject Handling: Neutralizes embedded HTML markup to ensure zero cross-site scripting (XSS) risk.
Multi-Resolution ICO Favicon Architecture
The Microsoft ICO format encapsulates an ICONDIR header and an array of directory entries pointing to independent image payloads. Modern browsers and operating systems automatically pick the most suitable resolution from this container:
- 16×16: Classic desktop browser tab favicon.
- 32×32: High-DPI / Retina tab icon and taskbar shortcut.
- 48×48: Windows desktop application shortcut and task switcher icon.
- 64×64 to 256×256: Windows high-DPI desktop view, file explorer previews, and web store assets.
Frequently Asked Questions
- Werden meine SVG-Dateien auf externe Server hochgeladen?
- Nein. Alle Vorgänge für Parsing, Bereinigung, Canvas-Rasterisierung und ICO-Paketierung laufen zu 100% lokal im Speicher Ihres Browsers.
- Wie schützt das Tool vor schädlichen Skripten (XSS)?
- Der SVG-Code wird durch eine strikte Sicherheitsgrenze geleitet, die <script>-Tags, Event-Handler (onload, onclick) und externe Netzwerkabrufe restlos entfernt.
- Warum enthält die ICO-Datei mehrere Auflösungen?
- Webbrowser und Betriebssysteme nutzen unterschiedliche Icon-Größen (16x16 für Tabs, 32x32 für HiDPI-Monitore und 48x48 für Desktop-Verknüpfungen).
- Bleibt die Alpha-Transparenz bei exportierten Dateien erhalten?
- Ja. Sowohl PNG- als auch ICO-Exporte unterstützen und bewahren den 32-Bit RGBA-Transparenzkanal standardmäßig.