Skip to main content

SVG to Image

Convert SVG to sharp PNG, JPEG, WebP, or AVIF images at any size

SVG source

Drop an .svg file here

SVG files up to 5 MB.

You can also paste from the clipboard.

Sanitized source

Export settings

Format
Scale
Size

Image preview

Paste or upload an SVG to render an image.

How to use it

  1. 1.Paste SVG markup, drop or browse for an .svg file, or load the example.
  2. 2.Choose PNG, JPEG, WebP, or AVIF.
  3. 3.Pick a 1×–4× scale, a preset such as 512 × 512 or 1200 × 630, or type a width and height.
  4. 4.Choose a transparent or solid background and adjust quality for lossy formats.
  5. 5.Check the preview, then download the image or copy it to the clipboard.

What SVG to Image does

SVG to Image renders SVG markup into a PNG, JPEG, WebP, or AVIF raster image in your browser. The SVG viewport is set to the exact output size before it is drawn, so a 24 px icon exported at 1024 px stays sharp instead of being upscaled from a small bitmap.

Size, fit, and background options

The default size comes from the SVG width and height, or from its viewBox when those are missing. With the aspect ratio locked, editing one side updates the other. When the chosen size has a different aspect ratio, select Fit inside to pad, Fill to crop, or Stretch to distort. PNG, WebP, and AVIF keep transparency; JPEG cannot, so transparent areas are filled with the background color. Quality applies to JPEG, WebP, and AVIF.

Browser support and limits

AVIF and WebP options appear only when this browser can encode them. Clipboard copy uses PNG because it is the image type browsers accept most reliably; when image clipboard access is not available, download the file instead. Outputs are limited to 16,384 px per side and 100 megapixels, and very large images may fail on mobile browsers with less memory. Scripts, event handlers, and external references are removed before rendering, so external images or web fonts referenced by the SVG are not loaded.

Frequently asked questions
Why do my SVG icons stay sharp at large sizes?
The SVG viewport is set to the requested pixel size before the browser draws it, so the vector shapes are rendered at full resolution instead of upscaling a small bitmap.
Can I export a transparent JPEG?
No. JPEG has no alpha channel, so transparent areas are filled with the background color you choose. Use PNG, WebP, or AVIF to keep transparency.
Why is AVIF or WebP unavailable?
Export depends on the encoders built into your browser. The tool checks support first and only enables formats your browser can actually encode.
Why does my exported image miss some text or images?
External images and web fonts referenced by the SVG are not loaded, and unsafe or unsupported elements are removed. Embed images as PNG, JPEG, WebP, or GIF data URIs and convert text to paths for exact output.

CodingTool is officially live on