SVG to PNG / JPEG
Convert SVG to exact-size PNG, JPG or WebP with contain or cover fit and safe local rendering.
This tool runs entirely in your browser. Your data is never uploaded, never stored, and never leaves your device.
Rasterize local SVG into exact-size PNG, JPG or WebP, choosing contain or cover fit and a background while blocking active and external SVG content.
How to use it
- 1Open an SVG file or paste its markup and inspect the detected dimensions.
- 2Choose output dimensions, fit, image format and background.
- 3Choose Render image, check warnings and the preview, then download the image.
What happens to your data
SVG validation, drawing and raster export take place in your browser. Linked remote resources and active content are blocked; embed assets and convert essential fonts to paths when accurate rendering matters.
Last updated September 2026
Turn an SVG file or pasted vector markup into PNG, JPG or WebP at the pixel dimensions you need. An exact-size export is useful for a logo slot, an app asset or a social image where a scale multiplier alone cannot specify the final canvas. Choose contain to keep the whole artwork, or cover when filling the canvas matters more than retaining its edges.
SVG is not just a list of harmless drawing paths: it can contain scripts, external images, styles, links and embedded HTML. The conversion pipeline blocks active content and external resource references before local rendering. A missing external font or image is a visible limitation, not a reason to upload the artwork or quietly contact another site.
A viewBox describes the SVG's coordinate system; it is not always a promised output size. Review the detected dimensions, output aspect ratio and background before exporting. Text should be converted to paths when a precise font appearance is essential. A raster export has a fixed pixel grid and cannot later recover the original vector detail.
How it works
Validated SVG markup with active, external or unsupported drawing content refused is decoded as a local image, fitted to a bounded canvas, then encoded using the browser's image encoder. Contain uses the smaller width or height scale and can leave space around the image; cover uses the larger scale and crops overflow. The chosen pixel width and height are the downloaded image dimensions.
PNG and WebP can retain transparency when supported by the selected output. JPEG has no alpha channel, so choose a background for transparent areas. Browser font availability, filters and advanced SVG features can affect rendering. The output is a raster image, not an editable SVG, and output is limited to an 8,192-pixel edge and 16 million pixels. SVG markup is limited to 2 MB to bound tab memory use.
Worked example: fit a wide logo into a square
- Input
- SVG source: 240 × 120. Output: 512 × 512. Fit: Contain.
- Result
- The artwork is 512 × 256, centred with 128 pixels above and below.
Cover instead scales it to 1024 × 512 and crops 256 pixels from each side. The downloaded canvas remains 512 × 512.
Common use cases
- Creating an exact-size transparent PNG from a local logo SVG
- Fitting vector artwork into a fixed thumbnail without stretching it
- Producing JPG or WebP for a system that does not accept SVG
- Finding external assets that must be embedded before a private conversion
Frequently asked questions
How do I convert SVG to PNG at an exact size?+
Open an SVG or paste its markup, set the output width and height, choose the fit and background, then choose Render image. Check the preview before downloading the raster image.
What is the difference between contain and cover?+
Contain fits the entire artwork within the canvas and can leave empty space. Cover fills the canvas while cropping artwork outside its bounds. Both preserve the source aspect ratio instead of stretching it.
Why is a linked image or font missing from my SVG conversion?+
An SVG that depends on external resources is refused for privacy and safety. Use supported self-contained artwork and convert critical text to vector paths before exporting. Do not assume the browser has the same fonts as the design application.
Can I convert SVG to JPG with a transparent background?+
JPEG cannot store transparency. Pick a solid background to fill transparent areas, or choose PNG or WebP when an alpha channel is required.
Will the exported raster stay sharp at any size?+
No. SVG is vector artwork; a PNG, JPG or WebP export has fixed pixels. Export at the resolution you need and retain the original SVG for future resizing.
Does this execute scripts in an SVG?+
No. Active, external or unsupported drawing content is refused before rendering; the converter does not promise to clean an arbitrary interactive SVG into an equivalent safe image. The tool is an image converter, not an interactive SVG application runner.
Standards and limitations
Related tools
Image Format Converter
Batch-convert PNG, JPG and WebP, resize images, and control JPEG backgrounds locally.
Favicon Generator
Turn text, emoji or an image into a tested ICO and PNG favicon pack with a manifest and install tags.
Image Resizer
Resize images to exact dimensions right in your browser.
Screenshot Beautifier
Frame screenshots for sharing, add captions, and cover private areas before a local PNG export.