Remove Empty Lines
Delete blank lines, or squeeze runs of them into one
Runs on your device
How to use Remove Empty Lines
Type or paste your text into the box, or press Sample to see an example.
Set the options: “Do” and “Lines of only spaces or tabs count as empty”. Reset puts them back.
The result updates as you go. Copy it or download it.
About Remove Empty Lines
Delete blank lines, or squeeze runs of them into one.
Remove Empty Lines: common questions
Is Remove Empty Lines free?
Yes. There's no sign-up, no limit on how often you use it and no watermark.
Is your text uploaded anywhere?
No. Remove Empty Lines works on this device only, so your text stays private. You can even turn off the internet once the page is open.
What can I change?
2 settings, including “Do” and “Lines of only spaces or tabs count as empty”. Every setting has a sensible default, and Reset puts them all back.
Does it work on a phone?
Yes, in any current browser on Android, iPhone, iPad and desktop.
More text tools
- Text CleanerClean up messy text in one go: spaces, empty lines, duplicates, invisible characters, HTML, links, emoji and more
- Text AnalyzerWords, sentences, paragraphs, reading time, readability and the top words
- Word CounterCount words, characters, sentences and paragraphs as you type, with reading time, a word goal and keyword density
- Character CounterCharacters with and without spaces, letters, digits and bytes, checked against the limits of posts, SMS and search results
- Reading TimeHow long a text takes to read, skim or say aloud, at speeds you set
- Sentence CounterCount sentences, see each one's length and spot the long ones
- Paragraph CounterCount paragraphs and see the words and sentences in each
- Line CounterCount lines, empty lines and long lines
- Remove Duplicate LinesRemove repeated lines, keeping the first or last, ignoring case or spaces if you like
- Sort LinesSort lines A to Z, naturally, by number, length or a column, and drop duplicates
- Reverse LinesFlip the order of lines, of the whole text or within each paragraph
- Shuffle LinesPut lines in random order, or pick a few at random