How to Delete Blank Lines in Word

Last updated on November 9th, 2026 at 01:05 pm

To delete blank lines in Word, press Ctrl + H to open Find and Replace, type ^p^p in Find what, type ^p in Replace with, and select Replace All. Repeat until Word reports 0 replacements. Each pair of paragraph marks becomes one, so the empty lines disappear but your paragraphs stay separate.

Applies to: Word for Microsoft 365, Word 2024, 2021, 2019 and 2016 on Windows, and Word for Mac.

Don’t leave Replace with empty. Replacing ^p^p with nothing deletes both paragraph marks and joins paragraphs together into one block of text.

First, see what’s causing the gaps

Select Home > Show/Hide ¶, or press Ctrl + Shift + 8. Word shows its hidden formatting marks:

  • ¶ on an empty line: an extra paragraph mark. The steps below remove these.
  • ↵ (a bent arrow): a manual line break from Shift + Enter, removed with the Shift + Enter method below.
  • No mark in the gap: it’s paragraph spacing, not a blank line, which needs the spacing fix further down.

What is a paragraph mark?

It’s the hidden character Word adds each time you press Enter. In Find and Replace, ^p stands for a paragraph mark.

Will this change my headings or styles?

No. Removing an empty paragraph mark doesn’t change the formatting of the paragraphs around it.

Delete blank lines with Find and Replace

  1. Press Ctrl + H, or select Home > Replace.
  2. In Find what, type ^p^p. You can also select More > Special > Paragraph Mark twice.
  3. In Replace with, type ^p.
  4. Select Replace All. Word tells you how many replacements it made.
  5. Select Replace All again until Word says it made 0 replacements. Each pass removes one blank line from every group, so three blank lines in a row need two passes.

To clean up only part of the document, select that text first. Word asks whether to search the rest of the document afterward; choose No.

Can I delete blank lines in Word for the web?

Word for the web supports simple Find and Replace but not all special codes. Open the document in the Word desktop app for the methods above.

Remove all blank lines in one pass with wildcards

  1. Press Ctrl + H and select More.
  2. Tick Use wildcards.
  3. In Find what, type ^13{2,}. This means “two or more paragraph marks in a row.”
  4. In Replace with, type ^p.
  5. Select Replace All, then clear Use wildcards so your next search works normally.

Delete blank lines made with Shift + Enter

Text pasted from emails or websites often uses manual line breaks. Search for ^l^l (a lowercase L) and replace with ^l, or replace ^l with ^p to turn every line break into a normal paragraph first.

Delete lines that only contain spaces or tabs

A line with a space on it isn’t empty, so ^p^p won’t find it. Search for ^p^w^p and replace with ^p. The ^w code matches any spaces and tabs. Run it until there are no more replacements, then run the ^p^p search again. Gaps between words or letters need a different fix: removing extra space in Word.

Remove space that only looks like blank lines

If Show/Hide shows no empty ¶ marks, the gaps come from paragraph spacing. If those blank lines were standing in for a school paper’s spacing, set real double spacing in Word with Ctrl+2 instead.

  1. Select the text, or press Ctrl + A for the whole document.
  2. Go to the Layout tab and set Spacing Before and After to 0 pt, or to a smaller value.
  3. Or open Home > Line and Paragraph Spacing > Line Spacing Options and tick Don’t add space between paragraphs of the same style.

On a Mac

Select Edit > Find > Advanced Find and Replace, then select the Replace tab. The codes ^p, ^l and ^w work the same way. Show/Hide is the ¶ button on the Home tab.

If blank lines won’t go away

  • A blank line at the very end won’t delete: Word always keeps a final paragraph mark. When it pushes onto a new page, the fixes for a blank page in Word that won’t go away apply.
  • Blank lines in headers or footers: double-click the header or footer and delete them there.
  • Empty lines inside tables: these are empty rows or cell paragraphs. Delete the rows with Layout > Delete > Delete Rows.
  • The document is protected or Track Changes is on: with Track Changes on, deleted marks stay visible until you accept the changes under Review > Accept.
  • Something went wrong: press Ctrl + Z to undo the last Replace All.