Remove Blank Lines Tool

Updated on 2025-09-15 · Free · en/fr

This free online tool lets you remove blank lines and delete empty lines from any text. It keeps your document, JSON, or code compact and clean. Everything runs locally in your browser — nothing is uploaded.

Text ToolsFormattersCleaners

Remove Empty Lines from Text

Paste your text below and click “Remove Blank Lines”.

Result will appear here...

Examples

Input:

second line

first line


third line

Output:

second line
first line
third line

When to Use This Tool

Frequently Asked Questions

What does this tool do?
It deletes all blank or empty lines from your text, leaving only lines with content.
Does it remove spaces between lines?
Yes, if a line only contains spaces or tabs, it will be removed.
Is my text uploaded?
No, all processing happens in your browser. Nothing is sent to a server.
Can I use this for JSON?
Yes, it works with JSON files, cleaning out empty lines while preserving structure.
Does it change line breaks?
No, valid line breaks remain. Only empty or whitespace-only lines are removed.