TextArray
100% local

Remove empty lines

Delete blank lines from text and get a compact, gap-free list.

Input
Output

Remove empty lines

Paste text riddled with blank lines and get back a compact version with the gaps removed. This is the fastest way to tighten up lists exported from spreadsheets, log files with empty records, text copied from PDFs where every paragraph gained a stray blank line, or code snippets padded with vertical whitespace.

By default, lines that contain only spaces or tabs count as empty too — they look blank on screen, so they almost always should go. Turn the option off if you need to preserve whitespace-only lines exactly as they are, for example in indentation-sensitive formats. If you do not want to lose paragraph structure entirely, enable "Keep one blank line between blocks": instead of deleting every blank line, the tool collapses each run of them into a single one, so paragraphs stay visually separated while the excess padding disappears.

The tally under the output shows how many lines came in, how many remain and how many were removed, updating live as you type or adjust options. Windows (CRLF) and Unix (LF) line endings are treated the same, and even files with hundreds of thousands of lines are processed in milliseconds on your own device.

Nothing you paste here is sent anywhere. The tool runs entirely in your browser, which makes it safe for private data such as customer lists, server logs or unpublished manuscripts. When the result looks right, copy it with one click or download it as a .txt file.

FAQ

Which lines count as empty?
Lines with no characters at all, and by default also lines containing only spaces or tabs. Disable "Treat whitespace-only lines as empty" to keep the latter.
Can I keep paragraph spacing?
Yes. Enable "Keep one blank line between blocks" and runs of blank lines collapse to a single one instead of disappearing completely.
Does it work with Windows line endings?
Yes. CRLF and LF endings are detected automatically and the output uses standard line breaks.
Is there a limit on text size?
No fixed limit. Processing happens on your device and even very large files finish in milliseconds.
Is my text uploaded anywhere?
No. The tool runs entirely in your browser and your text never leaves your device.