TextStyle4

Sort Lines

Sort lines A–Z or Z–A, with optional natural number ordering.

Example

Input
pear
apple
fig
banana
Output
apple
banana
fig
pear

How to use

  1. Type or paste your text into the box.
  2. Adjust the options if the tool has any – the result updates instantly.
  3. Press Copy result, or “Use result as input” to chain another step.

How it works

Uses locale-aware comparison, so accented letters sort sensibly. Natural ordering puts item 2 before item 10.

Frequently asked questions

How do I sort numbers?

Tick “Natural number order”.

Is the text I type sent to a server?

No. Conversion runs in your browser and your text is not uploaded.

Related tools

Remove Duplicate Lines

Delete repeated lines and keep the first occurrence of each.

Uppercase Converter

Convert any text to UPPERCASE instantly.

Lowercase Converter

Convert text to lowercase in one click.

Title Case Converter

Capitalise the first letter of every word.