Sort Lines

Put a list in order without moving the words within each line.

Up to 200,000 UTF-16 units per input. Output limit: 4,000,000 characters.

Download text

Your text is processed in your browser and is not uploaded to ToolPixels. This tool does not save your text.

How to use it

  1. Paste or type your text, or load the example.
  2. Choose any options, then select Sort lines.
  3. Review the result, then copy it or download a text file.

Sorting rules

Alphabetic sorting uses English collation; punctuation and accents follow your browser rules. Length counts Unicode code points including spaces. Numeric mode requires one finite decimal or scientific-notation number per line, with no blank lines or thousands separators. It uses JavaScript number precision, so values beyond about 15 significant digits may compare as equal. Ties retain their input order.

Line-based editing normalizes Windows and older Mac line endings to LF. Keep your original if line-ending style matters.

Related text tools