Skip to content

Remove Empty Lines

Delete empty or whitespace-only lines while preserving other text.

Input

16 chars4 lines

Result

Type or paste on the left — the result updates as you type.

Does not trim nonempty lines. Remaining line endings are normalized to LF.

Up to 100,000 UTF-16 units per input and 1,000,000 per result. See the supported formats and examples below.

Format references

Tool page updated: