Excel Newline Character: How to Add Line Breaks
In this article
Adding a newline in Excel is done with Alt + Enter on Windows (or Control + Option + Return on Mac) while editing a cell, or with the CHAR(10) function inside a formula. The catch: the cell must have "Wrap Text" enabled, otherwise the line break is stored but not displayed. Below is the full process, plus the formula method for combining text with line breaks automatically.
What You'll Need
- A copy of Excel (desktop, Excel for the web, or Excel for Mac; steps below note where they differ)
- No add-ins, downloads, or special settings required
Step-by-Step
Method 1: Manual line break with a keyboard shortcut
- Double-click the cell you want to edit, or select it and press F2. This puts the cursor inside the cell rather than just selecting it.
- Place the cursor exactly where you want the line break.
- Press Alt + Enter (Windows) or Control + Option + Return (Mac). The text after the cursor jumps to a new line.
- Press Enter to confirm the cell. Excel automatically enables Wrap Text for that cell when you insert a line break this way.
- If the row does not grow to show both lines, go to the Home tab, find the Alignment group, and click Wrap Text.
Method 2: Line break inside a formula with CHAR(10)
- Click an empty cell and start your formula, for example:
=A1 & CHAR(10) & B1 - CHAR(10) is the newline character on Windows. On Excel for Mac, older versions used CHAR(13); current versions accept CHAR(10) as well, so try CHAR(10) first.
- Press Enter to confirm.
- Select the formula cell, go to the Home tab and click Wrap Text in the Alignment group. Without Wrap Text, CHAR(10) shows as a space or nothing at all.
- To add a blank line between paragraphs, use CHAR(10) twice:
=A1 & CHAR(10) & CHAR(10) & B1
Method 3: Find and replace with a newline
- Select the range of cells to convert.
- Press Ctrl + H to open Find and Replace.
- In "Find what", type the character you want to replace, for example a comma or a space.
- In "Replace with", press Ctrl + J. This inserts the newline character (it looks like a tiny blinking dot or nothing at all).
- Click Replace All, then enable Wrap Text on the selected cells from the Home tab.
Common Mistakes
- Forgetting Wrap Text: the line break exists in the cell but displays on one line. This is by far the most frequent issue.
- Pressing Enter instead of Alt + Enter while editing: plain Enter just confirms the cell and moves down.
- Using CHAR(10) in a formula but not formatting the result cell with Wrap Text, then assuming the formula failed.
- On Mac, pressing Control + Return, which fills the selected range rather than inserting a line break; the correct combo is Control + Option + Return.
- Typing \n or "newline" literally into a cell, expecting Excel to interpret it. Excel does not interpret escape sequences typed as plain text.
Tips
- To make all rows in a sheet auto-fit their height after adding breaks, select all cells (Ctrl + A), then double-click the boundary between two row numbers in the left margin.
- If you later delete all line breaks, remember to turn Wrap Text off if you want the row height back to normal.
- CHAR(10) also works inside TEXTJOIN, so
=TEXTJOIN(CHAR(10), TRUE, A1:A5)stacks a range into one cell, one item per line (enable Wrap Text on the result). - To remove existing line breaks, open Find and Replace, put Ctrl + J in "Find what" and a space in "Replace with", then click Replace All.
- When importing CSV files, quoted fields can contain embedded newlines; use Data > From Text/CSV so Excel handles them correctly instead of double-clicking the file.
Troubleshooting
- Line break not visible: check Wrap Text under Home > Alignment. Also check that the row height is not fixed manually; use AutoFit Row Height.
- Alt + Enter does nothing: make sure you are in edit mode (double-click the cell first), not just selecting it. On some laptops, the Alt key may be intercepted; try the on-screen editing via the formula bar instead.
- CHAR(10) shows as a space: this happens in Excel for the web or when Wrap Text is off. Enable Wrap Text; if it still fails, try CHAR(13) on older Mac versions.
- Square boxes appear instead of line breaks: the font cannot render the character. Switch the cell to a standard font such as Calibri.
- Data from another program shows breaks in odd places: the source may use different line-ending characters. Use Find and Replace with Ctrl + J to normalize them.
- Keyboard shortcut conflicts (e.g., Alt + Enter taken by another tool): close the conflicting application or use the formula-bar editing route.
Frequently Asked Questions
What is the newline character in Excel?
Inside Excel it is the character produced by CHAR(10), sometimes called a line feed. You insert it manually with Alt + Enter or programmatically in a formula with CHAR(10).
Why does my CHAR(10) formula show everything on one line?
The cell lacks Wrap Text formatting. Select the cell and click Wrap Text on the Home tab; the breaks will appear.
How do I add a line break in Excel on Mac?
While editing a cell, press Control + Option + Return. The rest of the process, including Wrap Text and CHAR(10), is the same as on Windows.
Can I insert a line break in Excel for the web?
Yes. The CHAR(10) formula method works in a browser. Manual editing shortcuts can vary by browser, so if the shortcut does not register, use the formula method instead.
How do I remove line breaks from many cells at once?
Select the cells, press Ctrl + H, enter Ctrl + J in "Find what", type a space (or nothing) in "Replace with", and click Replace All.
Does Alt + Enter work in Google Sheets too?
No. Google Sheets uses Ctrl + Enter (Windows) or Control + Return (Mac) for in-cell line breaks, and CHAR(10) in formulas just as Excel does.