How to Align Images in Excel: Step-by-Step Guide
In this article
To align images in Excel for Microsoft 365 on Windows, select the pictures you want to arrange, open the Picture Format tab, and use Align to line them up by an edge or center, or to distribute them evenly. For predictable results, first decide whether the images should align to one another or to the worksheet, and make sure they are positioned in the area where you want them.
What You'll Need
- An Excel workbook with the pictures already inserted. Use Insert > Pictures to add them if needed.
- At least two pictures to align with one another. Some alignment commands can also align one picture to the worksheet or selection.
- The Picture Format tab, which appears when you select a picture. If you select a chart or shape instead, Excel may show a different contextual tab.
Step-by-Step
- Prepare the worksheet. Open the workbook and go to the sheet with the pictures. If the images are scattered, move them roughly near their intended positions first. This makes it easier to see the result and avoids aligning pictures far away from the working area. Save a copy before making substantial layout changes if preserving the original arrangement matters.
- Select the pictures to align. Click one picture, then hold Ctrl and click each additional picture on Windows. On a Mac, hold Command while clicking. You can also drag a selection box around objects when they are not obscured by cells or other content, but Ctrl- or Command-clicking is more precise. Selected pictures show sizing handles. If you accidentally select a cell, click a picture again.
- Open the alignment controls. With multiple pictures selected, choose the Picture Format tab on the ribbon. In the Arrange group, select Align. If the ribbon is narrow, the group or command may be collapsed; widen the Excel window or look for a compact Arrange menu. The Align command may not be available in the expected place if only one object is selected.
- Choose how Excel should interpret the alignment. In the Align menu, check whether Align to Selection or Align to Sheet is active. Use Align to Selection when the pictures should line up relative to the selected objects. Use Align to Sheet when aligning a picture or group against the worksheet boundaries. For arranging a row or column of pictures, Align to Selection is normally the appropriate choice. If you want the objects positioned relative to cells, note that these options concern the selected objects or sheet, not cell text or a cell range.
- Align the pictures by an edge or center. Choose an option that matches your layout. Align Left lines up the left edges; Align Center lines up the horizontal centers; Align Right lines up the right edges. Align Top matches top edges; Align Middle matches vertical centers; Align Bottom matches bottom edges. For example, to make a neat row with matching top edges, select the pictures and choose Align Top. To make a vertical stack with consistent left edges, choose Align Left.
- Space the pictures evenly if needed. Arrange the pictures roughly from left to right or top to bottom, select them, then open Picture Format > Align. Choose Distribute Horizontally for even spacing across the horizontal span, or Distribute Vertically for even spacing down the vertical span. Distribution uses the outermost selected objects as the endpoints; it spaces the objects between them rather than moving the whole group to a new location. Use at least three pictures to create meaningful equal spacing.
- Review the result and make small adjustments. Click an empty cell to deselect the pictures and inspect the layout at normal zoom. If an image is out of place, select it and use the arrow keys for small moves; use the mouse for larger moves. To resize without distorting it, drag a corner sizing handle. If you change sizes after aligning, repeat the alignment or distribution step as needed.
- Set how pictures behave with cells, if appropriate. Right-click a picture and choose Format Picture. In the formatting pane, open Size & Properties, then Properties. Choose Move and size with cells, Move but don't size with cells, or Don't move or size with cells, depending on your intended layout. This setting does not align pictures, but it affects what happens when you resize rows or columns. Test the choice by changing a nearby row height or column width, then undo the test if necessary.
Common Mistakes
- Choosing the wrong reference. Align to Sheet can place an image relative to the worksheet rather than the other pictures. Check Align to Selection or Align to Sheet before applying the command.
- Expecting distribution to align edges. Distribute Horizontally and Distribute Vertically adjust spacing; they do not make picture edges or centers line up. Apply an alignment option first if both are needed.
- Selecting only one picture. A single selected object cannot be distributed among other objects. Confirm that every intended picture has selection handles before choosing an arrangement command.
- Resizing pictures unevenly. Different image sizes can make a row look unbalanced even when the top edges are aligned. Set consistent dimensions or crop images to a similar visual shape before arranging them.
- Confusing cell alignment with picture alignment. Home tab alignment controls format text inside cells; picture alignment is on Picture Format > Align. Selecting a cell and using the Home ribbon will not align floating picture objects.
Tips
- Use Align Top or Align Left to create a clean starting line, then distribute the pictures in the direction of the row or column.
- For a consistent gallery, crop images to similar proportions and use matching picture dimensions before alignment. Keep the original files, since cropping in Excel changes the displayed view but may not replace the source image.
- Use the arrow keys after selecting an image for fine positioning. If an object is difficult to select because it sits behind another object, use Home > Find & Select > Selection Pane to view and select objects by name.
- For layouts that must stay associated with specific rows or columns, choose the appropriate cell behavior under Format Picture > Size & Properties > Properties. This is especially useful when sorting, filtering, or changing row heights may affect the sheet’s layout.
Troubleshooting
The Align command is missing or unavailable: Select the pictures themselves, not cells. For some object arrangements, Excel may disable certain commands; select multiple compatible pictures and check that they are not part of a group that needs to be handled separately. If the contextual tab is hidden, click a picture to show Picture Format.
Pictures move to an unexpected edge: Reopen Picture Format > Align and inspect whether Align to Sheet is selected. Switch to Align to Selection to align the chosen pictures with one another, then apply the desired edge or center option again.
The spacing still looks uneven: Distribution evens the gaps between object boundaries, not necessarily the visible content inside each image. Images with transparent margins or different crops may look uneven despite equal spacing. Crop or resize them consistently, then distribute again.
Pictures shift after editing rows or columns: Check each image's setting under Format Picture > Size & Properties > Properties. Choose the behavior that suits the sheet, then realign if necessary. These settings can vary per picture, so check each image rather than assuming one change applies to all.
The steps differ on Mac or Excel for the web: In current Excel for Mac, select the pictures and use the Picture Format tab's Align controls; use Command rather than Ctrl to select multiple objects. Excel for the web has a more limited set of picture-arrangement tools, and available options can vary. If a needed alignment or distribution command is absent, open the workbook in the desktop Excel app.
Frequently Asked Questions
Can I align pictures to cells in Excel?
Align commands arrange pictures relative to other selected objects or the sheet. To make a picture move or resize with cells, use Format Picture > Size & Properties > Properties and choose the relevant cell behavior.
How do I align pictures without changing their size?
Select the pictures and use Picture Format > Align. Alignment changes position, not dimensions. Avoid dragging a sizing handle unless you intend to resize.
Can Excel make the gaps between pictures equal?
Yes. Select at least three pictures and choose Picture Format > Align > Distribute Horizontally or Distribute Vertically. Arrange the outer pictures first because they define the span.
Why is Align to Selection grayed out?
Check that multiple compatible objects are selected. If only one picture is selected, or the selection includes objects that cannot be arranged together, some commands may be unavailable.
Will aligning pictures keep them in place when I sort data?
Not necessarily. Picture placement and cell behavior are separate from sorting. Set the picture's Properties option to match the worksheet layout, and verify the result with a small test before sorting important data.