How to crop an SVG
- Choose or drop an .svg file. Files with scripts, event handlers or links to outside files are refused.
- Drag the box over the part of the drawing you want and pull its handles to size it.
- Choose Fixed ratio if the crop has to be square or another set shape. The Crop area line under the options shows the size in the SVG’s own pixels.
- Press Crop SVG, then Download SVG.
What each setting does
- Crop mode
- Free for any rectangle, or Fixed ratio to lock the shape. There is no exact-pixel mode for SVG.
- Aspect ratio
- Appears with Fixed ratio. Pick from 1:1, 4:3, 3:2, 16:9, 9:16, 4:5, 3:4 and 2:3.
- Crop area
- A read-out such as “48.0 × 32.0 px of 96 × 64”. Small icons are shown on a finer grid, so the box can move in fractions of a pixel.
How a viewBox crop works
An SVG describes shapes in its own coordinate space. The viewBox on the root element says which rectangle of that space is shown. Cropping here narrows the viewBox to your box and sets width and height to the crop size. Paths, text, gradients and filters are left exactly as they were, so the drawing scales cleanly afterwards.
Any preserveAspectRatio setting on the root element is removed, so the new frame is drawn as you chose it.
The hidden parts stay in the file
Shapes outside the crop are hidden, not deleted. The file size barely changes, and anyone who opens the SVG in an editor can still see the rest. If the cut-away part must not be shared, delete it in a vector editor instead.
Limits
- SVGs that contain scripts, event handlers, outside links, imported style sheets or XML entities are not opened.
- Files over 20 MB are refused.
- An SVG with no width, height or viewBox is treated as 300 × 150 px.
- The output is an SVG. This page does not export PNG or JPG.
Questions
Does cropping an SVG lower its quality?
No. Nothing is turned into pixels. The drawing stays a vector and looks sharp at any size.
Why is the cropped SVG almost the same size in KB?
The shapes outside the crop are still stored in the file. Only a few attributes on the root element change.
Can I get the cut-off parts back?
Yes. Open the file in a text editor and set the viewBox, width and height back to their old values, or widen them. The shapes were never removed.
Why was my SVG refused?
It contained a script, an event handler or a link to an outside file. Such files are not opened. Export a plain copy without them and try again. Nothing is uploaded either way: the file is read in your browser.