Skip to workspace

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.

Processed locally, no upload or login · up to 512 KB / 2,000 elements. Your SVG follows tool navigation in this tab; reloading clears it.

Window sides: 0.01–1,000,000 SVG units; coordinates ±1,000,000; padding 0–10,000.

Auto-fit estimates painted bounds at up to 1,024 px, with one sampling-pixel guard. It sees only the current viewport; inspect fine strokes and text. Manual crop changes the viewBox and keeps off-canvas source data.

Preview
Canvas

Your vector will appear here

Open a supported SVG or load the example, set this task’s options, then run it to review the actual result.

—
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. 1

    Open the SVG and inspect its current canvas.

  2. 2

    Enter a viewBox window, or fit visible artwork and adjust padding.

  3. 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.