Text tool

Remove Short Lines

Paste text and set a minimum length. Lines below it are removed while other content and the input newline style are preserved.

In-browser processingNo account requiredPrivacy details ↗

Lines use LF, CRLF, or CR separators. Input is limited to 100,000 UTF-16 characters.

Paste text and choose a minimum length.

A QUICK WALKTHROUGH

How to use this tool

  1. Paste up to 100,000 UTF-16 characters.
  2. Set the minimum Unicode code-point length.
  3. Remove short lines and copy the result.

Length and newline definitions

Lines are split by LF, CRLF, or CR; terminators are excluded. Length uses Unicode code points, so surrogate pairs count as one and empty lines count as zero.

Local processing limit

Input is limited to 100,000 UTF-16 characters and stays in your browser.

GOOD TO KNOW

Common questions

Are lines equal to the threshold removed?

No. Only lines shorter than the minimum are removed.

Is line content changed?

No. The tool removes whole short lines and preserves the other line content.

Are newline styles preserved?

Yes. Output uses the first LF, CRLF, or CR separator detected in the input.