Filter lines by length
Keep or remove lines based on their character count or word count.
Related tools
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.