Longest → Shortest

Sort your lines from longest to shortest.

  • Free, no sign-up
  • Runs in your browser

Drop your file here, or

TXT, CSV, JSON, Markdown, HTML, XML, DOCX, PDF, RTF and more

Type, paste with Ctrl V, or drop a file

Options

Duplicates

or press Ctrl EnterRuns in your browser

Result

Your sorted text will appear here.

Add your text, then press Sort lines.

How to use Longest → Shortest

  1. Paste your text into the input box, or drop a file onto it.
  2. Choose your options.
  3. Press Sort lines.
  4. Copy the result or download it in the format you need.

Example

Before
kiwi
strawberry
apple
After
strawberry
apple
kiwi

Longest → shortest.

Good for

  • Finding titles that are too long for a field
  • Reviewing the most detailed answers first

What happens to your text

Your text is processed in your browser and kept only in this tab’s memory. It is not uploaded, saved or used for analytics.

Questions about Longest → Shortest

More answers in the TextVix FAQ.

How is length measured?

In visible characters, so an emoji or an accented letter counts as one.

Is my text uploaded anywhere?

No. This tool runs entirely in your browser. Your text and files are never sent to a server or stored.