Skip to content

Count Duplicate Lines

Find and count duplicate lines fast. Free online frequency counter with case sensitivity, trim/normalize options, sorting, and one-click copy.

Runs in your browser — nothing is uploaded

Lines

Occurrences

Each unique line and how many times it appears.

About this tool

Count Duplicate Lines (Text Frequency Counter)

Paste your text and instantly see how many times each line appears. Sort by most frequent, toggle case sensitivity, and export or copy the results. Ideal for cleaning lists, finding duplicates in logs, and quick data checks.

Features
  • Frequency table of unique lines with counts and percentages
  • Case sensitive / insensitive toggle
  • Trim whitespace & ignore blank lines options
  • Sort by count, A→Z, or keep original order
  • Copy results or export CSV
Examples

Input
apple
banana
apple
orange
banana
banana

Output (sorted by count)

banana, 3 (50%)
apple, 2 (33.3%)
orange, 1 (16.7%)
What does this tool count?

Exact line matches. For word counts, split text to one word per line or use a word-frequency tool.

Will spacing affect duplicates?

Enable “trim whitespace” to normalize leading/trailing spaces before counting.

Can I export results?

Yes — copy to clipboard or export as CSV for spreadsheets.