Paste SVG code or open an .svg file and see it rendered as you type, with its size and viewBox. Save it as a PNG or JPG when you need an image.
Paste SVG markup (must contain an <svg> element) or upload a file up to 500 KB. Your code stays in your browser and is never sent to a server.
Your SVG will appear here once you paste or upload code.
PNG preserves transparency. JPEG uses a white background. Clipboard copy is PNG.
Guides · SVG code to PNG · SVG code to JPG · SVG code to SVG file · SVG to JPG
Paste SVG markup, or upload an .svg file up to 500 KB.
The preview updates as you type, with the size, viewBox, and file size underneath. Scripts and other unsafe elements are removed first.
Download a PNG or JPG at 500 to 2000 px on the longest edge, or save the markup as an .svg file.
Paste code, pick a theme, and download a PNG with syntax highlighting.
Open Code to imageTurn any HTML markup into a PNG or JPEG.
HTML code to image converterFAQ
Everything you need to know about the SVG viewer.
Yes. Upload the file here and it renders in the preview, with its size and viewBox. The file is read in your browser, not uploaded.
Yes. Scripts, foreignObject, and use elements are removed before the preview renders, so the SVG can't run anything. A style block inside the SVG is kept.
CSS from the source page doesn't come along, because only the SVG you paste is used. Colors set by the page, for example with currentColor, can change. Styles inside the SVG still apply.
Yes. Viewing, and saving a PNG or JPG at 500 to 2000 px, need no account. Pro adds 3000 px, 4000 px, and custom sizes, WebP, and batch export to a ZIP.