Text tools
Remove Blank Lines
Clean up empty lines without changing the text you keep.
Empty means no characters. Whitespace-only also includes spaces, tabs and Unicode whitespace. Kept lines are never trimmed.
Editor text: CRLF and CR become LF. Load a UTF-8 file to preserve its original line endings. Downloads use UTF-8.
Counts appear after processing.
Choose what counts as blank, then remove blank lines.
How to use
- Add your text
Type, paste, or select a UTF-8 file. File text appears when you run the tool.
- Choose blank type
Remove only empty lines, or also lines containing just spaces, tabs and Unicode whitespace.
- Remove and save
Check the result, then copy or download. Running again starts from the same input.
Frequently asked questions
Empty lines versus whitespace-only lines
Empty lines have no characters before their line ending. Whitespace-only mode also removes lines containing only ECMAScript whitespace: spaces, tabs, vertical tabs, form feeds, nonbreaking spaces, Unicode space characters and U+FEFF. An initial BOM is treated as encoding metadata and kept. Zero-width spaces (U+200B) and NEL (U+0085) are content and stay.
Will indentation or other text change?
A kept line is copied exactly, including indentation, trailing spaces, punctuation, emoji and combining marks. Only matching blank lines and their own line endings are removed. Empty input is valid. If nothing matches, the result says it is unchanged.
How are line endings and final lines handled?
CRLF, LF, CR, Unicode line separator (U+2028) and paragraph separator (U+2029) end lines. Every kept line retains its original ending, even in mixed files. A final ending does not count as an extra blank line. Removing a trailing whitespace-only line can leave the preceding line’s ending intact. An unterminated kept line stays unterminated. All-blank input produces empty output, except that a leading BOM is preserved.
Why load a file instead of pasting?
The browser editor normalizes CRLF and CR to LF, including in the displayed result. File input preserves the original endings in the downloaded result. Files must be valid UTF-8 regardless of their name or MIME type. Downloads retain a leading UTF-8 BOM. Clipboard applications may adapt line endings; download for the exact processed UTF-8 text. Rich formatting is not retained.
Can I cancel or process large text?
There is no fixed text-length cap. Available browser memory and string capacity limit processing and previews. Cancel stops processing and keeps your input. Editing input or changing the mode clears an old result and cancels work. Reset clears input, output, file selection and options.
Does my text stay private?
File decoding and cleanup run in your browser. This tool does not upload, log or persist your text or file. Copy writes to your clipboard; Download saves when selected. Leaving the page releases text and download URLs.