How to wrap text in Excel and add a line break in a cell

Updated · DeskHowTo

Select the cells and, on the Home tab in the Alignment group, select Wrap Text. The text flows onto multiple lines to fit the column width, and it re-wraps if you change that width.

To start a new line at a specific place, double-click the cell (or press F2), click where the break should go, and press Alt+Enter on Windows, then press Enter to finish. Microsoft’s wrap-text article documents that Alt+Enter method and does not list a Mac shortcut. If a wrapped cell still looks cut off, the row height may be fixed or the cells may be merged — use Home > Format > AutoFit Row Height, or set the height manually. A row cannot be taller than 409 points.

Jump to

These steps apply in Excel for Microsoft 365, Excel for the web, and Excel 2024–2016. While editing on a Mac, use the line-break keys shown for your Excel for Mac version and confirm them in that app’s help; do not treat Option+Return as an officially documented shortcut from the wrap-text article.

Wrap text step by step

Turn on Wrap Text

  1. In the worksheet, select the cell, column, or range you want to format.
  2. On the Home tab, in the Alignment group, select Wrap Text.
  3. Adjust the column width if you need a different line length; Microsoft notes that wrapped data adjusts automatically when the column width changes.

Enter a manual line break

  1. Double-click the cell where you want the break, or select the cell and press F2. Microsoft documents both ways to start editing.
  2. Click the exact place in the text where the new line should begin.
  3. On Windows, press Alt+Enter. Then press Enter to leave the cell. Wrap Text is applied so the break is visible.
  4. On Excel for Mac, stay in edit mode and use that version’s line-break shortcut (often Option+Return, and in some versions Control+Option+Return). Microsoft’s wrap-text article fetched for this update only documents Alt+Enter, so confirm the Mac keys in Excel for Mac if a combination does not work.

Show all wrapped lines when the row stays short

  1. If wrapped text is still cut off, Microsoft says the usual causes are a row that was set to a specific height, or text in a merged range.
  2. Select the row or range. On the Home tab, in the Cells group, select Format.
  3. Under Cell Size, select AutoFit Row Height to size the row to the content, or select Row Height and type a height.
  4. You can also drag the bottom border of the row heading until every line is visible, or double-click that border to auto-fit, as Microsoft describes in the row-height article.
  5. If the cells are merged, AutoFit may still fail. Unmerge them if you can, or set the row height by hand.

Why wrapped text is cut off

SymptomLikely causeWhat to do
Only the first line showsThe row has a fixed heightHome > Format > AutoFit Row Height, or drag the row border
AutoFit does nothingMerged cellsUnmerge, or set the height manually (Microsoft notes merged text as a reason wrapped lines stay hidden)
A very long cell is still clipped after AutoFitThe row has reached Excel’s maximum heightMicrosoft’s row-height article lists a maximum row height of 409 points. Split the text across cells or widen the column.
Text shrinks instead of wrappingShrink to fit is turned onOpen Format Cells (Ctrl+1 on Windows) on the Alignment tab and clear Shrink to fit if you want wrapping instead.

AutoFit all rows on a sheet: select the Select All button at the corner of the sheet, then double-click the boundary below a row heading.

Remove line breaks or add them in a formula

To replace manual line breaks with spaces, you can use Find and Replace (Ctrl+H on Windows): click Find what, press Ctrl+J to insert the line-break character (the box may look empty), enter a space in Replace with, and choose Replace All. A formula alternative is =SUBSTITUTE(A2,CHAR(10)," ").

In a formula, CHAR(10) is the line-feed character. For example, =A2&CHAR(10)&B2 stacks two values in one cell. Turn Wrap Text on for that cell, or the break will not show as two lines.

Shrink to fit (also on the Alignment tab of Format Cells) is a different choice: it reduces the font size so the text stays on one line. Use it when you do not want the row to grow.

Frequently asked questions

What is the shortcut for Wrap Text in Excel?

On Windows, after you select the cells, the Home-tab ribbon keys Alt, then H, then W, pressed one after another, turn on Wrap Text. That sequence was already used on this page and matches the Home / Alignment control; it is not written out in Microsoft’s wrap-text article. You can also click Wrap Text in the Alignment group. A manual line break inside a cell is a different shortcut: Alt+Enter after you start editing with a double-click or F2.

Why doesn’t Alt+Enter start a new line?

You must be editing inside the cell first. Double-click the cell or press F2, place the cursor, then press Alt+Enter. If you press Alt+Enter while the cell is only selected, Excel will not insert a break. On Excel for Mac, use that version’s line-break shortcut while editing; Microsoft’s wrap-text article documents Alt+Enter and does not list the Mac keys.

Why doesn’t the row get taller when I wrap text?

Microsoft’s wrap-text article says wrapped text may stay hidden when the row is set to a specific height or when the text is in merged cells. Select the row and use Home > Format > AutoFit Row Height, or drag the lower row border. Unmerge cells if AutoFit still fails. A row cannot be taller than 409 points, so extremely long text may still be clipped.

How do I remove line breaks from Excel cells?

Use Find and Replace: in Find what, press Ctrl+J on Windows to enter the line-break character, put a space (or nothing) in Replace with, and choose Replace All. You can also use =SUBSTITUTE(A2,CHAR(10)," ") and copy the results as values. The official wrap article focuses on adding wraps and auto-fitting rows; this cleanup method is a standard Find or formula technique.

Does Excel for the web support Wrap Text?

Yes. Microsoft includes Excel for the web in the applies-to list for the wrap-text article, and you can turn Wrap Text on from the Home tab. A manual line break still requires editing the cell and using the key combination that your browser and operating system allow; if Alt+Enter is captured by the browser, use desktop Excel to insert the break.