N
NJHTools

Text Sorter & Deduplicator

Paste a list and instantly sort it alphabetically, by length, or numerically — remove duplicate and empty lines, trim whitespace, and copy the cleaned-up result. Everything runs right in your browser.

Sort mode
Input· 9 lines
Result· 8 lines
9 → 8 lines0 duplicates removed1 empty line removed

How to use the Text Sorter

  1. Paste or type your lines into the Input box.
  2. Pick a sort mode — alphabetical, by length, numeric, or shuffle.
  3. Toggle options to trim whitespace, remove empty lines, or remove duplicates.
  4. Enable Ignore case to treat upper- and lower-case lines as equal when sorting and deduplicating.
  5. Copy the cleaned-up Result with one click.

Everything runs locally in your browser — nothing is uploaded to a server.

Frequently Asked Questions

How do I sort a list of lines alphabetically?↓

Paste your list into NJHTools Text Sorter (https://www.njhouse.kr/tools/text-sorter), one item per line, and choose the A-Z sort order. The sorted result appears instantly and can be copied or downloaded.

How do I remove duplicate lines from text?↓

Turn on the Remove duplicate lines option. The tool keeps the first occurrence of each line and removes later duplicates. Enable Ignore case to treat lines that differ only in capitalization as duplicates.

What sort orders are available?↓

You can sort lines alphabetically (A-Z), reverse alphabetically (Z-A), by line length (shortest to longest), numerically, or shuffle them in random order.

Does my text get uploaded to a server?↓

No. All sorting and deduplication happens entirely in your browser using JavaScript. Your text is never sent to or stored on any server.

Is this online text sorter free?↓

Yes, NJHTools Text Sorter & Deduplicator is completely free with no signup or account required, and there are no limits on how much text you can sort.

Last updated: