IMAGE STUDIO / TOOL GUIDE
How to turn an SVG into a PNG, JPG or WebP
Rasterize a self-contained SVG at deliberate pixel dimensions and check fonts, gradients and transparent edges.
On this page
Before you start
An SVG describes artwork, while a raster export stores a fixed grid of pixels. SVG to Image is useful when a form or application cannot accept vector files. Choose the pixel dimensions for the final use, and make the SVG self-contained before uploading: linked resources can disappear during conservative cleanup.
Follow the steps
Upload a self-contained SVG and inspect the safe decoded image.
Enter output width and height and choose the fit behavior.
Choose PNG, JPG or WebP, then check Preview at 1:1.
Create the raster result and retain the original SVG for later sizes.
On mobile, open the settings icon for options. The main action stays near the bottom. Keep the original image for revisions.
Prepare the vector source
Keep essential shapes, definitions and artwork inside the SVG. The workspace sanitizes active and external content before rendering. Local gradient and mask references can remain, but externally linked images, fonts and stylesheets may not. The current sanitizer also removes non-fragment resource references, so do not assume an embedded image data URL will survive.
Choose pixels for the destination
A raster image cannot scale indefinitely like vector artwork. Decide the required width and height before exporting. Fit keeps the entire artwork inside the target; Fill can crop edges; Stretch changes proportions. If the SVG’s viewBox leaves unused margins, inspect those margins rather than assuming every pixel will contain artwork.
Inspect text and local effects
Text can depend on fonts available to the browser. If exact lettering is essential, prepare outlined text in the original vector editor before conversion. Inspect gradients, masks, clipping and line widths. A successful decode does not demonstrate identical rendering of every SVG feature, especially after external content is removed.
Export the correct background
Use a transparency-capable format with transparency enabled for a logo that must sit on different backgrounds. JPG needs an opaque matte. The workspace limits each side to 8,192 pixels and the total canvas to 24 megapixels. Keep the original SVG rather than enlarging a small raster export for a later, larger use.
WORKED EXAMPLE
A practical example
- Start with
- A square self-contained SVG logo needed as a 512 × 512 PNG.
- Try these settings
- Set a square target, choose Fit inside and retain transparency.
- What to expect
- The export is a fixed 512 × 512 raster canvas. Check whether the logo’s own margins and text render as intended.
This example explains the workflow. It is not a recorded test or a guarantee about your file.
Check the downloaded result
- Inspect text, gradients, masks and transparency in the downloaded raster image.
- Confirm pixel dimensions and test the file where it will be used.
Questions and troubleshooting
Why did an image or font disappear?
The SVG may depend on a removed resource or a font unavailable to the browser. Make the artwork self-contained and outline essential text in the source editor.
Can I enlarge the exported PNG indefinitely?
No. It has fixed pixels. Export another size from the original SVG when you need a larger result.
Ready to try it?