SVG Viewer & Editor

Paste or drop SVG code to preview it live with automatic sanitizing, zoom and pan, then export PNG, JPG or a clean SVG — everything runs in your browser

.svg
SVG code Waiting for input
1
Ln 1, Col 1 0 chars
Preview 300 × 150

Drop an SVG in

Drag a .svg file, paste code, or start from a sample. Everything is parsed in your browser — nothing is uploaded to a server.

— —
100%

How to use

A complete SVG viewer: edit, zoom, pan and export — all running locally.

Live preview

Renders as you type with a 170ms debounce; on a syntax error the last good frame stays instead of flashing blank.

Free zoom and pan

The wheel zooms around the cursor, dragging pans the canvas, double-click toggles fit and actual size.

Multi-format export

PNG at 1x/2x/3x, JPEG, the SVG source — or copy the PNG straight to the clipboard.

Security sanitizing

Scripts, event handlers, external links and dangerous protocols are stripped before rendering, with a sandboxed iframe as backstop.

Highlighting and formatting

XML highlighting, line numbers and one-click reindent; very large files degrade gracefully to keep typing smooth.

Fully local

One file, no backend, no network requests. It works offline and your files never leave your computer.

  1. 1 Load content Click Open file, drop a .svg into the window, paste code directly, or start from one of the six samples.
  2. 2 Adjust the view Zoom with the wheel, pan by dragging, and switch between checkerboard, white and dark backgrounds to check transparency and strokes.
  3. 3 Export the result Export PNG or JPEG at the scale you need, or download the sanitized SVG source.

Why can I not click links in the preview? For safety the preview runs in a sandboxed iframe, where scripts and same-origin access are completely blocked. Internal interaction is isolated as a result — a deliberate trade-off for a viewer.

Frequently asked questions

Are my files uploaded?

No. The page has no backend at all: parsing, rendering and exporting happen in your browser, and it works offline.

Why can I not click links in the preview?

For safety the preview runs in a sandboxed iframe, where scripts and same-origin access are completely blocked. Internal interaction is isolated as a result — a deliberate trade-off for a viewer.

How large can a file be?

Illustrations and icons are no problem. Files over 12MB are refused; above roughly 400,000 characters syntax highlighting pauses so typing stays responsive.

Why is the exported image transparent?

A checkerboard means transparency. Switch to the white or dark background before exporting and the PNG will carry that color, while JPEG is always composited onto the current background.