Drag to crop, like a photo

Crop SVG

Drag a crop box on the preview, fit it to the drawing, or type the exact area. The SVG stays a sharp vector.

Last updated: November 2026

Drag

On the preview

Fit

To the drawing

Shapes

1:1, 16:9 and more

Private

No uploads

Drop SVG files here

Or paste SVG code anywhere on this page

Your files never leave this device

How to crop svg

01

Open your SVG

Drop the SVG above, choose it, or paste its code anywhere on the page. It opens with a crop box around its current frame.

02

Drag the crop box

Move the box, or drag its corners and edges. Pick a shape such as 1:1 or 16:9, or select Fit to the drawing to trim the empty space.

03

Apply the crop

Choose whether to keep the scale or the size, then select Apply crop. Undo steps back if needed.

04

Save it

Download the SVG, save it as PNG or JPG, or copy it for your code.

How cropping an SVG works

An SVG isn't cropped by cutting pixels. Its viewBox, four numbers, sets which area of the drawing fills the image (MDN). Cropping means a smaller viewBox around the part you want. Everything outside it stays in the file but isn't shown, and the shapes inside stay sharp vectors.

When the SVG has a fixed width and height, they shrink with the viewBox, so the drawing keeps its scale: cropping shows less of it, it doesn't get bigger. To make the cropped SVG a certain size afterwards, use Resize SVG.

Cropping on the preview

The preview shows the whole drawing with the crop box over it; what's outside the box is dimmed, and a dashed line marks the old frame. Drag inside the box to move it, or drag a corner or an edge to resize it. Hold Shift to keep its shape, or pick a shape (1:1, 4:3, 3:4, 16:9, 3:2, or the original's). Edges snap to the drawing's edges and to the old frame, and the arrow keys nudge the box.

Parts drawn outside the SVG's edges show too, so you can widen the crop to include them. Zoom and pan the preview as usual while cropping.

Keep the scale, or keep the size

Keep the scale (the default) leaves the drawing at the same scale: cropping to half the area makes the SVG half as big, showing less. Keep the size keeps the SVG's width, and the cropped part grows to fill it, like zooming in. Either way the shapes stay vectors and stay sharp.

Crop to content: removing empty space

Fit to the drawing (or Crop to content, which does it in one step) draws the SVG, finds where something is actually drawn, and sets the crop tightly around it, plus the padding you choose (in the SVG's own units). It looks beyond the current edges too, so parts that were cut off come back into view.

A background rectangle counts as drawn: an SVG with a full background has no empty space to remove. Hide or delete the background in the Layers list first, then crop to the shapes on it. Transparent and very faint pixels are ignored.

Setting the viewBox yourself

To show an exact area, type its four numbers: x and y are the top-left corner, and width and height its size, in the drawing's own units. Width and height must be above zero; a viewBox of zero width or height draws nothing (MDN). If the new area has a different shape, the drawing is centered and scaled to fit by default (W3C SVG 2).

An SVG with no viewBox gets one first, made from its width and height, so cropping works on any SVG.

More SVG tools

Every SVG tool here runs in your browser: nothing is uploaded, and scripts inside an SVG never run (it's shown as an image, and they're removed before you save).

Frequently asked questions

How do I crop an SVG?

Open it above: a crop box appears on the preview. Drag it and its corners or edges, or select Fit to the drawing, then select Apply crop and download the SVG.

What's the difference between keeping the scale and keeping the size?

Keeping the scale makes the SVG smaller, showing less of the same drawing. Keeping the size keeps its width, and the cropped part grows to fill it.

How do I remove the white space around an SVG?

Use Crop to content. If the space is a white background rectangle rather than empty, hide or delete that rectangle in the Layers list first.

Does cropping an SVG lose quality?

No. Cropping changes the viewBox, the area that's shown; the shapes stay vectors and stay sharp at any size.

Does cropping delete the parts outside?

No. They stay in the file but aren't shown, so you can crop differently later. To remove them, delete them in the Layers list.

Why did Crop to content make my SVG bigger?

Parts of the drawing were outside the old edges. Crop to content brings back everything that's drawn.

Can I crop an SVG to a square?

Yes: set a viewBox with equal width and height around the part you want.

Can I crop an SVG and save it as PNG?

Yes. After cropping, select Save PNG at 1x to 8x. The PNG is the cropped area.

Are my files uploaded?

No. Everything runs in your browser and your SVGs never leave your device.

Crop an SVG

Drop an SVG above, or paste SVG code anywhere on the page.