CSV Sorter

Sort CSV rows by any column, as text or numbers, ascending or descending, keeping the header on top.

How to use CSV Sorter

  1. Open or paste CSV.
  2. Enter the column to sort by and choose text or number mode.
  3. Copy or download the sorted CSV.

Supported features and limitations

Sorting is stable. In number mode, empty or non-numeric cells go last. Text mode uses natural ordering so “item2” comes before “item10”.

Privacy

Everything you type is processed locally in your browser and is not sent to our servers. No account is needed and there is no watermark.

Frequently asked questions

How do I sort by a number column?

Choose “Numbers” so 10 sorts after 9.

Can I sort by two columns?

Not in one step; sort by the secondary column first, then the primary.

Related tools

  • CSV Row Filter - Keep only the CSV rows where a chosen column contains, equals, starts with or compares to a value.
  • CSV Viewer - Open and read a CSV, TSV or delimited text file as a table, with row and column counts and delimiter auto-detection.
  • CSV Duplicate Row Remover - Remove duplicate rows from a CSV, comparing whole rows or only selected columns.
  • Sort Lines Alphabetically - Sort lines A–Z, Z–A, by length or numerically, reverse their order or shuffle them randomly.
  • Text Case Converter - UPPERCASE, lowercase, Title Case and Sentence case.
  • Word & Character Counter - Count words, characters, lines and reading time.

More Text & Document Tools · All free tools