Line Length Filter

Input lines: 0 · Output lines: 0

About this tool

Filter a list of lines by their character length. Choose whether a line "matches" when its length is greater than, less than or equal to the value you enter, then decide whether to keep only the matching lines or delete them and keep the rest. For example, keep lines greater than 0 removes empty lines, while delete lines less than 5 drops short fragments. The length counts every character on the line including spaces, but not the line break itself.

The input and output line counts are shown so you can see exactly how many lines the filter removed. Useful for cleaning short noise out of lists, extracting long entries, or trimming a file down to a size range. Everything runs locally in your browser — your text never leaves your device.

Related tools

Line ToolsRemove Empty LinesOdd / Even Lines