Line Tools — Sort, Filter, Deduplicate & Transform Lines
Skip to main content

Line Tools

Sort, filter, extract columns, count frequency, and transform text lines.

8 lines·5 unique·0 empty·longest: 10

About Line Tools

Text processing tasks like sorting a list, removing duplicates, filtering by pattern, or counting frequencies come up constantly in development — log analysis, data cleanup, config file editing. This tool handles all common line-level text operations in your browser: sort, deduplicate, filter, extract columns, join, and count frequency.

What this tool does

Sort & Deduplicate

Sort lines alphabetically, by length, or randomly. Remove duplicate lines with case-sensitive or case-insensitive matching.

Filter by Regex

Keep or remove lines matching a regular expression. Useful for filtering log files, extracting specific entries, or removing noise.

Column Extraction

Extract a specific column from delimited text (CSV, TSV, space-separated). Specify the delimiter and column index.

Frequency Count

Count occurrences of each unique line and sort by frequency — useful for log analysis and finding the most common values in a dataset.

Pipeline

  • Text Diff — compare two processed line sets side by side.
  • Word Counter — count words and characters after processing.
  • CSV to SQL — convert extracted column data to SQL INSERT statements.

Frequently asked

Is my text sent to a server?
No. All line processing runs 100% in your browser. Your text never leaves your device.
What operations does this tool support?
Sort (alphabetical, reverse, length, random), deduplicate, trim whitespace, remove empty lines, reverse order, number lines, filter by regex, extract CSV columns, join lines, and frequency counting.
How do I remove duplicate lines?
Enable the "Remove Duplicates" toggle in the Transform tab. The tool preserves the first occurrence of each line and removes subsequent duplicates. Case-sensitive by default — enable case-insensitive mode to treat "Apple" and "apple" as duplicates.
How do I filter lines by a pattern?
Switch to the Filter tab and enter a regex pattern. Lines matching the pattern are kept (or removed, depending on the mode). For example, "^ERROR" keeps only lines starting with "ERROR".
What is the frequency count feature?
The Frequency tab counts how many times each unique line appears and sorts by frequency. This is useful for analyzing log files, finding the most common values in a dataset, or counting word occurrences.