Remove Empty Lines
Text copied from PDFs, emails and websites is often full of blank lines. Remove them all at once — including lines that only contain spaces or tabs — and get a compact list or paragraph.
Runs in your browser
How to use
- Paste your text.
- Decide whether lines containing only spaces count as empty.
- Copy the result.
How it works
The text is split into lines (Windows, macOS and Linux line endings are all recognised). Lines that are empty — or contain only whitespace when that option is on — are dropped, and the rest are joined with standard line breaks.
Examples
- Copied list
- A list pasted from a web page with a blank line between each item becomes one item per line, ready to paste into a spreadsheet.
Common uses
- Tidying lists before importing into Excel
- Compacting code or configuration files
- Cleaning text copied from PDFs
Privacy & security
This tool runs entirely in your browser. Your files and text are never uploaded to our servers — processing happens on your device and results are created locally. How each tool handles files
Frequently asked questions
Will this join my paragraphs together?
Yes, it removes every blank line including those between paragraphs. To only fix broken lines inside paragraphs, use the Text Cleaner.
Are Windows line endings supported?
Yes. CRLF, LF and CR line endings are all handled; the output uses LF.
Last updated: