What this tool does
This tool tidies a column of text: remove duplicate lines, sort alphabetically or numerically, reverse the order, drop blank lines, strip stray whitespace, add line numbers, or simply count how many lines, characters and words you have.
The use cases are concrete: a column of IDs copied out of a spreadsheet has duplicates; a few hundred pasted log lines need sorting; a keyword list has blank lines to remove; a draft needs line numbers for review; a submission needs a word count. None of that should require opening Excel or pasting data into an online service — this runs in your browser and nothing is uploaded.
How to use
- Step 1: paste your lines Paste the content, one item per line. Blank lines are preserved unless you choose to remove them, so line numbers keep matching the original.
- Step 2: choose an operation Pick the operation and the result recomputes at once: dedupe, sort ascending or descending, reverse, trim, remove blank lines, number the lines, or count.
- Step 3: chain by running again One operation per run: to dedupe and then sort, run dedupe first, paste the result back and run sort. There is deliberately no hidden pipeline, so you can always see what each step did.
Limits
Everything here works at line level and does not parse structure: commas are not treated as columns and CSV quoting is not interpreted (use the CSV tools for that). There is no regex replace, no multi-step pipeline, and no within-line sorting. The word count splits on whitespace, so Chinese text counts runs of non-space characters — treat it as a phrase count rather than a character count.
FAQ
Does deduplication change the order?
No. Deduplication keeps the first occurrence in place, so the order matches your input; only choosing a sort changes it.
Why does v2 come before v10?
Because sorting is numeric-aware: runs of digits compare as numbers, and 2 is less than 10. Plain string comparison would put v10 first, which is the surprising behaviour many tools have.
Can I dedupe a single column?
No — comparison is whole-line, so keep only that column first (delete the others in your editor, or handle the table with the CSV tools).
Is the word count accurate for Chinese?
Chinese text is counted as runs of non-space characters, so what you get is a phrase-level count rather than a character count. Use a dedicated counter when you need exact characters.
How large a file can it handle?
Up to 20MB per file, which is millions of short lines. Processing is local, so network speed never matters, and 200,000 lines usually finish in under 1.5 seconds.
Is my text uploaded or stored?
No. Everything happens in the page, no request carries your text, and nothing is persisted locally — closing the tab clears it.