How to Fit an SVG Page to a Logo in Inkscape

Remove empty space around a logo without scaling the artwork. Fit the SVG page to the selected objects, add measured padding, and check for clipped edges.
Follow these steps at your own pace. Check product terms and prices directly with providers before purchasing.
Quick answer
Select the complete logo with the Selector, then choose Edit → Resize Page to Selection. The default Windows and Linux shortcut is Ctrl+Shift+R. The page border moves to the selected artwork while the logo keeps its size and proportions. This fixes the common case of a small logo floating inside a large image box.
Select everything that belongs to the logo
Use File → Save As to give the working SVG a new name. If the logo comes from a sheet with several variants or pages, copy your chosen artwork into a new, single-page document. This also keeps the unused variants out of the delivery file.
Activate the Selector, the arrow at the top of the toolbox. Click a grouped logo once. For separate pieces, Shift-click the symbol, lettering, tagline, and any registration mark. Inspect the selection box. A box around only the icon leaves the lettering outside the new page. An unexpectedly wide box can mean you selected a background rectangle or a stray object.
Fit the page and measure the result
Suppose a 320 × 80 px logo sits on a 1,200 × 800 px page. With the logo selected, set the Selector toolbar’s units to px and read its W and H. Leave those fields alone. Run Edit → Resize Page to Selection. For plain artwork with those bounds, the page now measures 320 × 80 px. You can check the page dimensions under File → Document Properties.
Keep the intended objects selected when running the command. With no selection, Inkscape fits to the drawing and a forgotten object can bring the empty strip back. Zooming to the selection changes only your view. Dragging one of the artwork handles changes the logo itself.
Add an even eight pixels on every side
For an edge-to-edge logo, skip this step. For 8 px of padding around the example, a temporary rectangle should measure 336 × 96 px. That adds 16 px to each dimension. Note the logo’s X and Y in the Selector toolbar using the top-left reference point and the usual downward Y-axis.
- Draw a rectangle, give it a visible fill, and remove its stroke. Switch to the Selector. Unlock the W/H ratio and enter 336 × 96 px.
- Set its X and Y to the logo’s recorded X and Y minus 8 px each. Keep the units and reference point consistent. Check visually that the rectangle extends equally beyond all four edges.
- With only the rectangle selected, fit the page to it. Delete the temporary rectangle and save without fitting again. The extra space belongs to the page and contains no background object.
Check the finished edges
Reopen the SVG and inspect the small text, wide strokes and soft shadows. Compare any straight-cut shadow edge with the original. A shadow already clipped in the original may need a filter adjustment. If you need a bitmap copy, export a transparent PNG at the required width using the fitted page so the padding carries through.
Inkscape’s page-fitting command and shortcut · Inkscape’s guide to page and selection bounds
Comments
Read or join the discussion.