📷 SVG to Raster
Paste or drop an SVG, pick dimensions and format, and export a pixel-perfect PNG or JPEG — all in your browser.
SVG input
Paste, drop, or upload an SVG to begin.
Output size
×
📐 Size presets
Presets ignore the aspect lock so they always set both dimensions.
Format
PNG is lossless — quality slider is disabled.
JPEG background
JPEG can't store transparency; this color fills behind transparent areas.
CSS-style angle — 0° goes bottom→top, 90° left→right. Two stops; for more, edit the exported file.
Preview
Live preview appears here once you paste valid SVG markup.
Source SVG — × —
Output 1200 × 630
About SVG to Raster
SVG is great in the browser — it scales crisply and stays editable as code — but you sometimes need a pixel image: a social-card preview, a chat-app upload, a printed asset, a screenshot for a slide deck. This tool rasterizes any SVG to PNG, JPEG, or WebP at the exact pixel size you ask for, using the browser's built-in renderer. Nothing leaves your machine.
How to use
- Paste SVG markup, drop a
.svgfile, or click Load sample SVG. - The live preview updates automatically; the source SVG's natural size is detected from its
viewBox/width/heightattributes. - Pick a preset or type a custom width × height; toggle Lock aspect to maintain the source ratio.
- Choose PNG (lossless), JPEG (smaller, opaque), or WebP (lossy, good compression). Tweak quality if applicable.
- Click Download or Copy image.
Common use cases
- Render an OG card SVG to PNG at 1200×630 for
<meta property="og:image">. - Export a logo SVG as a high-DPI PNG for places that can't use vector (chat avatars, app stores).
- Generate a JPEG screenshot of a chart SVG for a slide deck.
- Quick PNG export for Figma-imported icons without launching a design tool.
Tips
- If your SVG references external fonts via
@importor<link>, the canvas pipeline can't fetch them — inline font glyphs as paths, or use a system font. - SVGs with external
<image href="…">won't load cross-origin images here. Embed them as data URIs first. - For social cards, the OG Image Builder creates a 1200×630 card directly without writing SVG.
- For QR codes the dedicated QR Code Generator already exports both SVG and PNG.