Remove empty lines
Delete blank lines from your text in one click.
Editor
Remove empty lines: what it does
Paste your text and every blank line is removed instantly. Use it to clean up text copied from a web page, tidy a list, or prepare data for import. Everything runs in your browser, so your text is never uploaded.
Remove empty lines: how to use it
- Paste or type your text into the input box.
- Choose whether lines that contain only spaces count as empty.
- Select Apply.
- Copy or download the cleaned text.
Remove empty lines: when to use it
- Clean up a list copied from a web page or a spreadsheet that came with blank rows between the items.
- Prepare data for an import or a script that treats every line as one record.
- Tighten a draft, a log or a transcript that has grown long because of empty lines.
Remove empty lines: examples
Input
apple banana cherry
Result
apple banana cherry
Input
First paragraph. Second paragraph. Third paragraph.
Result
First paragraph. Second paragraph. Third paragraph.
Remove empty lines: questions and answers
Does it remove lines that only contain spaces?
Yes, as long as “Treat whitespace-only lines as empty” is turned on. Turn it off to remove only lines that are completely empty.
Can I keep paragraph breaks?
Yes. Turn on “Keep one empty line between paragraphs”: runs of several empty lines become a single one instead of disappearing.
Is there a limit on the size of the text?
No. Large files with millions of lines are processed in your browser; a progress state shows while the tool works.
Is my text sent to a server?
No. Everything runs in your browser on your own device, so your text never leaves it.
Related tools
Tools people often use together with this one.
- Remove line breaks
Turn many lines into one line in a click.
- Remove extra spaces
Clean up double spaces and stray whitespace.
- Sort lines
Sort lines A to Z, Z to A, by number or by length.
- Split text into lines
Put every word or list item on its own line.
- Add a blank line between lines
Double-space your text with one empty line between lines.
- Bullet list maker
Turn lines into a bullet list, or remove the bullets.
- Add text to each line
Add a prefix, a suffix or both to every line.
- Find and replace text
Replace words in your text, with optional regular expressions.