Count unique lines
any languageStatsCount distinct raw lines after splitting on line breaks and return a JSON metric.
0/500000Drop .txt, .html, .md, .csv, or .json files here.
Output appears here after you run the tool.
Max input 500000 chars · Worker timeout 2s · Offline runtime
About this tool
Count unique lines: Count distinct raw lines after splitting on line breaks and return a JSON metric.
Use cases
- Measure the metrics covered by “Count unique lines” in one run
- Compare text size before and after cleanup
- Get quick counts for editorial review
- Add a lightweight measurement step to a cleanup flow
How to use it
- Paste text into Input, or drop a .txt / .html / .md file.
- Click Run, or wait for auto-run to finish.
- Copy the Output; use “Use example” for a quick trial.
Notes
- Everything runs in your browser; your text is never uploaded to a server.
- Deterministic transform: the same input and options always yield the same output—no AI rewrite.
- Keep a single run within the tool limit (about 500000 characters); larger payloads may time out.
Similar tools
- Trim then count charactersStats
Trim surrounding whitespace, then count the remaining characters.
- Trim then count linesStats
Trim surrounding whitespace, then count lines in the remaining text.
- Trim then count wordsStats
Trim, then count whitespace-separated tokens. Chinese text without spaces counts as 1 word.
- Trim then word frequencyStats
Trim surrounding whitespace first, then compute word frequency.
- Word frequencyStats
Count whitespace-split words and return sorted word-frequency JSON.
- Trim then count UTF-8 bytesStats
Trim surrounding whitespace before counting UTF-8 bytes.