SVG Viewer and Editor
Open or paste SVG code to preview it safely, see size, viewBox and element counts, pretty-print or minify the code, edit and re-run, and export PNG.
SVG files are code, so a viewer that only shows the picture misses half the story. Open or paste an SVG here to see it rendered, read its declared size and viewBox, count its elements, and get the code back pretty-printed for editing or minified for production. Change the code in the box and run it again to see the edit. Scripts, event handlers and external links can be stripped first, because an SVG opened on its own can run JavaScript. Nothing is uploaded.
How to use this tool
- Choose an SVG file, or paste SVG code into the box.
- Pick a code layout: pretty-print, minify or keep.
- Leave the safety option on for files you did not make.
- Read the preview, size, viewBox and element table; copy the code.
- Edit the code in the box and run again; optionally export a PNG at any width.
Formula
displayed size = width × height attributes (px, pt, mm, cm, in converted at 96 px per inch); if one is missing it follows the viewBox ratio
An SVG with only a viewBox has no fixed size: it scales to whatever box it is placed in. The PNG export sets the width you choose and derives the height from the viewBox (or from width and height), so the picture is drawn sharply rather than enlarged from a small bitmap.
Example
An icon written as <svg width="2in" viewBox="0 0 40 20"> is 2 × 96 = 192 px wide; the viewBox ratio 20 ÷ 40 makes it 96 px tall. Exporting it as a PNG at 1024 px gives a 1024 × 512 image.
Frequently asked questions
Is it safe to open an SVG from the internet?
As an image (the preview here), yes: browsers never run scripts inside an <img>. Opened directly in a tab, an SVG can run JavaScript, so keep “Remove scripts, event handlers and external links” on and download the cleaned file.
Why does pretty-print not touch the text inside <text>?
Spaces and line breaks inside text elements are part of what is displayed. Re-indenting them would change the drawing, so they are kept exactly.
Can I drag shapes around?
No — this is a code editor with a live preview, not a drawing program. For layout changes, edit the coordinates in the code and run again.
Are my files uploaded?
No. Parsing, cleaning and the PNG export happen in your browser.
Last updated:
Page address with these inputs: https://kakao.mobile/tools/svg-viewer/
Cite or embed this tool
kakaoCalc. (2026, November 8). SVG Viewer and Editor. https://kakao.mobile/tools/svg-viewer/
“SVG Viewer and Editor.” kakaoCalc, 8 Nov. 2026, kakao.mobile/tools/svg-viewer/.