free tool · no sign-up · runs in your browser

Sort alphabetically

Paste a list with one item per line and it's sorted as you type. A to Z uses natural order, so Item 2 comes before Item 10, and accented letters sort where you'd expect. You can also sort Z to A, by length, or just reverse the list. To remove duplicates as well, use the duplicate line remover.

paste here

result

On a Mac? Skip this tab next time. Pastely does it in any app: copy, press ⌘⇧V, and it pastes in the format that app needs.

Download Pastely free

Free to embed. Put this sort alphabetically on your blog, docs or class page.

How each sort works

Optionbanana, Apple, item 10, item 2
A → Z (ignore case)Apple, banana, item 2, item 10
Z → Aitem 10, item 2, banana, Apple
By lengthApple, banana, item 2, item 10
Reverseitem 2, item 10, Apple, banana

Sort in a terminal

sort list.txt sorts alphabetically, sort -f ignores case, sort -V sorts numbers naturally and sort -r reverses. To sort by line length: awk '{ print length, $0 }' list.txt | sort -n | cut -d' ' -f2-.

Sort Alphabetically: questions

How do I sort alphabetically in Google Sheets or Excel?+

In Google Sheets, select the column and choose Data › Sort range › A to Z, or use =SORT(A2:A). In Excel, select the column and choose Data › Sort A to Z.

How do I alphabetize a list in Word or Google Docs?+

In Word, select the list and press the Sort button on the Home tab. Google Docs has no built-in sort, so paste the list here, sort it, and paste it back.

What is natural sort order?+

Sorting numbers inside text by their value instead of digit by digit. Plain alphabetical order puts file10 before file2, because 1 comes before 2. Natural order puts file2 first.

More free tools

Paste as Plain Text

Strip fonts, colours and links from copied text, and the invisible characters too.

Remove Line Breaks

Fix text copied from a PDF: join broken lines back into paragraphs.

Case Converter

UPPER, lower, Title, Sentence, camelCase, snake_case and more in one click.

Word Counter

Words, characters, sentences, paragraphs and reading time as you type.

JSON Formatter

Format, validate and minify JSON, and fix trailing commas and single quotes.

Markdown Table Generator

Paste cells from Excel, Google Sheets or a CSV and get a Markdown, HTML or JSON table.

Remove Duplicate Lines

Dedupe, sort, trim and clean up any list in one paste.

Clipboard Viewer

See everything on your clipboard: plain text, HTML, images and hidden formats.

Mac Copy & Paste Shortcuts

Every copy, paste and screenshot shortcut on a Mac, searchable.

Paste Into Google Sheets

Turn any copied table, list or CSV into columns that paste straight into Sheets or Excel.

Table Converter

Convert tables between HTML, Markdown, CSV, TSV and JSON, in any direction.

JSON to CSV

Turn a JSON array into CSV or spreadsheet cells, nested objects flattened.

CSV to JSON

Turn a CSV or spreadsheet into a JSON array, with numbers and true/false typed.

ChatGPT Text Formatter

Fix the asterisks and hashes when you paste ChatGPT text into WhatsApp, Slack or a plain text box.

Markdown to Rich Text

Copy Markdown as real formatting for Google Docs, Gmail, Word and Notes.

Rich Text to Markdown

Paste from Google Docs, Word or a web page and get clean Markdown.

JSON to TypeScript

Generate TypeScript interfaces from a JSON sample, optional fields included.

JSON to Swift

Generate Swift Codable structs from JSON, with CodingKeys for snake_case.

Character Counter

Count characters for X, Instagram, meta tags and SMS, including how many texts a message costs.