Pinatool

SVG Viewer & Code Editor

Inspect, edit, format, and preview SVG graphics side by side in real time. Test zoom scaling across transparent, light, or dark backgrounds, review element and path counts, and export clean vector files.

Samples:

SVG Source Code

Edit vector XML markup in real-time

Live Vector Preview

100%

SVG Analysis Statistics

Total Elements8
Path Elements1
Group (<g>) Tags0
Unique ID Anchors1
Size & ViewBox467 Bvb: 0 0 320 220
.svg

How It Works

1

Open or Paste SVG

Upload an existing .svg file, paste raw SVG code directly into the editor, or load one of the built-in samples like Sunset Badge or Cloud Storage Icon.

2

Inspect & Edit Code

Edit coordinates, fills, and attributes with instant visual feedback. Use Format Code for clean indentation or Minify to reduce file size.

3

Copy or Download

Copy the updated SVG markup to your clipboard or download a clean .svg file with a custom filename.

SVG Viewer & Code Editor Key Features

High-Precision Zoom Canvas

Scale graphics from 25% to 400% over checkerboard transparency, crisp white, or dark canvas backgrounds to verify fine strokes and contrast.

Format & Minify Tools

Turn compressed vector markup into readable nested XML with clean indentation, or strip comments and extra whitespace for compact delivery.

Vector DOM Structure Inspector

Track total elements, path counts, <g> groups, unique IDs, viewBox coordinates, and exact byte size live as you edit.

Frequently Asked Questions

How do I inspect white or light-colored SVG icons?

Use the canvas background switcher above the preview pane to toggle between the transparency checkerboard, light surface, and dark background. Pair it with 25%–400% zoom controls to check fine edges and contrast.

What is the difference between Format Code and Minify?

Format Code indents nested SVG tags into clean, multi-line XML so you can read and edit paths easily. Minify removes XML comments and collapses extra whitespace between tags to produce a smaller file.

What do the SVG analysis statistics measure?

The statistics bar counts total XML elements, <path> elements, <g> group tags, unique id attributes, the root viewBox value, and the exact markup size in bytes or kilobytes.

Does the editor detect broken or malformed SVG syntax?

Yes. Whenever an unclosed tag, invalid XML attribute, or missing root <svg> element is introduced, an error banner appears immediately above the preview canvas so you can fix it right away.

How can I fix an SVG that looks cropped or does not scale properly?

Check the viewBox readout in the statistics bar. If it shows "viewBox not set", add a matching viewBox="0 0 width height" attribute to the opening <svg> tag in the code editor and verify the framing in the live preview.