To center a layer in Photoshop, click the layer in the Layers panel, press Ctrl+A (Cmd+A on a Mac) to select the whole canvas, then choose Layer > Align Layers to Selection > Vertical Centers and Layer > Align Layers to Selection > Horizontal Centers. Press Ctrl+D (Cmd+D) to deselect, and the layer sits in the exact middle of the canvas.
These steps work in Photoshop CS5, CS6 and every Creative Cloud version, including the current Photoshop on Windows and Mac. Recent versions can also center a single layer from the Move tool’s options bar without a selection, which is covered below.
How Centering Works in Photoshop
Photoshop’s align commands line up a layer with a reference. When there’s an active selection (the moving dashed outline, sometimes called marching ants), the reference is that selection. Select All makes the selection the same size as the canvas, so aligning to it centers the layer on the canvas.
Photoshop measures the layer by its visible pixels, not by the layer’s full size. A logo with a transparent area around it is centered by the logo itself, which is usually what you want.
Aligning only moves the layer. Nothing is cropped or deleted, and Edit > Undo puts it back.
Center a Layer on the Canvas With the Layer Menu
- Open the Layers panel. If it’s hidden, choose Window > Layers.
- Click the layer you want to center. It’s highlighted in the panel.
- Choose Select > All, or press Ctrl+A (Windows) or Cmd+A (Mac). A dashed outline appears around the edge of the canvas.
- Choose Layer > Align Layers to Selection > Vertical Centers. The layer moves up or down to the vertical middle.
- Choose Layer > Align Layers to Selection > Horizontal Centers. The layer moves left or right to the horizontal middle.

- Choose Select > Deselect, or press Ctrl+D (Cmd+D), to remove the dashed outline.

When no selection is active, the same submenu is named Layer > Align, and it aligns selected layers to each other instead of to the canvas. If you see Align instead of Align Layers to Selection, the selection didn’t take. Press Ctrl+A again.
You can use just one of the two commands. Horizontal Centers alone centers a heading from left to right and leaves it at its current height. Vertical Centers alone does the opposite.
Once a logo with a transparent area is centered, you can convert the transparent PSD to a PNG so the empty area around it stays clear on a web page.
Center a Layer With the Move Tool Buttons
The align commands are also buttons, which is quicker if you center things often.
- Click the layer in the Layers panel.
- Press Ctrl+A (Cmd+A) to select all.
- Press V to switch to the Move tool. A row of align buttons appears in the options bar at the top of the window.
- Click Align vertical centers, then Align horizontal centers. Hover over a button to see its name if you aren’t sure which is which.
- Press Ctrl+D (Cmd+D) to deselect.
Center Without a Selection in Newer Versions
In recent Creative Cloud versions of Photoshop, the align buttons can line up a single layer with the canvas with no selection at all.
- Press V for the Move tool.
- Click the three-dot More options button at the end of the align buttons in the options bar. The Align and Distribute panel opens.
- Set Align To to Canvas.
- Click the layer in the Layers panel, then click the vertical center and horizontal center buttons.
Photoshop remembers the Align To setting, so switch it back to Selection when you want to align to a marquee again. Photoshop CS5 and CS6 don’t have this option, so use the Select All method there.

Center a Layer Inside Part of the Image
To center something within a banner, panel or column instead of the whole canvas, draw a selection around that area with the Rectangular Marquee tool (press M). Click the layer in the Layers panel, then run Vertical Centers and Horizontal Centers from Layer > Align Layers to Selection. The layer is centered inside the area you drew.
To adjust the area before you align, choose Select > Transform Selection, drag the handles, and press Enter (Return on a Mac) to apply it.
Center One Layer on Another Layer
To center a caption on a photo or an icon on a button shape, you have two options.
Use the other layer’s pixels as the target. This keeps the reference layer exactly where it is.
- Hold Ctrl (Cmd on a Mac) and click the thumbnail of the reference layer in the Layers panel. A selection appears around that layer’s visible pixels.

- Click the layer you want to move.
- Choose Layer > Align Layers to Selection > Vertical Centers, then Horizontal Centers.
- Press Ctrl+D (Cmd+D) to deselect.
Align the layers to each other. This can move either layer.
- In the Layers panel, click the first layer, then Ctrl+click (Cmd+click) the second layer’s name so both are selected.
- Make sure nothing is selected on the canvas (press Ctrl+D or Cmd+D).
- Choose Layer > Align > Vertical Centers, then Layer > Align > Horizontal Centers.
The layers line up with each other, which isn’t necessarily the middle of the canvas. To keep several layers in place relative to each other while centering them on the canvas, put them in a group (Ctrl+G or Cmd+G), click the group, select all, and align the group. This also works for shapes such as straight lines drawn in Photoshop.
Center by Dragging With Smart Guides
For a quick visual check, Smart Guides show colored lines when the layer you’re dragging lines up with the canvas center.
- Make sure View > Show > Smart Guides and View > Snap both have checkmarks.
- Press V for the Move tool and drag the layer toward the middle.
- Release the mouse when the guides cross through the middle of the layer.
In a busy document, the guides can snap to other layers instead of the canvas, so use the align commands when the result needs to be exact. Adobe explains these guides in Work efficiently with Smart Guides, and the align commands in Align layers.
To mark the center permanently for later layouts, choose New Guide from the View menu (in newer versions it sits under View > Guides), pick Vertical, type 50% in Position, and click OK. Repeat with Horizontal. The two guides cross at the middle of the canvas, and layers snap to them while Snap is on.
Fine-Tune the Position
After centering, you may want a layer slightly above the middle, which often looks better for titles. With the Move tool active, each press of an arrow key moves the layer a small amount, and Shift plus an arrow key moves it 10 times farther. Count your presses so you can move it back the same distance, or align again to return to the exact center.
When the Align Commands Are Grayed Out
- The align commands are grayed out. Photoshop needs something to align to. Press Ctrl+A to select all, or select at least two layers. Also make sure a layer is highlighted in the Layers panel. In recent versions, setting Align To to Canvas also turns the buttons on.
- The layer is named Background and won’t move. A Background layer is locked. Choose Layer > New > Layer From Background and click OK, then center it. Adobe covers this in Convert background and regular layers.
- The layer has a lock icon. Click the layer, then click the highlighted lock button next to Lock at the top of the Layers panel to turn it off, and align again.
- The layer looks a little off-center. Photoshop counts every visible pixel, including soft shadows, glows and stray pixels you may not notice. Turn off layer effects or erase stray pixels, then align again.
- The align buttons aren’t in the options bar. They only appear while the Move tool is active. Press V. If the options bar is missing, choose Window > Options.
- The wrong layer moved. The highlighted layer in the Layers panel is the one that moves. Undo with Ctrl+Z (Cmd+Z), click the right layer, and repeat.
- The layer moved off-center after you resized the canvas. Aligning is a one-time move. Select all and run the center commands again after any canvas size change.
Centering Layers Questions
How do I center text in Photoshop?
Click the type layer and use the same steps: select all, then align vertical and horizontal centers. This centers the text layer on the canvas. The Center text button in the Type tool’s options bar and the Paragraph panel only controls how lines line up inside the text box. If the text shifts after you change the font in Photoshop, center it again.
Is there a keyboard shortcut to center a layer?
Photoshop doesn’t include a single default shortcut. Choose Edit > Keyboard Shortcuts, set Shortcuts For to Application Menus, expand Layer, and assign keys to the vertical and horizontal center align commands. You can also use the Move tool buttons.
Does this work in Photoshop CS5?
Yes. CS5 has Layer > Align Layers to Selection and the Move tool align buttons. It doesn’t have the newer Align To: Canvas option, so make a selection first.
Can I center a layer copied from another image?
Yes. After you copy a layer to another image, select it in the new document and follow the same steps.
Will centering change my layer’s size or quality?
No. Aligning only changes the layer’s position. The pixels, size and layer effects stay the same.

Matthew Burleigh is the founder, head writer, and editor of Solve Your Tech, which he launched in 2012. He has written technology tutorials since 2008 and worked in IT since 2003, including small-business support, IT management, and consulting. He holds Bachelor’s and Master’s degrees in Computer Science from Arizona State University.
Matthew writes practical guides for Windows, iPhone and iPad, Microsoft Office, Outlook, Google apps, and Android. Solve Your Tech’s guides are checked step by step against the device or app maker’s own documentation and tested on his own devices whenever he has the hardware or software, with clear steps, sources, and update dates.
Read more about Matthew and how Solve Your Tech writes and updates its guides, or report a correction.