Remove empty lines
Delete every blank line from a text, including lines that only hold spaces, in one step.
Blank lines
Sort lines
9 lines in, 6 lines out: removed 3 blank lines.
Missing a feature or found a bug in Remove empty lines? Tell me on X (@_andrewtran) or by email.
How to use Remove empty lines
- Paste the text.
- Every blank line goes at once, also lines with only spaces in them.
- Copy or download the result.
Questions and answers
Can I keep one blank line between paragraphs?
Yes. Choose One at most under Blank lines.
Is my data sent anywhere?
No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.
Related tools
Text cleaner
Trim spaces, remove blank and duplicate lines, sort lines, straighten quotes and strip HTML from messy text.Remove duplicate lines
Remove repeated lines from a list or text, keeping the first of each, with or without matching case.Sort lines
Sort lines of text alphabetically, in reverse, by length or backwards, with numbers in natural order.Word counter
Count words, characters, sentences and paragraphs as you type, with reading time and top words.