Remove empty lines
Delete blank lines and optionally trim each line.
Runs on this devicePLAIN
Input
or drop a file below
Ctrl ↵ Add to workflow
More in Text
HTML Entities
Escape or unescape HTML entities.
Regex Tester
Test a JavaScript regular expression and list every match with its groups.
Text Diff
Compare two texts line by line. Separate them with a line containing only ===.
Case Converter
camelCase, snake_case, kebab-case, Title Case and more.
Slug Generator
Turn titles into clean URL slugs. One slug per line.
About Remove Empty Lines
Paste text with gaps and this tool deletes the blank lines. You can also trim leading and trailing spaces from every line. It runs on your device.
How to use Remove Empty Lines
- Paste your text.
- Leave trimming on to strip spaces around each line.
- Read the cleaned text.
- Copy it.
Questions and answers
Does a line with only spaces count as empty?
With trimming on, yes, because the spaces are stripped first.
Will it join paragraphs together?
Blank lines between paragraphs are removed, so paragraphs sit on consecutive lines.
Is my text uploaded?
No.