← ← All Tools

🔍 Text Line Filter

Multi-line text cleanup workbench for filtering lines, deduping, trimming, normalizing CRLF/LF/CR line breaks, joining lines, and adding or removing line numbers. Supports duplicate reports, delimiters and wrapping, number formats, copy, download, and summary copy; all processing stays in the browser with a 5 MB input limit.

All filtering runs locally in your browser. Input text is not uploaded by the tool.
0 lines

Quick Scenarios

Mode

Use Advanced Rules to choose kept lines. With no rules, all lines are kept; Advanced Output still controls trim, dedupe, sort, and displayed line numbers.

Output

Paste text and click "Filter", or choose a quick scenario first; results will appear here.
Advanced Rules

Global Logic

No rules yet. Click "+ Add Rule" or a preset above to start filtering. With an empty rule stack, all lines are kept.
Advanced Output
Shortcuts: Ctrl+Enter force recompute · Alt+↑/↓ reorder active rule. Line-number formula supports 5, 5-10, 2n+1, 5n, 1,3,5-7. Length defaults to grapheme counting (👨‍👩‍👧 counts as 1).

Text Line Filter now works as a multi-line text cleanup workbench. The default mode keeps the existing rule-stack filter with AND/OR logic, contains, not-contains, starts-with, ends-with, whole-word, regex, line-number, length, and character-set rules; you can also switch to dedupe, trim, line-break normalization, line joining, or line numbering. Dedupe mode supports keep-first, keep-last, consecutive dedupe, trim-before-compare, ignore-case, ignore-blank-lines, natural sorting, and a duplicate report; trim mode truncates by characters, words, or lines with an optional marker; line-break mode detects CRLF, LF, and CR and outputs a target format; join mode supports delimiter presets, custom delimiters, per-line trim, empty-line removal, prefixes, and suffixes; numbering mode can add or remove line numbers with format, start, step, alignment, and empty-line policy. Results support output, excluded/side-by-side views, reports, copy, download, and summary copy. All processing stays in the browser and does not upload your text; input is capped at 5 MB.