SVG crop versus bitmap crop
The tool temporarily renders the SVG to find nontransparent pixels, then applies those bounds to the root viewBox. The downloaded file keeps its original SVG elements; they are not replaced with the measurement canvas.
Upload an SVG and automatically tighten the viewBox around the visible artwork so extra empty space is removed.
This tool runs in your browser. Files never leave your device.
Practical details
The tool temporarily renders the SVG to find nontransparent pixels, then applies those bounds to the root viewBox. The downloaded file keeps its original SVG elements; they are not replaced with the measurement canvas.
Only pixels at or below the transparency threshold count as empty. An opaque white rectangle is real artwork, even if it looks like blank space on a white preview, so it remains inside the crop.
Rendered strokes and browser-supported effects contribute visible pixels to the measured bounds. Very faint antialiasing, blur, or shadow pixels can fall below the chosen threshold; add padding when a soft effect needs breathing room.
The crop changes the root viewBox, width, and height while retaining the SVG markup. Vector paths remain scalable. Any PNG or JPEG already embedded in the SVG remains raster at its original resolution.
The blue rectangle occupies only the center of a 200 by 200 coordinate window. Tightening the window removes transparent margin without changing the rectangle itself.
<svg viewBox="0 0 200 200">
<rect x="30" y="40" width="140" height="120" fill="#2563eb"/>
</svg><svg viewBox="30 40 140 120" width="140" height="120">
<rect x="30" y="40" width="140" height="120" fill="#2563eb"/>
</svg>The shape coordinates are identical in both files. Only the root viewing window and intrinsic dimensions change.
Auto Crop SVG trims rendered transparent margin around visible artwork. It measures nontransparent pixels, then tightens the root viewBox, width, and height while keeping the original SVG elements in the downloaded file.
Upload an SVG, choose optional padding and a transparency threshold, and preview the measured crop. The tool uses a temporary browser canvas to find rendered bounds, then writes those bounds back to the SVG markup for download.
Distinguish transparent margins from real white shapes and tighten the canvas.
Read the four viewBox values and replace them with accurate bounds.
Troubleshoot viewBox, element, effect, and CSS layout causes in order.
Keep the original shapes while changing only the coordinate window.
No. A temporary canvas measures visible pixels, but the download keeps the original SVG elements and changes the root viewBox, width, and height.
No. Opaque white shapes count as visible artwork. The crop removes transparent margin, not real white elements.
Rendered strokes and effects are measured, but faint pixels can fall below the threshold. Lower the threshold or add padding when soft edges matter.
Check for white or nearly transparent elements, transforms, external assets, content clipped by the original viewBox, and CSS baseline or container spacing around the SVG.