Skip to content

Remove empty lines

Paste text with blank lines and get a compact version without changing the content.

It works in your browser. We do not store or send anything you type.Free · No sign-up required

Workspace · Remove empty lines

Runs in your browser · 100% local

Type or paste something to start.

Lines removed3
Lines kept3
Bytes44 B
Output
Files are processed in your browser; if you are signed in with history enabled, text results appear in your history.
Instructions

How to use it

01

Paste the text.

02

Choose whether to trim spaces or remove duplicates.

03

Copy or download the result.

Examples

Examples

Imported list

A list with blank rows between items becomes one line per item.

PDF text

Extra breaks are removed while paragraphs are kept.

Reference guide

What you need to know

Lines containing only spaces or tabs count as empty. Trimming removes leading and trailing spaces on each line, and the duplicate option keeps the first occurrence.

Frequently asked questions

Frequently Asked Questions

No, only leading and trailing spaces when trimming is enabled.

Related tools

Other tools that can help with similar tasks.

More at Text→
Remove empty lines online · ByTooly