Sort Text Lines

Last updated: June 17, 2026

Alphabetize and sort lists.

Loading tool…

Sort Text Lines is a free online tool to alphabetize and sort lists. It runs entirely in your browser, so your files never leave your device — nothing is uploaded. There's no sign-up, no watermark, and it works on any modern browser on desktop or mobile.

How to use Sort Text Lines

Sort Text Lines alphabetizes and orders any list — A–Z, Z–A, by length or reversed — with options to ignore case and remove duplicates as you sort. Perfect for tidying lists, names and keywords. Free and runs in your browser.

Read the full guide: How to Sort Text Alphabetically Online (Free)

  1. 1Paste your lines.
  2. 2Choose the sort order and options.
  3. 3Copy the sorted list.

Several orders

Alphabetical, reverse-alphabetical, by length or simply reversed.

Clean as you sort

Optionally ignore case and drop duplicates in one step.

Free & private

Runs on your device with no sign-up.

Alphabetize a bibliography or reference list

Writing a paper and need your works-cited entries in alphabetical order? Paste each reference on its own line, choose A to Z, and turn on Ignore case so capitalized author surnames sort naturally beside lowercase ones. The list reorders instantly, ready to copy back into Word or Google Docs. No more dragging citations around by hand or missing one out of sequence.

Deduplicate and sort a keyword list

SEO and PPC work generates messy keyword dumps full of repeats. Paste your terms one per line, switch on Remove duplicates, and pick A to Z to collapse the list into a clean, unique, alphabetized set in a single pass. Ignore case prevents "Running Shoes" and "running shoes" being kept as two entries, so your final ad groups and content briefs stay tidy.

Sort lines by length for code or design

Sometimes order matters less than visual rhythm. Choose By length to arrange lines from shortest to longest, handy for stacking CSS imports, aligning ASCII layouts, ordering menu labels, or finding the longest string in a batch. Drop in your lines, watch them re-stack instantly, and copy the result. Pair it with Reverse order if you instead want the longest entries sitting at the top.

Sort Text Lines — frequently asked questions

How do I alphabetize a list?

Paste your lines and choose A → Z. Turn on 'Ignore case' for a natural alphabetical order regardless of capitalization.

Can it sort by length?

Yes — pick 'By length' to order lines from shortest to longest.

Is it free?

Yes, completely free.

Share this tool

Send it to someone who needs it or save the link for later.