Skip to content

Text Manipulation Suite · free · no sign-up

Sort Text by Length

Sort lines by how long they are.

How it works Report a problem

Sort Text by Length

Organize lines based on character count

0
0
0
Input Lines

About the Sort Text by Length

Sort lines by how long they are.

How to use the Sort Text by Length

  1. Paste your text into the box, click Sample for an example, or load a text file with File.
  2. Choose Short β†’ Long or Long β†’ Short.
  3. Press Sort by Length.
  4. Use Copy or .TXT to save the result.

Worked example

Sorted short to long, the lines banana, fig, apple become fig, apple, banana.

Tips

  • Turn on Trim lines so leading spaces do not affect the length.

Frequently asked questions

What does length mean here?
The number of characters in each line.