SVG viewBox Editor

Paste SVG code and adjust its viewBox, width and height live

도구를 불러오는 중…

🔒 Everything runs 100% in your browser. Your files and input are never uploaded to any server.

This tool lets you paste raw SVG markup and fine-tune the viewBox's minX, minY, width and height along with the width/height attributes using simple number fields, with instant live preview. It's handy for developers and designers who need to fix cropped icons, adjust padding, or debug a broken viewBox visually. Everything runs client-side in your browser, so nothing is uploaded to a server.

How to use

  1. Paste your SVG markup into the SVG code input box.
  2. The existing viewBox values auto-fill the Min X, Min Y, Width and Height fields.
  3. Adjust the number fields and watch the preview panel update instantly.
  4. Optionally set width/height attributes, then copy the resulting SVG code.

FAQ

What happens if my SVG has no viewBox attribute?
The editor falls back to the SVG's width and height attributes to estimate an initial viewBox.
Is my SVG code sent to a server?
No. Parsing and serialization happen entirely in your browser using DOMParser and XMLSerializer — nothing leaves your device.
What if I paste invalid SVG code?
If parsing fails or no svg element is found, an error message appears in the preview area instead of a broken render.

← Back to all tools

가격 보기카톡 무료 상담