SVG Crop
Trim the empty space around SVG files so the artwork fills its own canvas, for one file or a whole batch.
SVG Crop
Icons and logos exported from design tools often sit in a large empty canvas, which makes them tiny and off-center when you place them. SVG Crop finds where the visible artwork actually is and tightens the viewBox around it. Drop in a batch of files or paste SVG code, then download the cropped versions one by one or as a ZIP.
Features
-
Crops to what you can see
Each SVG is drawn and scanned for visible pixels, so the crop follows the real artwork, even when paths or groups define a larger area than what shows. -
Vector stays vector
Only theviewBoxis changed and the fixedwidthandheightare removed. Paths, colors and gradients are left as they were. -
Batch and ZIP
Drop many files at once. Select the ones you want and click Download Selected: one file downloads as SVG, several come as a dated ZIP. -
Files or pasted code
Use Browse Files, drag files onto the drop zone, or click Paste Markup to crop SVG code copied from DevTools or a design tool. -
Per-file actions
Rename a file, download it as SVG or a small PNG preview, or copy the cropped markup from the settings of each card. -
Light, dark or system theme
The workspace follows your system theme or stays light or dark, and previews switch background so white artwork stays visible.
How to use
- Add SVG Crop to Chrome from the Chrome Web Store and pin it to the toolbar.
- Click the icon. SVG Crop opens in its own tab.
- Drag SVG files onto Drop SVG files here, click Browse Files, or copy SVG code and click Paste Markup. Each file is cropped as it loads.
- Click the cards you want to keep, or click Select All.
- Click Download Selected. To rename a file or copy its code first, click the three-dot button on its card.
Why use it?
-
Icons that line up
With the padding gone, icons scale to the size you set in CSS or your layout tool and line up with text and buttons. -
No editor needed
No need to open each file in a vector editor and resize the artboard by hand. A folder of icons takes seconds. -
Private
Files are cropped inside the extension tab. Nothing is uploaded, and only your theme choice is saved.
Screenshots
FAQ
-
Does cropping change my artwork?
No. Only the
viewBoxand thewidthandheightattributes of the root<svg>are changed. Every shape stays exactly where it was. -
How exact is the crop?
The artwork is measured on a 1000 by 1000 pixel grid, so the edge can be off by about a tenth of a percent of the canvas size. Anything that is even slightly visible, such as a faint shadow, counts as artwork.
-
How large is the PNG download?
The PNG is a quick preview at the browser's default size for the cropped SVG, which fits within 300 by 150 pixels. For a large PNG, download the SVG and convert it at the size you need.
-
Why does Paste Markup show an error?
The clipboard must contain SVG code that starts with an
<svgtag and is valid XML. Copy the whole<svg>...</svg>element and try again. -
Which browsers are supported?
Chrome, Edge, Brave, Opera, Vivaldi and other Chromium-based browsers.
-
Is it free?
Yes. SVG Crop is free, with no account and no ads.