Category: Developer tools
SVG viewBox Editor
Read and rewrite SVG min-x, min-y, width, and height
Paste SVG markup, edit min-x, min-y, width, and height in the viewBox, preview the result, and copy the rewritten SVG locally.
<svg width="120" height="120" viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg"> <rect width="120" height="120" rx="16" fill="#0f766e" /> <circle cx="60" cy="60" r="34" fill="#f4d35e" /> </svg>
Nothing is uploaded. The markup is parsed and rewritten in this page only.
Everything on this page is processed in your browser. Nothing is uploaded.
What this tool does
This SVG viewBox Editor works with pasted SVG markup. It reads the current viewBox, or falls back to width and height when no viewBox is present. You can adjust min-x, min-y, width, and height by hand, preview how the artwork is cropped, padded, or re-anchored, and copy the rewritten SVG. It does not upload SVG files, edit path nodes, repair broken markup, optimize SVG, or export PNG. Your input and output stay in the browser.
How to use it
- Paste SVG markup that includes an <svg> tag.
- Load the current viewBox or enter min-x, min-y, width, and height.
- Check the preview and copy the rewritten SVG markup.
Privacy
This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.
Frequently asked questions
- How do I edit the four SVG viewBox values?
- Paste the SVG, load the current viewBox, then change the min-x, min-y, width, and height fields.
- Can changing the viewBox crop or add padding to an SVG icon?
- Yes. Changing the coordinate rectangle changes the visible area, so you can crop, pad, or re-anchor the artwork.
- What happens if the SVG has no viewBox?
- The tool can use the SVG width and height to prefill size fields so you can create or adjust a viewBox manually.
- Does this SVG viewBox Editor upload my SVG markup?
- No. The SVG markup, settings, preview, and rewritten output are processed locally in your browser and are not uploaded to LocalTools.
- What SVG editing features does it not support?
- It does not support file uploads, batch processing, path-node editing, automatic SVG repair, SVG optimization, or PNG export.