Free SVG viewer

SVG viewer: open and inspect SVG files online

Drop an SVG file or paste its code to preview it on a transparent checkerboard, check its dimensions and viewBox, and read the markup. Everything happens in your browser.

Drop an SVG file here

or

Runs in your browser · Nothing is uploaded · No account

What the viewer shows you

  • Rendered preview on a checkerboard, so white fills and transparent regions are easy to see.
  • Pixel size resolved from the width/height attributes, falling back to the viewBox the way browsers do.
  • viewBox, which explains most scaling, cropping and offset problems.
  • Element count and file size, a quick signal that a file exported from a design tool needs cleaning up.
  • Highlighted source so you can read the markup without opening a code editor.

How to view an SVG file

  1. Drag the .svg file onto the drop zone, or click Choose file.
  2. Or paste markup starting with <svg into the text box and click View SVG.
  3. Check the preview and stats. Click Edit in Vectopea to change it, or View another file.

Problems the viewer helps you spot

  • A blank preview. Usually shapes outside the viewBox, fill="none" with no stroke, or white artwork. The checkerboard makes white and transparent areas visible, and the viewBox in the stats tells you where the visible area starts.
  • The wrong size on your page. Compare the pixel size with the viewBox. If the file has no width/height, it takes its size from the viewBox or from the CSS of the page it sits in.
  • A suspiciously large file. A high element count or file size for a simple icon usually means editor metadata, hidden layers or an embedded bitmap. The SVG optimizer removes most of that.
  • Missing fonts or images. Text set in a font the browser doesn't have falls back to another font, and linked images that aren't embedded won't load. Converting text to outlines in the editor avoids the font problem.

Why not just open the SVG in a browser tab?

Any browser can display an SVG, and for a quick look that's fine. The viewer adds the things a tab doesn't show: a checkerboard so transparent areas are obvious, the resolved size and viewBox, the element count and file size, and the highlighted source next to the image. It also renders the file as an image, so scripts inside an untrusted SVG don't run.

Viewer or editor?

A viewer answers “what is in this file?”. When you need to move a shape, recolour an icon, fix a path or export a PNG, open the file in the online SVG editor. It reads CSS classes, nested transforms, <use>/<symbol> and gradients, so the file opens the way it looks here. To rasterise without editing, use the SVG to PNG converter. To fix the size or empty margins, try resize SVG or crop SVG.

Questions

How do I open an SVG file online?

Drop the .svg file onto the viewer above or click Choose file. It renders instantly in your browser. You can also paste SVG markup straight into the text box.

Is my SVG uploaded to a server?

No. The file is read and rendered locally by your browser. Nothing leaves your device.

Why does my SVG look blank?

The usual causes are shapes drawn outside the viewBox, a fill of none with no stroke, white artwork on a white background, or references to external images and fonts the browser cannot load. The checkerboard background makes white and transparent areas visible, and the stats panel shows the viewBox so you can spot an offset.

Is it safe to view SVG files from unknown sources?

SVG can contain JavaScript. This viewer renders the file as an image, which stops scripts from running. Only open untrusted SVGs directly in a browser tab if you know what they contain.

How do I view the code of an SVG file?

Load the file and the viewer shows its full markup, syntax-highlighted, under the preview. SVG is plain text, so you can also open it in any code editor, but the viewer puts the rendered image, its size and its code side by side.

Why is my SVG the wrong size?

Browsers size an SVG from its width and height attributes, and fall back to the viewBox when those are missing. A file with no width or height, or with a viewBox that doesn't match them, can display larger, smaller or stretched. The viewer shows the resolved pixel size and the viewBox side by side so you can see which one is in charge. To change them, use the resize tool.

Can I view SVG files on a phone?

Yes. The viewer runs in mobile browsers too. Tap Choose file to pick an SVG from your phone, or paste the markup into the text box.

Can I edit the SVG after viewing it?

Yes. Click Edit in Vectopea to open the file in the full SVG editor, where shapes, paths, text, gradients and groups become editable objects.