Skip to main content
🇪🇸 Español 🇧🇷 Português 🇩🇪 Deutsch
Image Converter Video Converter Audio Converter Document Converter
Tools Guides Formats Pricing API
Log In
Guide

SVG Format: The Complete Guide to Scalable Vector Graphics

PC By Pablo Cirre

Related conversions

Put what you just learned into practice — convert your files now in seconds, free and without registration.

Frequently Asked Questions

Use Inkscape: `inkscape --export-type=png --export-width=512 input.svg -o output.png` — it preserves alpha channel (transparency) by default. ImageMagick: `magick -background none input.svg output.png` (the `-background none` is crucial for transparency). rsvg-convert: `rsvg-convert -w 512 input.svg -o output.png`. In Python: `cairosvg.svg2png(url="input.svg", write_to="output.png", output_width=512)`. Avoid browser screenshot methods for transparent PNGs as they may render white backgrounds.

Use Inkscape: `inkscape --export-type=png --export-width=512 input.svg -o output.png` — it preserves alpha channel (transparency) by default. ImageMagick: `magick -background none input.svg output.png` (the `-background none` is crucial para transparência). rsvg-convert: `rsvg-convert -w 512 input.svg -o output.png`. In Python: `cairosvg.svg2png(url="input.svg", write_to="output.png", output_width=512)`. Avoid browser screenshot methods para transparente PNGs as they may render white fundos.

Use Inkscape: `inkscape --export-type=png --export-width=512 input.svg -o output.png` — it preserves alpha channel (transparency) by default. ImageMagick: `magick -background none input.svg output.png` (the `-background none` is crucial für Transparenz). rsvg-convert: `rsvg-convert -w 512 input.svg -o output.png`. In Python: `cairosvg.svg2png(url="input.svg", write_to="output.png", output_width=512)`. Avoid browser screenshot methods für transparent PNGs as they may render white Hintergrunds.

Use Inkscape: `inkscape --export-type=png --export-width=512 input.svg -o output.png` — it preserves alpha channel (transparency) by default. ImageMagick: `magick -background none input.svg output.png` (the `-background none` is crucial para transparencia). rsvg-convert: `rsvg-convert -w 512 input.svg -o output.png`. In Python: `cairosvg.svg2png(url="input.svg", write_to="output.png", output_width=512)`. Avoid browser screenshot methods para transparente PNGs as they may render white fondos.

Use <strong>lossy</strong> (JPG, WebP, AVIF) for photographs — the human eye barely notices the difference at quality 80–85, and file sizes are 5–20× smaller. Use <strong>lossless</strong> (PNG, WebP-lossless) for screenshots, UI mockups, logos and anything with sharp edges or text — lossy creates ugly artifacts around boundaries.

Two common causes: (1) Missing or incorrect viewBox — without viewBox, the SVG has no intrinsic coordinate system and browsers may render it at default 300×150px, then scale it. Add `viewBox="0 0 W H"` matching your coordinate space. (2) No width/height specified in CSS — the browser may render at an unexpected size. Set explicit CSS dimensions. Also check if the SVG has hardcoded width/height attributes that conflict with CSS. Use developer tools to inspect the rendered SVG dimensions.

Two common causes: (1) Missing ou incorrect viewBox — sem viewBox, the SVG has no intrinsic coordinate system e browsers may render it at default 300×150px, then scale it. Add `viewBox="0 0 W H"` matching your coordinate space. (2) No width/height specified in CSS — o navegador may render at an unexpected size. Set explicit CSS dimensions. Also check if the SVG has hardcoded width/height attributes that conflict com CSS. usar developer ferramentas to inspect the rendered SVG dimensions.

Two common causes: (1) Missing oder incorrect viewBox — ohne viewBox, the SVG has no intrinsic coordinate system und browsers may render it at default 300×150px, then scale it. Add `viewBox="0 0 W H"` matching your coordinate space. (2) No width/height specified in CSS — der Browser may render at an unexpected size. Set explicit CSS dimensions. Also check if the SVG has hardcoded width/height attributes that conflict mit CSS. verwenden developer Werkzeuge to inspect the rendered SVG dimensions.

Two common causes: (1) Missing o incorrect viewBox — sin viewBox, the SVG has no intrinsic coordinate system y browsers may render it at default 300×150px, then scale it. Add `viewBox="0 0 W H"` matching your coordinate space. (2) No width/height specified in CSS — el navegador may render at an unexpected size. Set explicit CSS dimensions. Also check if the SVG has hardcoded width/height attributes that conflict con CSS. usar developer herramientas to inspect the rendered SVG dimensions.

For new projects in 2026, WebP is supported by all modern browsers (95%+ of traffic) and saves 25–35% over JPG at the same visual quality. AVIF is even more efficient (40–50% smaller) but encoding is slower and Safari support is recent. Use WebP as the default and AVIF as the progressive enhancement via <code>&lt;picture&gt;</code> with JPG fallback.

Yes — SVG elements are DOM nodes and can be animated with CSS `animation` and `transition` properties. Properties you can animate: fill, stroke, opacity, transform (translate, rotate, scale), stroke-dasharray/dashoffset (for path drawing effects). One caveat: SVG uses `transform-origin: center` differently than HTML — for rotation around an element's center in SVG, use `transform-box: fill-box; transform-origin: center` in CSS. SMIL animations (using `<animate>` inside SVG elements) are an alternative but less supported in IE.

Yes — SVG elements are DOM nodes e can be animated com CSS `animation` e `transition` properties. Properties you can animate: fill, stroke, opacity, transform (translate, rotate, scale), stroke-dasharray/dashoffset (for path drawing effects). One caveat: SVG uses `transform-origin: center` differently than HTML — para rotation around an element's center in SVG, usar `transform-box: fill-box; transform-origin: center` in CSS. SMIL animations (using `<animate>` inside SVG elements) are an alternative mas less suportado in IE.

Yes — SVG elements are DOM nodes und can be animated mit CSS `animation` und `transition` properties. Properties you can animate: fill, stroke, opacity, transform (translate, rotate, scale), stroke-dasharray/dashoffset (for path drawing effects). One caveat: SVG uses `transform-origin: center` differently than HTML — für rotation around an element's center in SVG, verwenden `transform-box: fill-box; transform-origin: center` in CSS. SMIL animations (using `<animate>` inside SVG elements) are an alternative aber less unterstützt in IE.

Yes — SVG elements are DOM nodes y can be animated con CSS `animation` y `transition` properties. Properties you can animate: fill, stroke, opacity, transform (translate, rotate, scale), stroke-dasharray/dashoffset (for path drawing effects). One caveat: SVG uses `transform-origin: center` differently than HTML — para rotation around an element's center in SVG, usar `transform-box: fill-box; transform-origin: center` in CSS. SMIL animations (using `<animate>` inside SVG elements) are an alternative pero less soportado in IE.

It depends on the tool: ImageMagick and FFmpeg copy EXIF by default, while cwebp drops it unless you pass <code>-metadata all</code>. KaijuConverter strips metadata server-side after conversion to protect your privacy — if you need to keep camera or GPS data, use a desktop tool you control.

Modern browsers (Chrome 80+, Firefox 41+, Edge 80+, Safari 12+) support SVG favicons directly with `<link rel="icon" type="image/svg+xml" href="/favicon.svg">`. SVG favicons can use CSS media queries for dark/light mode: add `@media (prefers-color-scheme: dark) { :root { fill: white; } }` inside the SVG's `<style>`. For maximum compatibility, provide both SVG and ICO: first the SVG link, then a fallback `<link rel="alternate icon" href="/favicon.ico">`. Apple devices still require the apple-touch-icon PNG.

Modern browsers (Chrome 80+, Firefox 41+, Edge 80+, Safari 12+) support SVG favicons directly com `<link rel="icon" type="image/svg+xml" href="/favicon.svg">`. SVG favicons can usar CSS media queries para dark/light mode: add `@media (prefers-color-scheme: dark) { :root { fill: white; } }` inside the SVG's `<style>`. para máximo compatibilidade, provide both SVG e ICO: first the SVG link, then a fallback `<link rel="alternate icon" href="/favicon.ico">`. Apple devices still require the apple-touch-icon PNG.

Modern browsers (Chrome 80+, Firefox 41+, Edge 80+, Safari 12+) support SVG favicons directly mit `<link rel="icon" type="image/svg+xml" href="/favicon.svg">`. SVG favicons can verwenden CSS media queries für dark/light mode: add `@media (prefers-color-scheme: dark) { :root { fill: white; } }` inside the SVG's `<style>`. für maximal Kompatibilität, provide both SVG und ICO: first the SVG link, then a fallback `<link rel="alternate icon" href="/favicon.ico">`. Apple devices still require the apple-touch-icon PNG.

Modern browsers (Chrome 80+, Firefox 41+, Edge 80+, Safari 12+) support SVG favicons directly con `<link rel="icon" type="image/svg+xml" href="/favicon.svg">`. SVG favicons can usar CSS media queries para dark/light mode: add `@media (prefers-color-scheme: dark) { :root { fill: white; } }` inside the SVG's `<style>`. para máximo compatibilidad, provide both SVG y ICO: first the SVG link, then a fallback `<link rel="alternate icon" href="/favicon.ico">`. Apple devices still require the apple-touch-icon PNG.

Three common causes: (1) ICC color profiles dropped during conversion shift colors slightly; (2) chroma subsampling (4:2:0) reduces color accuracy in lossy JPG/WebP; (3) the new format may not support all features of the original (e.g. PNG → JPG drops transparency to white). For pixel-perfect results stick to lossless formats and preserve color profiles explicitly.

We use cookies and similar technologies to personalise content and ads, and to analyse traffic. Learn more about cookies.