Text tool

Keep Lines Containing Word

Keep lines containing literal text, preserving line content and separators. Processing stays local.

In-browser processingNo account requiredPrivacy details ↗

Maximum 100,000 UTF-16 characters. Processing stays in this browser.

A QUICK WALKTHROUGH

How to use this tool

  1. Enter text.
  2. Choose the limit or literal search.
  3. Review and copy the result.

Defined Unicode and line behavior

Lines containing the literal query are retained; an empty query matches every line. Unicode code points are counted with Array.from; extended grapheme clusters may contain multiple code points and are therefore not promised to remain together. Line filtering accepts LF, CRLF, and CR, preserves line text, blank lines, and the trailing empty line, and uses the first detected separator.

GOOD TO KNOW

Common questions

Is this grapheme based?

No. Character limits count Unicode code points. A displayed grapheme may contain multiple code points.

Are blank lines and line endings preserved?

Line text and blank or trailing lines are preserved when retained; LF, CRLF, and CR are accepted and the first separator style is used for output.