Skip to content
TextArray
100% local

Sort paragraphs

Sort whole paragraphs alphabetically, by length or in reverse order.

Input

Sort paragraphs

Paste text made of paragraphs separated by blank lines and this tool reorders the whole blocks: alphabetically A to Z or Z to A, from the shortest to the longest paragraph (or the other way round), or simply in reverse. Lines inside a paragraph stay together and untouched — only the order of the blocks changes. That makes it ideal for glossaries and definition lists, FAQ entries, product descriptions, contact blocks, bibliography entries or any notes you keep as separate chunks of text.

Sorting is language-aware. The comparison uses proper collation for the language of the page you are on, so accented letters land where the alphabet of that language expects them — Slovak sorts "ch" after "h", German treats "ä" sensibly, and so on. Turn on case-insensitive matching to mix "Apple" and "apple" as equals, and enable "Ignore diacritics" when "e" and "é" should count as the same letter. Length sorting counts real characters, so an emoji counts as one, not two.

Anything that separates paragraphs is normalized on the way out: runs of several blank lines collapse into a single blank line, whitespace-only lines count as separators, and Windows (CRLF) and Unix (LF) line endings are treated the same. The tally under the output shows how many paragraphs were sorted, so a copy-paste mistake is easy to spot.

Everything runs in your browser — the text is never uploaded, so drafts, contracts and internal documentation are safe here. Copy the result or download it as a .txt file when you are done.

FAQ

What counts as a paragraph?
Any block of consecutive non-empty lines. Paragraphs are separated by one or more blank lines; lines containing only spaces or tabs count as blank.
Does sorting break up multi-line paragraphs?
No. All lines of a paragraph move together as one block, and the line breaks inside it are preserved exactly.
How are accented letters sorted?
With real language collation matching the page language, so č, ä or ő sort where that alphabet puts them. Enable "Ignore diacritics" to treat accented and plain letters as equal instead.
Is my text uploaded anywhere?
No. The tool runs entirely in your browser and your text never leaves your device.