CSVFormat Portal
Home/Tools/Sort CSV rows

Sort CSV rows

Stops “1,200” sorting before “320”. Turn on numeric comparison and values sort by magnitude; dates sort chronologically. Add a second key to break ties.

No uploadNo sign-upNumbers and dates sort correctly
Process your CSV Runs on your device
Drop a CSV here
or click to choose · Shift_JIS / UTF-8 detected

How to use

  1. Drop a CSV or paste the table.
  2. Pick the column and direction (optionally a second key).
  3. Press Run, check the order, then download.

What this tool does not do

Japanese collation follows the browser, so kana and voicing marks can order slightly differently across environments. Values that are not pure numbers (“approx. 1,200”) are compared as text.

FAQ

“1,200” sorts before “320”
Turn on numeric comparison. Thousands separators and surrounding spaces are ignored so the values compare by magnitude.
What is the second key for?
It orders rows that tie on the first column — for example, group by department and then sort by name inside each group.
How are dates handled?
YYYY-MM-DD, 2026/1/5 and 2026年1月5日 are all recognised as dates and sorted chronologically.
Where do empty cells go?
They collect at the end in both directions, so you never get a wall of blanks at the top.
Is my file uploaded?
No — sorting happens entirely in your browser.

Related tools