Do you know the feeling? You've placed several elements in a document, and none of them sits the way you imagined. That's exactly what GIMP's Align tool is for. You can reach it via the icon in the toolbox or more quickly with the keyboard shortcut Q.
With this tool, you align individual objects, i.e. layers, relative to one another, for example to an edge, to the center, or to a selection. You can also align them to the entire document. In this tutorial, I'll show you step by step how to use the function, which alignment targets are available to you, and how to set up fixed distances with the offset. You'll also learn where typical mistakes lurk.
Key Takeaways
- The Align tool is based on the size of the layer. Layers that are as large as the entire document can hardly be aligned in any meaningful way.
- Before you align, crop each layer to its content using "Autocrop Layer".
- The "First item" option is based on the object you click first, not on its position in the Layers palette.
- With the offset, you set fixed distances in pixels. Negative values are allowed.
- The alignment targets "Active channel" and "Active path" do not work reliably in the version shown in the video.
Step-by-Step Guide
Step 1: Getting to Know the Align Tool
Before you get started with the practical part, it's worth taking a look at the tool itself. If you activate it via the icon or with Q, numerous options open in the tool options. In the video's example, several objects lie on different layers: a red circle, a green rectangle, a yellow and a blue square, and a line. You can align each of these layers individually.

Step 2: Checking Layers with a Visible Layer Boundary
To see how large a layer really is, activate the "Show Layer Boundary" option under "View". If you click on the yellow square with the Align tool active, small white handles appear at its corners. This shows you that the layer is cropped exactly to the object. When you click on the blue square, however, the handles are missing, and the layer boundary encloses the entire document. The tool can do little with such a layer.
Step 3: Autocrop Layers
The problem with the blue square can be fixed quickly. Click the affected layer in the Layers palette and then choose the entry "Autocrop Layer" in the "Layer" menu. The layer then shrinks to the size of the blue square. You should repeat this step for every layer you want to align. Otherwise, the tool will be based on the wrong size.
Step 4: Understanding the Flow of Layer Selection
If you switch to a layer with a transparent background using the Move tool, you often only now see how large it actually is. This check helps you recognize why an alignment doesn't work as expected. The Align tool only responds correctly if the layer is cropped exactly to its content.
Step 5: Setting the Alignment Target
In the tool options, you'll find a menu where you specify what the objects should be oriented to. The choices are "First item", "Image", "Selection", "Active layer", "Active channel", and "Active path". First, choose the option you want to work with. Everything else in this guide builds on this decision.
Step 6: Understanding the Alignment Buttons
Below the menu, you'll find buttons for alignment. With them, you determine whether an object is aligned to the left, to the right, to the center, to the top edge, to the middle line, or to the bottom edge. The "Distribute" area has the same buttons but additionally offers an offset. With it, you can later set fixed distances.
Step 7: Working with "First item"
If you choose "First item" in the menu, all other objects are aligned to the object you click first with the tool. The position in the Layers palette plays no role here. So first click on the blue square until the typical white squares appear at its corners. Then hold down the Shift key until a small plus sign appears next to the mouse pointer, and click the remaining objects. With the "Align left edge" button, all left edges are aligned to the left edge of the blue square. With "Align center" in both directions, all objects lie exactly on top of one another in the middle of the square. Before you continue, undo the changes with Ctrl+Z.
Step 8: Align to the Entire Document with "Image"
If you choose "Image" instead, the objects are aligned relative to the document itself. Hold down the Shift key while clicking the individual objects to select all the layers you want. Clicking on an empty area cancels the selection. The alignment then works exactly as before, only relative to the document edges and the document center.
Step 9: Select Objects with a Frame
A selection frame is faster than clicking objects individually. With the Align tool active, click on an empty area, hold down the left mouse button and drag out a frame. All objects within the frame are selected when you release the button. You can then place them left-aligned, right-aligned or centered again.
Step 10: Work with a Selection
The "Selection" option refers to a selection that you previously created with a selection tool. For example, drag out an area with the rectangle select tool. The marching ants show you the selection. If you now select the yellow square and click "Align left" and "Align top", it ends up in the upper left corner of this selection. You can also undo this change with Ctrl+Z.
Step 11: Work with "Active Layer"
With the "Active Layer" option, the order of the mouse clicks doesn't matter. Instead, select all objects and, in the layers palette, highlight the layer that the others should align to, in the example the yellow square. If you then click "Align right", all remaining objects align to the right edge of the yellow square. The same works with all the other buttons.
Step 12: Check the "Active Channel" and "Active Path" Options
The video shows that the last two alignment targets don't respond as expected in the GIMP version shown. Even when a path is active and an object is clicked, nothing happens. If you need to work with these options, you should test the function in your own version beforehand. For the remaining tasks, you can manage well with the other alignment targets.
Step 13: Set Up Fixed Distances with the Offset
The "Distribute" option additionally offers a field for the offset in pixels. If you choose "Image" as the target and set the offset to 0, the result of a left alignment looks the same as without an offset. If you instead enter 150 pixels and click "Align left" again, a distance of exactly 150 pixels is created between the left edge of the document and the red square. The blue square is then 300 pixels from the edge, the green one 450 pixels. The distances therefore add up from object to object.
Step 14: Pay Attention to Order and Negative Values
The order of the objects in the layers palette is irrelevant to the result. GIMP sorts the objects from left to right. The object that is furthest to the left therefore appears first. If you move the blue square to the left in the document and then align with "Align left", it moves to the first position.
The offset also accepts negative values. If you want to align the objects to the right with a distance of 150 pixels from the right edge, enter -150. Without this value, the objects would end up outside the document. With Ctrl+Z you can undo such failed attempts at any time.
Summary – GIMP Align Tool Simply Explained: Aligning Objects Precisely
The Align tool in GIMP is a powerful aid, but it requires some patience. The most important prerequisite is that each layer is cropped to its content. After that, you choose the appropriate alignment target, that is, the first object, the image, a selection or the active layer. With the offset in the "Distribute" area, you set fixed distances, even with negative values. The operation is not always convenient, but with a little practice, layers can be placed reliably and without guesswork.
FAQ
Why can't my object be aligned properly?The layer is probably not cropped to its content. Select the layer and use the "Crop to Content" entry in the "Layer" menu.
How do I tell whether a layer is cropped?Under "View", activate the "Show Layer Boundary" option. If the layer is cropped, white handles appear on the object when you click it with the Align tool.
What exactly does "First Item" mean?The objects align to the object that you click first with the Align tool. The position in the layers palette doesn't matter.
How do I select several objects at the same time?You can hold down the Shift key and click the objects one after another. Alternatively, with the tool active, drag out a frame while holding the left mouse button.
What do I use the offset for?The offset defines a fixed distance in pixels. It is available in the "Distribute" area and affects the alignment.
Are negative values allowed for the offset?Yes, negative values are allowed. They are useful if you want to align to the right with a distance from the right edge of the document.
Why don't "Active Channel" and "Active Path" work?The video shows that these two options don't respond as expected in the GIMP version shown. Test them in your version before you rely on them.
How do I undo an incorrect alignment?Use the key combination Ctrl+Z to undo the last step.
