How to Center a Layer in Photoshop

To center a layer in Photoshop, select the layer in the Layers panel, choose Select › All, and then choose Layer › Align Layers to Selection › Vertical Centers followed by Horizontal Centers. The layer’s content moves to the middle of the canvas. Choose Select › Deselect when you are done.

This guide covers Photoshop on desktop (Windows and Mac). The steps follow Adobe’s current help pages, and the same menu commands exist in older versions such as Photoshop CS5.

Before you start

  • The layer must be a regular layer. A layer named Background is locked in place. Convert it first (see the troubleshooting section below).
  • Know what “centered” means here. Photoshop lines up the center of the layer’s content with the center of the selection border. A selection is the area inside the moving dashed outline. When you select everything, that outline sits on the edge of the canvas, so the layer lands in the middle of the canvas.
  • Nothing is deleted. Aligning only moves the layer. You can reverse it with Edit › Undo.

Center a layer on the canvas

  1. Open the Layers panel. If you do not see it, choose Window › Layers.
  2. Click the layer you want to center. It is highlighted when selected.
  3. Choose Select › All. The default shortcut is Ctrl+A on Windows or Cmd+A on a Mac. A dashed outline appears around the whole canvas.
  4. Choose Layer › Align Layers to Selection › Vertical Centers. The layer moves up or down to the middle.
  5. Choose Layer › Align Layers to Selection › Horizontal Centers. The layer moves left or right to the middle.
  6. Choose Select › Deselect (Ctrl+D or Cmd+D by default) to remove the dashed outline.
Steps to center a layer in Photoshop: select the layer, Select All, Align Layers to Selection, vertical and horizontal centers

If the submenu in your version is simply called Align, use that. The center commands are the same. Adobe’s Align layers help page explains that Vertical Centers and Horizontal Centers line the layer up with the center of the selection border.

You only need one of the two commands if you want the layer centered in one direction. For example, use just Horizontal Centers to center a heading left to right while keeping it near the top.

Use the Move tool buttons instead of the menu

The same commands appear as icons, which is faster when you center things often.

  1. Select the layer in the Layers panel.
  2. Choose Select › All.
  3. Select the Move tool in the Tools panel, or press V. Alignment and distribution icons appear in the options bar across the top of the window.
  4. Click the Align Vertical Centers icon, then the Align Horizontal Centers icon. Hover over an icon to see its name.
  5. Choose Select › Deselect.

Some recent versions are reported to include an Align To setting behind a three-dot button in the options bar, with a Canvas choice that centers without Select All. Adobe’s current align help page does not describe that setting, so if you do not see it, use the Select All steps above.

Center a layer inside part of the image

You do not have to center on the whole canvas. Draw a selection around the area you care about, such as a banner or a column, with the Rectangular Marquee tool. Then select the layer and use the same Vertical Centers and Horizontal Centers commands. The layer is centered inside the area you drew rather than the full canvas.

Center layers on each other

To line up one layer with another, no selection is needed.

  1. In the Layers panel, select two or more layers. Shift-click to select a range of layers.
  2. Choose Layer › Align › Vertical Centers, Horizontal Centers, or both.

The layers line up with each other instead of the canvas, so the result may not be in the middle of the document. This also works for shape layers, such as straight lines and arrows drawn in Photoshop.

Comparison of centering a Photoshop layer on the canvas with Select All versus centering it on another layer with Layer Align
Illustration: centering one layer on the canvas compared with centering layers on each other.

Center by dragging with Smart Guides

Smart Guides are temporary pink lines that appear while you drag and show when a layer lines up with edges or centers. They are handy for a quick visual check.

  1. Choose View › Show › Smart Guides and make sure it has a checkmark.
  2. Choose View › Snap so it also has a checkmark. Snapping pulls the layer onto a guide when it gets close.
  3. Select the Move tool and drag the layer toward the middle. Release the mouse when the pink guides show it is centered.

Adobe describes these options in Work efficiently with Smart Guides. In a document with many layers the guides can refer to other layers rather than the canvas, so the align commands are the more reliable choice for an exact center.

Check the result or undo it

Run the same two center commands again with everything still selected. If the layer does not move, it is already centered. To put the layer back where it was, choose Edit › Undo right after aligning, once for each command you used.

Troubleshooting

  • The align commands are grayed out. They need something to align to. Choose Select › All first, or select at least two layers. Also confirm that a layer is highlighted in the Layers panel.
  • The layer is called Background and will not move. Select it and choose Layer › New › Layer From Background, then select OK. Adobe covers this in Convert background and regular layers.
  • The layer looks slightly off-center. Photoshop centers all of the layer’s content, including faint pixels and soft edges you may not notice. Erase or mask stray pixels, then align again.
  • No align icons in the options bar. They only show while the Move tool is active. Press V.
  • Dragging will not settle on the center. Check that View › Snap is turned on. To place a layer freely instead, Adobe notes you can hold Ctrl (Windows) or Command (Mac) while dragging to turn snapping off temporarily.

Frequently asked questions

How do I center text in Photoshop?

Select the type layer, choose Select › All, and use the Vertical Centers and Horizontal Centers align commands. This centers the text layer on the canvas. It is different from the paragraph alignment buttons, which only control how lines of text sit inside their own layer. If the text looks off-center after you change the font in Photoshop, run the align commands again. If the words belong inside a shape, see how to create a speech bubble in Photoshop.

Can I center several layers at once?

Yes. To keep their spacing, put them in a layer group, select the group, choose Select › All, and align. Adobe’s align commands work on layer groups as well as single layers. If you select the layers individually instead, each one is centered on its own and they end up stacked.

Does this work in Photoshop CS5?

Yes. The Layer › Align Layers to Selection commands and the Move tool align icons are available in CS5. Smart Guides exist there too, though menu wording can differ slightly from current versions.

Why did my layer move off-center after I resized the canvas?

Aligning is a one-time move. If the canvas size changes afterward, the layer stays where it was. Select all and run the center commands again.

Next steps

If the content you need to center is in another file, see how to copy a layer to another image first. Once everything is lined up, you can export each layer as a separate image.

Join Our Free Newsletter

Featured guides and deals

You may opt out at any time.
Read our Privacy Policy