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/heightattributes, falling back to theviewBoxthe 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
- Drag the .svg file onto the drop zone, or click Choose file.
- Or paste markup starting with
<svginto the text box and click View SVG. - 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 nowidth/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.