Delete Empty Lines in Google Docs

Google Docs has no dedicated command to delete all empty lines at once. Show its non-printing characters first: blank paragraphs need deleting, while gaps created by paragraph spacing can be removed across selected text in one change.

That difference matters when an imported document looks double-spaced. Deleting text won't fix a gap controlled by formatting, and changing line spacing won't remove extra Enter presses between paragraphs.

Show what is creating the blank lines

In the desktop document editor, choose View > Show non-printing characters. These blue marks reveal paragraph breaks, line breaks, spaces, tabs, and page or section breaks without adding them to the document's printed content.

Look at a gap between two paragraphs. A paragraph-break mark sitting on an otherwise empty line means there is an empty paragraph to delete. A large gap without an extra paragraph mark points toward spacing or page layout.

Drawing of Google Docs' View menu with Show non-printing characters highlighted

Google says its non-printing characters reveal paragraph breaks, spaces, and other formatting.

Leave that setting on while cleaning up the document so you can see what each deletion changes.

An empty line can also contain spaces or a tab. Those are still characters, even though the line looked blank before the marks were shown. Remove the unwanted characters along with the extra paragraph break.

I'd check one gap near the start and another near the end before selecting the entire document. Copied text can contain several different kinds of spacing, so the first gap doesn't necessarily explain every page.

Delete empty paragraphs without joining your text

  1. Click at the start of the text just after an unwanted blank paragraph.
  2. Press Backspace on Windows or ChromeOS, or Delete on a Mac, once.
  3. Check that the blank paragraph disappeared and the two real text paragraphs are still separate.
  4. Repeat for additional empty paragraphs at that location, then move to the next gap.

For several consecutive blank paragraphs, highlight that run of empty paragraphs, then delete it as a selection. Keep the text on either side outside the selection. The blue marks make the selection's start and end easier to judge.

Stop when the paragraph with real text reaches the position you want. Another deletion at the start of that text can join it to the preceding paragraph, which is a different edit from removing an empty line.

Use Ctrl+Z on Windows or ChromeOS, or Command+Z on Mac, immediately if words join or text disappears. Then make a smaller selection and retry while the formatting marks remain visible.

For scattered gaps, work through each affected area rather than deleting every paragraph break. Paragraph breaks also separate headings, list entries, addresses, and normal paragraphs that the document still needs.

Remove paragraph gaps across the selected document

When there are no spare paragraph marks in the gap, highlight the paragraphs containing unwanted gaps. To apply one spacing choice throughout the current document text, click in that text and press Ctrl+A or Command+A on a Mac.

Choose Format > Line & paragraph spacing > Custom spacing. Enter 0 in both paragraph-spacing fields, Before and After, then click Apply. Keep the line-spacing value appropriate for your document.

Drawing of Google Docs' Custom spacing dialog with paragraph spacing Before and After set to zero

This removes the extra space around all the selected paragraphs at once. It doesn't delete paragraph text or remove extra blank paragraphs. If the gaps shrink but some remain, inspect those remaining gaps for actual empty paragraphs.

To remove space from just one side of a paragraph, the same menu can offer Remove space before paragraph or Remove space after paragraph. The command wording depends on whether that space is already present in the selected text.

If every line of a paragraph is too far apart, change Line & paragraph spacing to Single or the required value. For a document that must stay double-spaced, keep Double and remove only unwanted paragraph spacing.

Our Google Docs double-spacing guide explains that distinction across desktop and mobile. A paper's required line spacing and accidental empty paragraphs need separate treatment.

Don't treat a page break as an empty paragraph

A marked page break starts a fresh page for the text that follows. A section break can separate document layouts. Those breaks can leave a large blank area even when there are no empty paragraphs.

Select and delete an unwanted break only when the following text should continue on the previous page or section. Check the layout immediately afterward, especially around headings, columns, and sections with different formatting.

Paragraph controls such as Keep with next and Keep lines together can also move text to the next page. Review them under Format > Line & paragraph spacing when a heading or paragraph leaves a large gap.

These page-layout controls aren't offered in pageless documents. In a document using pages, adjust the setting that moved the text, keeping the document's required margins intact.

If the problem is an entire unwanted blank page, follow the Google Docs page-deletion checks. That includes layout problems beyond ordinary blank lines between paragraphs.

Know the limit of Find and replace

Edit > Find and replace supports text searches and some regular expressions, which are patterns for matching characters. It isn't a dedicated bulk blank-paragraph remover.

Don't put a newline replacement such as backslash-n in Replace with expecting Docs to create a paragraph break.

The Find and replace documentation says those special replacement characters work in Sheets; Docs inserts them as literal text.

A regular-expression pattern intended for Sheets can therefore produce the wrong result in a document. Avoid running Replace all on an important file just because the expression works in a spreadsheet.

For a long document, you can remove paragraph spacing from a whole selection at once. Extra paragraphs still need careful deletion unless you've checked that an automation handles the way your document is laid out.

Finish by checking the layout you need to keep

Review headings, lists, tables, and the first paragraph on each affected page. Turn View > Show non-printing characters off when you're done, then inspect the document without the editing marks.

For a gap you still can't explain, post a formatting question in Google's Docs Editors community. Describe the blue mark, your document's pages or pageless setting, and whether zero paragraph spacing changed the gap.

Share a sample without private text.

The Short Version

Show non-printing characters, delete extra blank paragraphs, and use zero Before and After spacing for formatting gaps across selected text. Keep necessary paragraph and page breaks.

Find and replace isn't a dedicated delete-all-empty-paragraphs command.

Checked December 2, 2026.

If you have any business, I can build it online

Hi, I’m Hamza. I’ve been building websites and online shops for business owners since 2019, and I also built this site you’re reading.

Tell me what business you have or what you’re working on. I’ll look into how much it can grow online, and then we talk. You don’t have to buy anything or hire me first.

Chat with me on my site and I’ll show you proof of businesses I’ve helped and how they’ve grown.

Written by Isaac Smith

Isaac Smith is the founder and editor of PC Glance, a website that covers computers, laptops, and technology. He is a tech enthusiast and a computer geek who loves to share his insights and help his readers make smart choices when buying tech gadgets or laptops. He is always curious and updated about the latest tech trends.

More from Isaac Smith

Leave a Comment