Crop SVG
Change the SVG viewBox to trim canvas space. Set the crop window or estimate visible bounds, preview the vector result and download locally.
- —
- Paths
- —
- Shapes
- —
- Colors
- —
- File size
Example: crop the SVG canvas
The canvas changes from 0 0 240 180 to 20 20 200 140. The visible artwork fills more of the frame while source geometry remains.
- Parameters used
- viewBox: x 20, y 20, width 200, height 140.
- What this example does not prove
- Cropping changes the viewport and can hide edge details. It does not delete off-canvas paths or redact source content.
Self-authored test artwork, processed by the product on 2026-11-19. Not customer work or a guarantee for other inputs. View reproducibility record
What this tool does
Trim the visible SVG canvas by changing its viewBox while keeping the vector paths. Manual coordinates give an explicit window; auto-fit estimates currently visible paint.
Input, output and limits
Static SVG up to 512 KB / 2,000 elements → cropped SVG. Auto-fit uses up to 1,024 px sampling with a one-pixel guard; off-canvas source is retained.
Content reviewed: 2026-11-18 · Testing and known limits
How to use this tool
- 1
Open the SVG and inspect its current canvas.
- 2
Enter a viewBox window, or fit visible artwork and adjust padding.
- 3
Apply the crop, compare the result and download the SVG.
Common questions
- Does cropping remove paths outside the canvas?
- No. It changes the viewBox and removes fixed root pixel dimensions; off-canvas path data remains in the file. Do not use this as redaction or confidential-data removal.
- How accurate is the automatic crop?
- It measures nontransparent pixels within the current viewBox at up to 1,024 px and adds one sampling-pixel guard. Fine strokes, text and very small details need inspection or extra padding.
- Can auto-fit recover artwork outside the current viewBox?
- No. It can only measure what the browser renders inside the current viewport. Use manual coordinates to expand or move the window if hidden artwork needs to be included.
- Does this reduce vector quality or file complexity?
- Changing the viewBox does not rasterize the output or simplify paths. The auto-fit measurement uses pixels only to estimate coordinates; the downloaded result stays SVG.
A tool for the next step
Create, refine and export your SVG.
Edit
SVG Editor Online
Edit existing SVG elements, line width, opacity and visibility in your browser, with undo and redo. Inspect the result and download the edited SVG.
Resize SVG
Set SVG width and height in pixels while preserving editable vector source. Lock the aspect ratio or explicitly stretch the drawing, then download SVG.
Export
SVG to ICO Converter
Convert SVG to a multi-size ICO for modern favicons and desktop icons. Choose transparent or solid background, preview and download without uploading.
SVG to DXF Converter
Convert SVG paths and basic shapes to CAD polylines. Set drawing width, units and curve flatness, inspect the actual polyline preview and download DXF.