SVG Validator
Checks SVG files for XML errors, broken references, typos, and unsafe code.
Open an SVG file or paste SVG code to see it drawn right away. This SVG viewer shows the image on light, dark, or checkerboard backgrounds, zooms from 25% to 800%, and lists its size and viewBox.
Previews as you type. Scripts and links inside the SVG are not run.
The SVG is drawn by your browser as an image, the same way it would appear in an <img> tag on a web page.
width and height attributes if they are there, otherwise the viewBox size, otherwise the default of 300 × 150 pixels.width="64" height="64" and viewBox="0 0 64 64", so its intrinsic size is 64 × 64 px. At 400% it fills 256 × 256 px and still has clean edges.currentColor with no fill shows as black on the light and checkerboard backgrounds, because an image has no surrounding text color.viewBox="0 0 10 5" gets an intrinsic size of 10 × 5 px.Any current browser opens SVG files. Here you can also paste the code, switch backgrounds, zoom in, and see the viewBox and size at the same time.
Yes. The file is shown as an image, and browsers never run scripts or open links in SVG images. Nothing is uploaded either.
Often the drawing is white on a white background (switch to Dark), or the file has no size and no viewBox, so it falls back to 300 × 150 and the drawing sits outside that area.
It probably uses currentColor, which takes the text color of the page around it. As a standalone image there is no text color, so it shows as black.
Often used together with the SVG Previewer.
Checks SVG files for XML errors, broken references, typos, and unsafe code.
Adds a viewBox to SVG files from their width and height or their drawn content.
Runs HTML, CSS, and JavaScript live in a secure sandbox with a console.