The two ways to add a line break inside a cell

You can move text to a new line within the same Excel cell in two ways: by pressing Alt + Enter (Windows) or Control + Option + Enter (Mac), or by using the CHAR(10) function in a formula. The keyboard shortcut is faster if you are typing directly into a cell. The formula approach works when you need to combine text from multiple cells or when you are building a formula that produces the line break automatically.

Both methods require that Wrap Text is turned on for the cell, or the line break will be invisible — the text will sit on one line even though the break code is there. Excel will not show you a line break unless the cell is set to display wrapped content.

Key Takeaways

  • Press Alt + Enter (Windows) or Control + Option + Enter (Mac) while editing a cell to insert a line break at that exact spot.
  • You must enable Wrap Text on the cell or the line break will not display, even though it is stored in the cell.
  • Use the CHAR(10) function inside a formula to create automatic line breaks — for example, =A1&CHAR(10)&B1 puts the contents of A1 and B1 on separate lines.
  • After adding a line break, you may need to increase the row height manually so all the text is visible on screen.

Adding a line break while you type

When you are typing directly into a cell and want to move to the next line within that same cell, press Alt + Enter on Windows or Control + Option + Enter on Mac. The cursor will jump to a new line inside the cell, and you can keep typing.

After you press Enter to finish editing the cell, Excel will automatically turn on Wrap Text for that cell so the line break displays. If you are working with a cell that already has Wrap Text off, you may need to turn it on manually — select the cell, go to the Home tab, find the Wrap Text button in the Alignment group, and click it.

This method works in any version of Excel on Windows or Mac, and the keyboard shortcut is the same whether you are using Excel Online, the desktop app, or Excel on a tablet.

Using formulas to create line breaks automatically

If you want text from two or more cells to appear on separate lines in a single cell, use the CHAR(10) function. This function inserts the same line break code that Alt + Enter creates, but it does it inside a formula. For example, if cell A1 contains "First Name" and cell B1 contains "Last Name", the formula =A1&CHAR(10)&B1 will display both on separate lines in a new cell.

You can chain multiple CHAR(10) functions together if you need more than two lines. The formula =A1&CHAR(10)&B1&CHAR(10)&C1 will put three pieces of text on three separate lines. Remember that Wrap Text must still be on for the cell containing the formula, or the line breaks will not show.

This approach is useful when you are building a report or label that pulls data from different columns and you want the output formatted across multiple lines automatically. If the source data changes, the formula updates the line breaks without you having to edit the cell manually.

Turning on Wrap Text so line breaks display

A line break only appears on screen if Wrap Text is enabled for that cell. To turn it on, select the cell or range of cells, then go to the Home tab on the ribbon. In the Alignment group, click the Wrap Text button. The button looks like lines of text with an arrow wrapping around.

You can also right-click the cell, select Format Cells, go to the Alignment tab, and check the box next to "Wrap text". Both methods do the same thing — they tell Excel to display the cell content across multiple lines instead of cutting it off or hiding it.

Once Wrap Text is on, Excel will automatically increase the row height to fit all the text. If it does not, you can manually drag the row border down to make it taller, or double-click the border between two row numbers to auto-fit the height to the content.

Adjusting row height after adding line breaks

When you add a line break to a cell, the row may not be tall enough to show all the text at once. Excel sometimes auto-fits the height, but not always — it depends on your settings and whether you are using Wrap Text or just a manual line break.

To fix this, position your cursor on the border between two row numbers on the left side of the spreadsheet. The cursor will change to a resize arrow. Drag the border down to make the row taller, or double-click it to let Excel calculate the height automatically based on the content. If you have multiple rows with wrapped text, select all of them first, then double-click any row border to auto-fit all of them at once.

Line breaks in different Excel versions and platforms

The Alt + Enter shortcut works the same way in Excel 2016, 2019, 2021, and Microsoft 365 on Windows. On Mac, use Control + Option + Enter instead of Alt + Enter — the Mac version of Excel uses different modifier keys.

Excel Online (the web version) also supports line breaks, but the keyboard shortcut is different: press Ctrl + Enter on Windows or Command + Enter on Mac while editing a cell. The CHAR(10) formula method works identically across all versions and platforms, so if you are sharing a spreadsheet with people using different versions of Excel, formulas are the most reliable way to ensure line breaks work for everyone.

Common mistakes when adding line breaks

The most common mistake is adding a line break but forgetting to turn on Wrap Text. The break is stored in the cell, but it will not display — the text will appear on one line as if the break was never added. If you add a line break and do not see it, check that Wrap Text is on.

Another mistake is pressing Enter instead of Alt + Enter while editing. Pressing Enter finishes editing the cell and moves to the next cell down — it does not create a line break within the current cell. Make sure you hold Alt (or Control + Option on Mac) while pressing Enter.

A third issue is row height being too short. If you add a line break and turn on Wrap Text but the text still looks cut off or overlapped, the row is probably not tall enough. Double-click the row border to auto-fit, or drag it down manually.

Frequently Asked Questions

Can I see where the line break is before I turn on Wrap Text?

No. The line break code is stored in the cell, but it will not display until Wrap Text is on. Once you enable Wrap Text, the text will immediately move to separate lines. If you want to check whether a line break is in a cell, click the cell and look at the formula bar — you will see the text jump to a new line there if a break exists.

What happens if I copy a cell with a line break to another cell?

The line break copies along with the text. The new cell will contain the same break code. If Wrap Text is already on for the destination cell, the text will display on multiple lines immediately. If Wrap Text is off, the break will be hidden until you turn it on.

Can I remove a line break without deleting the text?

Yes. Click the cell to select it, then press F2 to enter edit mode. Use the arrow keys to position your cursor right before or after the line break, then press Delete or Backspace to remove it. The text on either side of the break will move back to the same line. Press Enter when you are done editing.

Does CHAR(10) work in all Excel functions, or just in cell formulas?

CHAR(10) works in cell formulas and in most functions that produce text output, like CONCATENATE or the ampersand (&) operator. It does not work in functions that are designed for calculations, like SUM or AVERAGE. If you are building a formula that combines text, CHAR(10) will work.

What is the difference between a line break and a merged cell?

A line break puts multiple lines of text inside a single cell. A merged cell combines two or more cells into one larger cell. They are different features — merging cells removes the borders between them, while a line break just wraps text within existing cell boundaries. You can use both together if you want.