RichMarkdown › Text tools › Remove empty lines

Remove empty lines

Text copied from a PDF, an email or a web page often arrives with blank lines everywhere. Remove all of them, or keep a single empty line between paragraphs.

Runs in your browser. Your text is not uploaded or stored on a server.

How to use it

  1. Paste the text.
  2. Pick “Remove all empty lines”, or untick it and tick “keep one empty line” to keep paragraphs apart.
  3. Copy the cleaned text.

When it helps

Need to write and format, not just clean? The RichMarkdown editor turns rich text into Markdown and Word files.

More text tools

Clean up text

Words and case

Convert formats

Encode and decode

Questions

Do lines with only spaces count as empty?

Yes. A line with spaces or tabs and nothing else is treated as empty.

Can I also join broken lines?

Yes, use Remove line breaks for text copied from a PDF.