Press Alt+Enter to move text to a new line within the same cell

To create a line break inside an Excel cell without moving to a different cell, hold Alt and press Enter. This keeps all your text in one cell but displays it on separate lines. The text wraps to the next line within that single cell, and Excel treats it all as one entry.

This works in both Windows and Mac versions of Excel, though the Mac shortcut is slightly different — you'll use Control + Option + Enter instead. The result is the same: your text breaks into multiple lines inside the cell.

You can press Alt+Enter as many times as you need within one cell. Each time you do, the text moves down another line. Excel automatically adjusts the row height to fit all the lines you've created, so nothing gets cut off.

Key Takeaways

  • Press Alt+Enter (or Control+Option+Enter on Mac) while typing or editing a cell to create a line break without leaving the cell.
  • Excel automatically makes the row taller to show all the lines you've created, so your text stays visible.
  • You can use this method to organize information like addresses, lists, or multi-part entries all in one cell.
  • If you turn off text wrapping, the line breaks you created with Alt+Enter will still work, but automatic wrapping will stop.
  • Copying a cell with line breaks pastes both the text and the breaks into the new location.

How to add a line break while you're typing

Start typing your text normally. When you reach the point where you want the line to break, hold Alt and press Enter. Keep typing on the new line. Repeat this for each line break you need.

Excel shows you the line break right away as you type. The cell grows taller to fit the text, and you can see exactly how it will look when you finish. This is the fastest way if you're entering the text for the first time.

How to add a line break to text that's already in a cell

Click the cell that contains the text you want to edit. Press F2 to enter edit mode, or double-click the cell. The cursor appears inside the cell, and you can now move it around with the arrow keys.

Position your cursor at the exact spot where you want the line to break. Hold Alt and press Enter. The text after your cursor moves to a new line. Press Enter when you're done editing to save the change.

If the text is long, use Ctrl+F (or Cmd+F on Mac) while in edit mode to find the exact word or character where you want to break. This saves time if you're working with a cell full of text.

Difference between line breaks and text wrapping

Line breaks (created with Alt+Enter) are hard breaks you control — they happen exactly where you put them, and they stay there even if you resize the column. Text wrapping is automatic — Excel breaks the text wherever it needs to fit the column width, and the breaks move if you make the column wider or narrower.

You can use both at the same time. If you create line breaks with Alt+Enter and also turn on text wrapping, the line breaks you made stay in place, and Excel wraps any remaining text that doesn't fit the column width.

To turn on text wrapping, select the cell or cells you want to wrap, then go to the Home tab and click Wrap Text. The button is in the Alignment group. Cells with text wrapping on show all their content without cutting anything off, as long as the row is tall enough.

What happens to line breaks when you copy and paste

When you copy a cell that has line breaks in it and paste it somewhere else, the line breaks come along. The text pastes with all the same breaks you created, in the exact same places.

If you paste into a column that's narrower than the original, the text still breaks at the spots where you put Alt+Enter, but it may also wrap automatically if text wrapping is on. The hard breaks you made don't disappear — they just exist alongside the automatic wrapping.

Fixing line breaks you don't want

If you accidentally created a line break and want to remove it, press F2 to edit the cell. Use the arrow keys to position your cursor right before or after the line break. Press Delete to remove the break and pull the text back together on one line.

If a cell has many line breaks and you want to remove all of them at once, the fastest way is to copy the cell, open Find & Replace (Ctrl+H), and search for line breaks. In the Find field, press Ctrl+J to insert a line break character, leave the Replace field empty, and click Replace All. This removes every line break in the selection.

When to use line breaks in cells

Line breaks are useful for addresses, where you want the street, city, and zip code on separate lines but all in one cell. They also work well for lists within a single cell, like ingredients in a recipe or steps in a process. Any time you want related information grouped together but displayed on multiple lines, Alt+Enter is the tool to use.

Line breaks make spreadsheets easier to read when you have a lot of information in one cell. They keep your data organized without forcing you to split it across multiple cells, which can make sorting and filtering more complicated.

Frequently Asked Questions

Can I see where the line breaks are in a cell?

Not visually from the outside, but if you press F2 to edit the cell, you'll see the cursor jump to a new line when it reaches a line break. The breaks are there — they're just not marked with a visible symbol like a paragraph mark in Word.

Does a line break count as a separate row when I sort or filter?

No. A line break created with Alt+Enter is just formatting within a single cell. Excel treats the entire cell as one entry when you sort or filter, no matter how many line breaks it contains.

What if Alt+Enter isn't working?

Make sure you're in edit mode — either by pressing F2 or double-clicking the cell. If you press Alt+Enter without being in edit mode, it may trigger a menu or shortcut instead. Also check that you're holding Alt the whole time you press Enter, not releasing it early.

Can I undo a line break I just created?

Yes. Press Ctrl+Z immediately after you create the line break, and it will be removed. This works as long as you haven't done anything else in the spreadsheet yet.

Do line breaks affect formulas that reference the cell?

No. A formula that pulls text from a cell with line breaks will get all the text, including the line breaks, but the formula itself works the same way. The line breaks are just part of the cell's content.