Skip to main content
{/}codefunc
Minifiers & TextRuns locally

Line Sort & Dedupe

Sort lines alphabetically and remove duplicates.

About this tool

Sort lines alphabetically and remove duplicates. Quick payload size checks, text cleanup, and deploy prep during development.

Paste a list with one item per line (domains, paths, package names). Enable sort and/or dedupe depending on whether order or uniqueness matters. Example — Sort and remove duplicates: try `banana apple apple cherry` and expect something like `apple banana cherry`.

Sorting is lexicographic — numeric strings like 10 sort before 2. See also: Case Converter. Runs in your browser — nothing you paste gets uploaded.

How to use

  1. Paste a list with one item per line (domains, paths, package names).
  2. Enable sort and/or dedupe depending on whether order or uniqueness matters.
  3. Copy the cleaned list into allowlists, CSV columns, or config arrays.
  4. Keep a backup if original order carried meaning (priority queues, rankings).

Example

Sort and remove duplicates

Input

banana
apple
apple
cherry

Output

apple
banana
cherry

Limitations

  • Sorting is lexicographic — numeric strings like 10 sort before 2.
  • Case and trailing spaces affect uniqueness; normalize first if needed.
  • Does not parse CSV cells or JSON arrays — plain lines only.

Related tools

1

Frequently asked questions

What does the Line Sort & Dedupe do?

Sort lines alphabetically and remove duplicates. Runs in your browser — no install, no account.

How do I use the Line Sort & Dedupe?

Paste a list with one item per line (domains, paths, package names). Enable sort and/or dedupe depending on whether order or uniqueness matters. Copy the cleaned list into allowlists, CSV columns, or config arrays. Keep a backup if original order carried meaning (priority queues, rankings).

Is the Line Sort & Dedupe free?

Yes. No signup, no usage limits, no paywall.

Does the Line Sort & Dedupe upload my data?

No. Processing happens locally in JavaScript. Your input is not uploaded, stored, or logged.

What are the limitations of the Line Sort & Dedupe?

Sorting is lexicographic — numeric strings like 10 sort before 2. Case and trailing spaces affect uniqueness; normalize first if needed. Does not parse CSV cells or JSON arrays — plain lines only.

Search tools

Find a developer tool