Center Objects on the Page in Inkscape with Align and Distribute
Center vector objects on the Inkscape page using Align and Distribute with Relative to set to Page, plus verification and undo steps.
19 Oct 2025, 09:43 UTC

Problem and takeaway
You have a vector object—a path, shape, or text box—somewhere on the Inkscape canvas, and you need it centered on the page. Dragging by eye is imprecise, and the object can end up slightly off the horizontal or vertical midline. The reliable fix is Inkscape’s Align and Distribute dialog: set the reference to the page, then apply the center-on-axis commands. This moves the object’s bounding-box center to the page’s horizontal and vertical midpoint.
Desired outcome
One or more selected objects sit exactly centered on the current page, measured from the page edges rather than from neighboring objects or the drawing bounding box.
Prerequisites
- Inkscape 1.2 or later installed. Older releases may label the page option differently in the dialog.
- A document open with at least one vector object selected. Text counts as an object once it is not inside a locked group.
- The Align and Distribute dialog open: choose Object → Align and Distribute, or press Shift+Ctrl+A in the Inkscape window.
- No locked layers or locked objects blocking the selection; locked objects cannot be moved by the alignment command.
Bounding box means the invisible rectangle that tightly surrounds an object. Alignment uses that rectangle, not necessarily the visual center of a rotated or skewed drawing.
Procedure
- Select the object you want to center. To center several objects as a single unit, select them and choose Object → Group (Ctrl+G).
- Open Object → Align and Distribute, or press Shift+Ctrl+A.
- In the dialog, find the
Relative todropdown and set it toPage. - Click Center on vertical axis (two opposing vertical arrows). The object moves horizontally so its bounding-box center matches the page’s vertical midline.
- Click Center on horizontal axis (two opposing horizontal arrows). The object moves vertically so its bounding-box center matches the page’s horizontal midline.
- Close the dialog. If you grouped objects in step 1 and need them separate again, choose Object → Ungroup (Shift+Ctrl+G).
Concrete example
Suppose the page is A4 portrait (210 mm by 297 mm) and the selected object is a 60 mm by 40 mm rectangle. After setting Relative to to Page and applying both center commands, the rectangle’s bounding-box center should sit at 105 mm from the left and right edges and 148.5 mm from the top and bottom edges. Inkscape calculates the placement from the page dimensions and the object’s current bounding-box dimensions; you do not need to enter those numbers manually.
Expected checks
- Turn on View → Show Page Border so the page edges are visible.
- Open the rulers (View → Show/Hide → Rulers) and drag a guide from the horizontal ruler to the object’s vertical center. The guide should coincide with a guide placed at the page’s vertical midline.
- Open the XML Editor (Edit → XML Editor) and inspect the object’s
transformattribute. After centering, the translate values should position the object’s midpoint at roughly half the page width minus half the object width, and half the page height minus half the object height. Treat this as a structural check, not a guaranteed pixel-exact value if the object carries transforms. - Optionally export to PDF and open it in a viewer with a measurement tool to confirm equal margins on all four sides.
Recovery options
Aligning changes the object’s position, so the operation has state to undo. If the result is wrong:
- Press Ctrl+Z immediately to undo the move.
- Reopen Align and Distribute, set
Relative totoSelection, and reapply the previous alignment if you were centering objects relative to each other. - Nudge the object with the arrow keys; hold Ctrl for smaller increments if fine adjustment is needed.
If an object does not move at all, check whether its layer is locked or whether the object itself is locked; unlock it in the Layers dialog or Object → Unlock, then repeat the alignment.
Limitations
- Alignment uses the bounding box. If the object has non-uniform scaling, rotation, or skew, the bounding-box center may not match the visual center. Reset transformations first (Object → Transform → Reset) when visual centering matters more than bounding-box centering.
- Multiple objects selected without grouping are aligned individually to the page, which can cause them to overlap. Group them first if you want the whole cluster centered as one unit.
- In Inkscape versions before 1.0, the page option in
Relative tomay be labeled differently; adjust the selection accordingly.
Practical verification
After centering, enable the page border and snap to page guides. Drag one guide from each ruler to the object’s center and compare them against guides at the page midlines. If both pairs coincide, the object is centered on the page. If they do not, undo and check for locked layers or pending transformations before retrying.
0 replies
A thoughtful contribution can make all the difference. Be the first to share one.