How to Wrap Text in Excel (Plus Line Breaks and Fixes)

To wrap text in Excel, select the cells and click Wrap Text on the Home tab, in the Alignment group. Long text then breaks onto several lines inside the cell instead of spilling into the next column, and the row grows taller to fit. On Windows, the keyboard route is Alt, then H, then W, pressed one after another.

The button works the same way in Excel for Microsoft 365, Excel 2024, 2021, 2019 and 2016 on Windows, in Excel for Mac and in Excel for the web. If you want a line to break at an exact spot, such as between a street and a city, use a manual line break, covered further down.

What wrapping does to a cell

When text is wider than its column, Excel normally does one of two things. If the cell to the right is empty, the text overflows across it, even though it still belongs only to the first cell. If the cell to the right has something in it, the text is cut off at the border. Wrapping gives you a third option: the text stays inside its own cell and runs onto as many lines as it needs.

Option What you see Changes the data?
Default (overflow or cut off) One line that runs into the next cell, or is hidden at the border No
Wrap Text Several lines inside the cell; the row gets taller No, it’s formatting only
Manual line break (Alt+Enter) A new line exactly where you pressed the keys Yes, a line-break character is added to the text
Shrink to fit One line in a smaller font No

Wrapping follows the column width. Make the column narrower and the text breaks onto more lines; make it wider and it uses fewer. Excel breaks at spaces and hyphens, so whole words move to the next line. A single long word with no spaces, such as a web address, can still be split mid-word if the column is too narrow for it.

Wrap text with the ribbon button

Take a column of product notes like this one, where column B is set to a comfortable width of about 30 characters:

Advertisements
Item Notes
Desk lamp Back-ordered until March; customer asked for a call when it ships
Office chair Replace armrest under warranty
Monitor arm Arrived with the wrong bracket; return label sent by email on Friday
  1. Set the column width first. Drag the border to the right of the column letter (B) to the width you want. Wrapping uses whatever width the column has, so fixing it first saves adjusting twice.
  2. Select the cells. Click one cell, drag over a range, or click the column letter to select the whole column. Wrapping applied to a whole column also covers anything you type into it later.
  3. Go to Home > Wrap Text. On the Home tab, look in the Alignment group in the middle of the ribbon. Wrap Text sits to the right of the alignment buttons, above Merge & Center. On a narrow window it may show only as an icon of lines with a curved arrow; hover over it to see the name.
  4. Check the result. The notes now sit on two or three lines each, and rows 2 to 4 grow taller automatically. The Wrap Text button stays highlighted while a wrapped cell is selected, which is an easy way to check whether a cell is wrapped.

In Excel for Mac and Excel for the web, the button has the same name and the same place: Home tab, Wrap Text. In the web version the ribbon can be set to a compact single-line view; if you don’t see the button, look for the alignment controls on the Home tab or click the three dots at the right end of the ribbon to show more commands.

Other ways to turn it on

Keyboard shortcut (Windows)

Select the cells, then press Alt, H, W in sequence. You don’t hold them down together; each key opens the next level of the ribbon. There’s no single-chord shortcut for wrapping in Excel by default. Pressing the same sequence again turns wrapping off.

Format Cells dialog

This is handy when you’re changing several settings at once, such as alignment and indent.

  1. Select the cells and press Ctrl+1 (Command+1 on a Mac), or right-click and choose Format Cells.
  2. Open the Alignment tab.
  3. Under Text control, tick Wrap text.
  4. While you’re there, set Vertical to Top if you want short entries to line up at the top of tall rows instead of the bottom.
  5. Click OK.

Quick Access Toolbar

If you wrap text all the time, right-click the Wrap Text button and choose Add to Quick Access Toolbar. It then stays one click away whichever ribbon tab is open.

Break a line exactly where you want

Wrap Text decides where lines break based on the column width. When you need the break in a specific place, like putting each part of an address on its own line, insert a line break yourself.

  1. Double-click the cell, or select it and press F2, to start editing. You can also click in the formula bar.
  2. Click where the new line should start.
  3. Press Alt+Enter on Windows. On a Mac, press Control+Option+Return; if your keyboard or Excel version doesn’t respond to that, try Option+Return.
  4. Type the rest of the text, then press Enter to finish.

Excel turns on Wrap Text for the cell automatically when you add a line break this way. If you later turn wrapping off, the text runs together on one line again, but the break character is still stored and comes back as soon as wrapping is turned on.

On Excel for iPhone, iPad and Android, you can usually tap where you want the break while editing and use the return option above the keyboard, but the exact control varies between app versions.

Line breaks inside a formula

To join text from several cells onto separate lines, use CHAR(10), which is the line-break character on Windows and in current versions of Excel for Mac. With a name in A2, a street in B2 and a city in C2:

=A2&CHAR(10)&B2&CHAR(10)&C2

In Microsoft 365, Excel 2024, 2021 and 2019, =TEXTJOIN(CHAR(10),TRUE,A2:C2) does the same with less typing. The formula result only shows on separate lines if Wrap Text is turned on for that cell, so apply it after entering the formula.

Get the row height right

Normally the row height adjusts itself when you wrap text. When it doesn’t, or when you’ve changed the column width afterward, fit it again:

  • Double-click the row border. Point at the line under the row number until the pointer changes to a double arrow, then double-click. The row resizes to the tallest wrapped cell in it.
  • Use AutoFit for many rows at once. Select the rows (or the whole sheet), then go to Home > Format > AutoFit Row Height. On Windows, Alt, H, O, A does the same.
  • Set an exact height. If wrapped rows are getting too tall, go to Home > Format > Row Height and type a number, such as 30. Text beyond that height is hidden but not deleted. The tallest a row can be is 409 points, so a very long paragraph won’t fully display in one cell no matter what.

One catch: setting a row height by hand, or dragging the border, tells Excel to stop sizing that row automatically. That’s the most common reason wrapping seems to do nothing. AutoFit Row Height switches automatic sizing back on.

When wrapped text still won’t show

  • The row has a fixed height. Someone set or dragged the row height. Select the row and use Home > Format > AutoFit Row Height, or double-click the border under the row number.
  • The cells are merged. Excel doesn’t auto-size rows for merged cells, so wrapped text in a merged range gets clipped. Either drag the row taller by hand, or unmerge with Home > Merge & Center > Unmerge Cells and widen a single column instead. For a centered heading that spans columns without merging, use Format Cells > Alignment > Horizontal > Center Across Selection.
  • Horizontal alignment is set to Fill. Fill repeats text to fill the cell and overrides wrapping. Press Ctrl+1, go to Alignment, change Horizontal to General or Left, and click OK.
  • Shrink to fit is on. It’s greyed out when Wrap text is ticked, but if it was set first, clear it in Format Cells > Alignment.
  • The column is already wide enough. If the text fits on one line, there’s nothing to wrap. Narrow the column, or add a manual line break.
  • The cell holds a number, not text. Wrap Text applies to text. A long number that doesn’t fit shows as ##### or in scientific notation instead. Widen the column, or format the number differently.
  • The sheet is protected. The Wrap Text button is greyed out on a protected sheet unless Format cells was allowed. Rows won’t resize either unless Format rows was allowed. Unprotect the sheet with Review > Unprotect Sheet and try again.
  • The row grew too tall to be useful. A very long note makes a huge row. Set a row height, widen the column, or move the long text into a comment or note instead.

Turn wrapping off or remove line breaks

To unwrap, select the cells and click Home > Wrap Text again (it’s a toggle), press Alt, H, W, or clear Wrap text in Format Cells > Alignment. The rows won’t always shrink back by themselves; use AutoFit Row Height to tidy them.

Manual line breaks are part of the text, so turning wrapping off doesn’t delete them. To remove them all at once:

  1. Select the cells, or one cell if you want the whole sheet.
  2. Press Ctrl+H to open Find and Replace.
  3. Click in Find what and press Ctrl+J. Nothing visible appears, apart from perhaps a small blinking dot, but the line-break character is now in the box.
  4. In Replace with, type a single space (so words don’t run together), then click Replace All.

A formula alternative that leaves the original untouched is =SUBSTITUTE(A2,CHAR(10)," "). The same Find and Replace dialog is also useful for swapping out words across a sheet, as in this guide to replacing a word in Excel. A helper column works the same way when you need to turn lowercase text into capitals in Excel.

Wrap text questions

Is there a shortcut key for Wrap Text?

On Windows, press Alt, H, W one after another. Excel for Mac has no built-in shortcut for the button, but you can use Command+1 to open Format Cells and tick Wrap text there.

Can I wrap text in merged cells?

Yes, the text will wrap, but the row won’t resize automatically. Drag the row border to fit, or avoid merging and use Center Across Selection or a wider column. If you do need merged areas, this guide to keeping merged cells aligned in Excel helps them line up neatly.

How do I wrap text without the row getting taller?

Turn on Wrap Text, then set a fixed height with Home > Format > Row Height. Only the first lines will show; click the cell to read the rest in the formula bar.

Will wrapped text print the way it looks on screen?

Generally yes, but printers can render fonts slightly differently, and a line that just fits on screen can be clipped on paper. Check File > Print preview, and give tight rows a little extra height before printing.

Why does my text overflow in one cell but not the next?

Text only overflows into an empty neighbor. As soon as the cell to the right has anything in it, even a space, the overflowing text is cut off at the border. Wrapping fixes both cases.

Is this the same as wrapping text in Word?

No. In Word, text wrapping controls how paragraphs flow around a picture or shape, which is covered in the guide to wrapping text around an image in Word. Excel’s Wrap Text only affects text inside a cell.

A tidy finish

For a neat sheet, wrap the long-text columns, set Vertical alignment to Top so short and long entries line up, and run AutoFit Row Height once at the end. Microsoft’s short reference on how to wrap text in a cell in Excel covers the button and the line-break keys, and its page on how to change the column width and row height lists the AutoFit and exact-size options, including the 409-point limit.

Advertisements