Preview
Export as:
Key benefits
- •Paste SVG straight from your code editor, a Figma export or the docs; no need to save a file first
- •See a live preview before converting and catch broken SVG early
- •Export to PNG (transparent background), JPG or WEBP
- •Free, and the pasted code is deleted right after conversion
Common uses
- •Turn SVG icons and logos (from Figma, Illustrator or an icon library) into images for slides and documents
- •Check what an SVG you're editing looks like before you put it on a website
- •Make preview images of SVG generated by code (charts, badges, banners) without a design tool
Frequently asked questions
How do I use SVG Code to Image?
Paste your <svg>...</svg> code into the box on the left and the preview appears on the right. Pick an output format (PNG, JPG or WEBP), then click Export to download the image.
Do I need an .svg file?
No. That's the difference from a regular SVG to PNG converter: you only paste the SVG code as text, without uploading a file.
Should I choose PNG, JPG or WEBP?
PNG keeps transparent backgrounds, which suits logos and icons. JPG gives a small file when you don't need transparency (transparent areas become white). WEBP balances small size and high quality and also keeps transparency.
How big will the exported image be?
The SVG is rendered at 300 DPI, about 4 times its size in CSS pixels. For example, an SVG 200 pixels wide becomes an image about 833 pixels wide, sharp enough for slides and print.
Will custom fonts (like Google Fonts) render correctly?
If the SVG uses a font that isn't embedded in it, the text is drawn with a fallback font and the spacing may shift slightly. For an exact result, convert text to paths (outlines) before pasting the code.
Is the SVG code I paste stored?
No. The code is only processed for the conversion and deleted straight afterwards.
Related tools
All tools →PNG to WEBP
Convert heavy PNG images to lightweight WEBP files that keep their transparent backgrounds.
JPGWEBPJPG to WEBP
Convert JPG photos to WEBP to cut file size and speed up your web pages.
HEICJPGHEIC (iPhone) to JPG
Turn iPhone HEIC photos into JPG files that open on Windows, Android and in any app.
PDFJPGPDF to JPG
Turn each page of a PDF into a sharp JPG image at 300 DPI.
COMPRESSCompress images
Shrink JPG, PNG and WEBP images for faster websites and easier sharing, without visible quality loss.
IMAGESPDFMerge images into one PDF
Combine several images into a single multi-page PDF, one image per page, in the order you choose.
SVGPNGSVG to PNG
Turn SVG vector files into high-resolution PNG images that keep their transparent background.
EXIFRemove metadata (EXIF)
Remove GPS location, camera details and other hidden metadata from photos before you share them.
IMAGEJPGConvert images to JPG
Convert PNG, WEBP, AVIF and other images to JPG, the format every device and app can open.
IMAGEJPEGConvert images to JPEG
Convert PNG, WEBP and AVIF images to high-quality JPEG files with the .jpeg extension.
IMAGEWEBPConvert images to WEBP
Convert JPG and PNG images to WEBP, the modern format that makes web pages load faster.
IMAGEPDFConvert images to PDF
Turn JPG, PNG and other images into PDF files, one page per image, with nothing cropped.
IMAGESVGConvert images to vector SVG
Trace PNG and JPG images into real vector SVG paths that scale to any size without blurring.
IMAGEAVIFConvert images to AVIF
Convert JPG, PNG and WEBP images to AVIF, one of the most efficient image formats on the web.
IMAGEICOCreate an ICO favicon
Create a multi-size favicon.ico file from a PNG, JPG or SVG image.
IMAGETIFFConvert images to TIFF
Convert JPG, PNG and WEBP images to lossless TIFF files for printing, scanning workflows and archives.
IMAGEGIFConvert images to GIF
Convert JPG, PNG and WEBP images to GIF for apps and platforms that only accept GIF.
PDFCompress PDF
Shrink PDF files by compressing the images inside them, while keeping text and layout intact.
IMAGEPNGConvert images to PNG
Convert JPG, WEBP, AVIF and other images to lossless PNG files, with transparency preserved.
PNGJPGPNG to JPG
Convert PNG images to JPG to cut file size for photos and screenshots.
JPGPNGJPG to PNG
Convert JPG photos to PNG for lossless editing and wider app compatibility.
WEBPJPGWEBP to JPG
Convert WEBP images saved from websites into JPG files that open in any app.
WEBPPNGWEBP to PNG
Convert WEBP images to PNG so you can edit them in any app, with transparent backgrounds preserved.
RESIZECrop & resize images
Drag to crop right on the image, then resize to the exact width and height you need.
PDFPNGPDF to PNG
Turn each PDF page into a lossless 300 DPI PNG, keeping transparent backgrounds.
AVIFPNGAVIF to PNG
Convert AVIF images to PNG for editing and compatibility, with transparency preserved.
AVIFJPGAVIF to JPG
Convert AVIF images into JPG files that every app, device and website accepts.
REMOVE BGPNGRemove image background
Remove the background from photos automatically with AI and get a transparent PNG.
BMPJPGBMP to JPG
Convert large, uncompressed BMP files into compact JPGs that are easy to share.
WATERMARKAdd a watermark to images
Add a text or logo watermark to several images at once, placed exactly where you want it, right in your browser.
IMAGESVG CODEImage to SVG code
Upload an image, get <svg> code to copy
IMAGEBASE64Image to Base64
Upload an image, get a Base64 string for HTML/CSS/JSON