Remove empty lines
Remove blank lines from text, optionally including lines that contain only spaces, tabs, or other whitespace.
How it works & useful details
How to use this tool
Paste your text and remove empty lines. The remaining lines keep their spacing and order.
How the result is calculated
An empty line contains no characters. With the extra option enabled, JavaScript whitespace-only lines (including spaces, tabs, and nonbreaking spaces) are also removed. Zero-width space U+200B is not JavaScript whitespace.
Line tools normalize CRLF and CR to LF. A final newline represents an empty final line; empty input has zero lines.
Up to 500,000 UTF-16 code units per input. Text stays on your device.
