Skip to content
UniKit

Blank line remover

Delete blank and whitespace-only lines line by line, with CRLF / CR / LF support, optional per-line trimming, and stats for input lines, kept lines and removed lines.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Lines are processed one by one: blank and whitespace-only lines are dropped, CRLF / CR / LF are all recognised, and the output uses LF.

Result

Only blank lines are removed; line content and order stay unchanged.

Paste text to see the blank lines removed

What this tool does

  • Clean up blank lines left by OCR, PDF copying or web scraping so every line carries content
  • Tidy lists, code snippets or subtitle drafts by dropping blank lines and, optionally, per-line indentation

Example

Input

First line

   
Second line

Output

First line
Second line

Four input lines lose one empty line and one space-only line; text and order stay the same and the output uses LF.

Frequently asked questions

What counts as a blank line?

An empty line has no characters at all, a whitespace-only line contains just spaces or tabs; both are removed and counted separately in the stats. Spaces inside a line are never treated as a blank line unless you enable trimming.

Does Windows CRLF break anything?

No. The input is split on CRLF, CR and LF, the detected ending is reported, and the output uses LF by default with an option for CRLF. Downloads are UTF-8 text files.

Will lines be merged or content dropped?

The tool only deletes lines. It does not merge, deduplicate, sort or change case, and full-width spaces count as whitespace too. Nothing is uploaded: everything runs in your browser.

Is the trailing newline counted as a line?

No. When the text ends with a newline, that newline does not add a line, so “2 lines in, 2 lines out, 0 removed” is normal.

Keywords:CRLFblank line removerkongtxt

Related tools