Remove Empty Lines
Remove blank lines — and optionally lines containing only spaces — from any text in one step.
This tool runs entirely in your browser.
Loading tool…
How to use the Remove Empty Lines
- 1Paste your text.
- 2Choose whether whitespace-only lines count as empty.
- 3Copy the cleaned text.
What is the Remove Empty Lines?
Text copied from PDFs and web pages often contains extra blank lines. Removing them makes lists and code easier to work with.
Frequently asked questions
Will it join paragraphs together?
Paragraphs stay on separate lines, but the blank line between them is removed.
Is the Remove Empty Lines free and private?
Yes. The Remove Empty Lines is free, needs no account, and runs entirely in your browser. What you type is never sent to a server or stored.
Related tools
All text tools →- Remove Duplicate LinesDelete repeated lines from a list.
- Sort LinesSort lines alphabetically, naturally or by length.
- Find and ReplaceFind and replace text, with regex support.
- Word CounterCount words and characters instantly.
- Character CounterCount characters with and without spaces.
- Sentence CounterCount sentences and average sentence length.
