Fit an Inkscape Page to a Selection Without Scaling
Trim excess page space in Inkscape, keep the selected artwork at its original size, and check what happens to objects beyond the new page edge.
On this page
- Choose what the page should frame
- Fit a test page around one badge
- Check the file you’re handing off
- FAQ
- Does fitting the page change the size of my artwork?
- What happens if I run the command with nothing selected?
- Does the fitted SVG still contain objects outside the page?
- Start with editable shapes when needed
- Sources
Select the artwork with Inkscape’s Selector tool, then choose Edit → Resize Page to Selection. The page fits the selected bounds and the artwork keeps its size. In the one-page example below, clearing the selection and running the action fits the drawing. The Inkscape action reference describes the resize command.
Choose what the page should frame
The page is the rectangular area the finished file shows by default. Select the whole lockup, including any icon and lettering that should ship together. A decoration left outside the new page can disappear from a page export while staying editable in the SVG. The Inkscape workspace guide shows how the page border relates to the drawing.
| Your goal | What to do |
|---|---|
| Frame one object or group | Select it and resize the page to the selection. |
| Frame the drawing in the simple one-page sample | Clear the selection before running the same action. |
| Keep a margin for delivery | Adjust the page size in Document Properties after fitting it, then check the spacing on every side. |
| Export a tight PNG while keeping the SVG page | Pick the drawing or selection as the export area. |
In a preview that scales the page to fit a box, the artwork can occupy more of the preview after you trim the surrounding space. Check the object’s width and height in Inkscape when you need to verify its dimensions. The SVG 2 coordinate-system specification explains how a viewBox maps artwork to its viewport.
In a multi-page document, check which page is active. Inkscape can fit an active page to overlapping objects when the object selection is empty. Inkscape PageManager source
Fit a test page around one badge
Save this as badge.svg, open it in Inkscape, and make a working copy. The teal badge is 92 × 52 px on a 240 × 140 px page. The orange circle sits elsewhere on that page.
<svg xmlns="http://www.w3.org/2000/svg" width="240" height="140"
viewBox="0 0 240 140">
<rect id="badge" x="64" y="42" width="92" height="52"
rx="9" fill="#187367"/>
<circle id="spare" cx="201" cy="107" r="14" fill="#e39542"/>
</svg>- Select the teal badge alone. Switch the size readout to px and check that the selection reads 92 × 52.
- Run Edit → Resize Page to Selection. If your menu uses different wording, open File → Document Properties and look for the resize-to-content controls.
- Save and reopen your copy. Select the badge again to verify its dimensions, then preview a page export.
- For comparison, reopen a fresh copy of the original. Clear the selection, run the same action, and preview the larger page.
In Inkscape 1.4.4, fitting to the selected badge produced a 92 × 52 px page. The exported pixels matched a 92 × 52 px crop around the original badge exactly. The orange circle stayed in the saved SVG as an off-page object. With the selection cleared, the page fitted both shapes at 151 × 79 px.

Check the file you’re handing off
If the result still has too much space, check which objects are selected and whether the file has an oversized background object. If the page feels too tight, add margin, then preview a page export again. Inspect the saved SVG in the app that will receive it, especially if that app imports the drawing bounds.
For a one-off output, the Inkscape CLI export guide shows how to choose an export area while preserving the master document. If a recipient needs the outside geometry removed from the file, follow the permanent SVG crop guide.
FAQ
Does fitting the page change the size of my artwork?
The operation reframes the page. In the test, the badge measured 92 × 52 px before and after. Compare the selected object dimensions when exact scale matters.
What happens if I run the command with nothing selected?
In the one-page test, the action fitted the badge and circle together, so the page became 151 × 79 px. When working with multiple pages, check the active page before relying on an empty selection.
Does the fitted SVG still contain objects outside the page?
It can. The circle remained in the SVG after the test page fitted the badge, even though it was outside the page export. Remove any unwanted objects from the handoff copy and reopen it to verify.
Start with editable shapes when needed
PerfectVector can turn flat raster artwork into editable SVG paths. If your only source is a PNG or JPG and the logo itself needs editing, trace it to SVG, check the new shapes in Inkscape, then fit the page around the artwork you want to hand off.
Sources
- Inkscape action source — Documents the resize action and its fallback to the drawing.
- Inkscape Beginners’ Guide, Managing the Workspace — Describes the page border and Document Properties.
- W3C SVG 2, viewBox — Defines how the SVG coordinate rectangle maps to its viewport.
- Inkscape PageManager source — Documents how an active page can use its overlapping objects.
More from the blog
SVG clipPath vs Mask: Choose Hard Edges or Soft Fades
Compare SVG clipPath with alpha and luminance masks on one image. Copy the working pattern, test light and dark backgrounds, and export the right geometry.
SVG feImage: Fit, Crop, or Stretch a Filter Image
Place an SVG filter image with feImage preserveAspectRatio. Compare meet, slice, and none in the same filter primitive region.


