SVG Crop
Trim the empty space around SVG files so the artwork fills its own canvas, for one file or a whole batch.
SVG CropIcons 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
viewBoxaround 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 seeEach 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 vectorOnly the
viewBoxis changed and the fixedwidthandheightare removed. Paths, colors and gradients are left as they were. - Batch and ZIPDrop 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 codeUse 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 actionsRename 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 themeThe 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 upWith 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 neededNo need to open each file in a vector editor and resize the artboard by hand. A folder of icons takes seconds.
- PrivateFiles are cropped inside the extension tab. Nothing is uploaded, and only your theme choice is saved.
Screenshots
Before and after
Workspace
File settings
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.