Input Text
Sorted text will appear here

How It Works

1

Enter Your Text

Paste or type the text you want to sort. Upload files or drag and drop.

2

Choose Sort Mode

Select alphabetical, numeric, natural, length, or custom sorting options.

3

Get Sorted Results

See results instantly. Copy to clipboard or download the sorted text.

Key Features

100% Private

All processing happens in your browser. Your text never leaves your device.

Multiple Sort Modes

Alphabetical, numeric, natural, length, reverse, random shuffle, and more.

Natural Sorting

Smart sorting that handles file1, file2, file10 correctly, not file1, file10, file2.

Column Sorting

Sort CSV, TSV, or delimited data by any column. Keep headers fixed.

Regex Filtering

Filter lines before sorting using regular expressions. Include or exclude matching patterns.

Multiple Export Formats

Export as plain text, JSON array, numbered list, Markdown, or HTML. Perfect for any workflow.

Block/Paragraph Sort

Sort entire paragraphs or text blocks separated by blank lines, not just individual lines.

Drag & Drop Upload

Simply drag and drop files directly onto the editor. Supports TXT, CSV, TSV, MD, and more.

Frequently Asked Questions

Is my text data safe?
Yes, absolutely. All processing happens entirely in your browser using JavaScript. Your text is never uploaded to any server.
What is natural sorting?
Natural sorting handles numbers within text intelligently. For example, it sorts "file1, file2, file10" correctly instead of "file1, file10, file2" (which is what alphabetical sorting would produce).
Can I sort CSV files?
Yes! Enable column mode and specify which column to sort by. You can use comma, tab, semicolon, or custom delimiters. The header row can be kept fixed.
How does the regex filter work?
The regex filter lets you include or exclude lines matching a pattern before sorting. For example, use '^#' to match comment lines, or '\d+' to match lines containing numbers.
What is block/paragraph sorting?
Block sorting treats groups of lines separated by blank lines as single units. Useful for sorting multi-line entries like addresses, code blocks, or paragraphs while keeping them intact.
What export formats are available?
You can export as plain text, JSON array, numbered list (1. 2. 3.), Markdown list (- bullets), or HTML unordered list. This makes it easy to use sorted data in any application.
Are there any limits on text size?
There are no artificial limits. You can process as much text as your browser can handle. For very large files, performance depends on your device.

Who Uses This Tool?

Developers

Sort imports, dependencies, configuration files, log entries, and code snippets.

Data Analysts

Organize CSV data, sort lists, prepare data for import, clean up datasets.

Writers & Editors

Alphabetize glossaries, sort bibliographies, organize lists and references.

Business Users

Sort contact lists, organize inventory, arrange meeting agendas, order tasks.

About Sort Lines

Sort Lines is a powerful, privacy-first text sorting tool that runs entirely in your browser.

Smart Algorithms

Multiple sorting algorithms including natural sort for human-friendly ordering.

Privacy First

All processing happens locally. Your data never leaves your device.

Fast & Unlimited

No file size limits. Process large files with optimized performance.