SVG Code
1
Preview
Paste SVG code to preview
viewBox
—Size
—Elements
—Bytes
—Colors
Edit, inspect & tidy SVG markup with a live preview
Paste or open any .svg file to inspect its XML markup beside a live rendered canvas. Check the viewBox and dimensions, inspect and tweak colours across paths and shapes, pretty-print minified vector code, and download clean SVG files directly from your browser.
- Debug broken icons quickly: Spot missing
viewBoxattributes, clipped coordinates, hardcoded fills (replace withcurrentColorfor theme-aware UI icons), and unnecessary wrapper groups. - Safe local preview: Vector files are parsed and rendered locally without uploading proprietary brand marks or UI assets.
- Need raster PNG or ICO output? Once your vector looks right, drop it into the SVG Converter to export high-DPI PNG, WebP, JPG, or multi-size favicon ICO files.
Why does my SVG scale strangely when embedded in HTML?
An SVG with fixed width and height but no viewBox cannot scale fluidly. Adding a matching viewBox="0 0 W H" lets CSS resize the graphic cleanly.
How do I make an SVG icon inherit CSS text colour?
Replace hardcoded hex values on fill or stroke with currentColor so the icon automatically follows light and dark theme text colours.
Can I convert my edited SVG to PNG or favicon ICO?
Yes — download the SVG here and open it in the SVG Converter or ICO Converter for local raster export.