Skip to content
TextArray
100% local

Filter lines by length

Keep or remove lines based on their character count or word count.

Input

Filter lines by length

Paste a list and keep or remove lines based on how long they are — measured in characters or in words. Typical jobs: cleaning a keyword export down to long-tail phrases of three words or more, dropping oversized page titles from an SEO audit, pulling short candidate names out of a domain list, or discarding truncated rows from a log or CSV export before further processing.

Set a minimum, a maximum, or both; a value of 0 switches that bound off. Because both bounds are inclusive, setting minimum and maximum to the same number matches an exact length — handy for fixed-width codes. The measure selector switches between counting characters and counting whitespace-separated words, and the mode selector decides whether lines inside the range are kept or removed, so "keep 1–60 characters" and "remove everything over 60" are two ways to express the same cleanup.

Characters are counted the way people count them: accented letters like č, ő or ß are one character each, and so is an emoji, even though it takes two UTF-16 units internally. Trimming before measuring is on by default, so trailing spaces don't sneak a line over the limit; the kept lines are output exactly as they came in. Windows (CRLF) and Unix (LF) line endings are handled interchangeably, and the tally shows how many lines came in, how many remain and how many were dropped.

Everything runs locally in your browser — the list is never uploaded, so keyword research and log data stay private. Copy the result, download it as a .txt file, or send it back to the input for the next cleanup step.

FAQ

How do I match an exact length?
Set the minimum and the maximum to the same number. Both bounds are inclusive, so a line matches when its length equals that value exactly.
How are words counted?
A word is any run of non-space characters, so "well-known" counts as one word and multiple spaces between words make no difference.
Do leading and trailing spaces count toward the length?
Not by default — "Trim before measuring" is on, so surrounding whitespace is ignored while the line itself is output unchanged. Turn it off to count every character as-is.
Do emoji and accented letters count as one character?
Yes. Lengths are measured in real characters (code points), so an emoji or an accented letter counts once, not twice.
Is my list uploaded anywhere?
No. The tool runs entirely in your browser and your text never leaves your device.