SVG ↔ PNG
Rasteriser eller vektoriser
Om dette verktøyet
Optimize SVG files: strip Inkscape and Illustrator editor metadata, round numeric precision, drop empty groups, and shrink overall file size - often by 50% or more - without changing how the icon looks. Or convert an SVG to a rasterised PNG at any resolution.
Privvert applies SVGO-style cleanup with safe defaults so your SVG keeps working in every browser. The PNG export uses the SVG's own viewBox and renders at the size you choose. Everything runs in your browser.
SVG is XML: a small, plain-text vector format that scales to any resolution without blurring. Privvert can convert raster images (PNG, JPG) into SVG by embedding the original bitmap inside an SVG wrapper, or vectorize simple line art via edge detection. True photo-to-vector tracing produces large, complex SVGs and works best on logos and clean line drawings, not photographs.
Funksjoner
- SVGO-style optimization with safe defaults
- Strips Inkscape, Illustrator and Sketch editor metadata
- Rounds numeric precision (configurable)
- Drops empty groups, comments and metadata
- Exports SVG to PNG at any custom size
- Browser-only - files never uploaded
- Free and unlimited
Slik bruker du det
- Drop in an SVG file.
- (Optional) tweak optimization options.
- Download the cleaned SVG, or
- Pick a PNG export size and download a rasterised PNG.
Alt skjer inne i nettleseren din med JavaScript og WebAssembly. Filene dine lastes aldri opp, lagres aldri og ses aldri av oss.
Ofte stilte spørsmål
Defaults are conservative and safe. If your SVG uses CSS animations, JavaScript hooks, or specific element IDs you reference from outside, disable the more aggressive options (remove unused IDs, remove empty groups).
Editor exports (Inkscape, Illustrator) typically shrink 50-80%. Hand-written SVG already-optimized doesn't shrink much further.
For places that don't accept SVG: social media uploads, some email clients, or app icon sets that need fixed-size PNGs.
Match the largest size you'll display at, then let the browser scale down. For a logo shown up to 200 px, export at 400 px (2× for retina).
Sort of - the result will scale, but a photo-traced SVG ends up with thousands of paths and is usually larger than the original PNG. SVG is a vector format; it shines on logos, icons and illustrations, not photography.
SVGs can contain