How to remove empty lines
- Paste your text into the first box.
- Pick Remove all to delete every blank line, or Max one in a row to keep paragraph spacing but remove the big gaps.
- Copy the result from the result box.
Lines that look empty but aren't
A line can look blank but still contain spaces or tabs. These are common in text copied from websites, code editors and spreadsheets. Many find-and-replace tricks miss them. With Treat lines with only spaces as empty on, they're removed too.
Remove all or keep one
Remove all is best for lists, code and data, where every blank line is noise. Max one in a row is best for prose: paragraphs stay separated by a single blank line, and the gaps of three or four blank lines that pile up after copying and pasting are reduced to one.
Common uses
- Tidying lists copied from web pages
- Cleaning exported chat logs and transcripts
- Preparing data for import into a spreadsheet or database
- Removing blank lines from code or config files