Text Length Filter
Free online text length filter tool, no installation required
About Text Length Filter
Text Length Filter keeps or removes lines based on their character length. You set a minimum and maximum length, choose whether to include or exclude lines that fall inside that range, and the tool filters every line of your input. The result and a live line count are shown below.
How to Use
1. Paste your text into the Input box (each line is evaluated independently). 2. Set Min Length and/or Max Length as character counts (leave blank for 0 or unlimited). 3. Choose Filter Mode: Include keeps lines within the range; Exclude drops lines within the range. 4. Click the Filter button to produce the output. 5. Use Copy to copy the result. The output line count is displayed beneath it.
Length Range and Filter Modes
Length is measured in characters per line, counting spaces and symbols. A blank Min Length defaults to 0; a blank Max Length is treated as unlimited (no upper bound). - Include mode: a line is kept only if min <= line.length <= max. - Exclude mode: a line is dropped if it falls inside the range, and kept otherwise. Example with min=3, max=5, Include: "hi" is dropped, "hello" is kept, "world!" (6 chars) is dropped.
▶What happens if I leave Min Length or Max Length empty?
▶How does the Include mode decide which lines to keep?
▶Does the filter run automatically as I type?
▶Are spaces counted toward line length?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee