Remove empty lines
Delete blank lines from text and get a compact, gap-free list.
Related tools
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.