CSV Row Sorter
Put CSV rows in order by one or more columns while keeping each row together.
Sort a CSV table
- Paste text or open a UTF-8 file. Choose its delimiter and indicate whether it has a header.
- Read the columns and choose how to compare each sort key. Add another column to break ties.
- Sort rows, review the result and download the prepared CSV.
Understand the row order
The first key determines the main order. Later keys resolve ties.
Equal values across all keys keep their original row order.
Choose a decimal mark for numeric comparison. Unreadable numbers and blank cells follow valid numbers.
Sort an export
Sort a report by department, then by cost within each department.
If two columns have the same name, use their position to pick the one you want.
Input and output
Use a rectangular CSV table with up to three sort keys and a file size of up to 5 MiB.
Results are saved as comma-delimited CSV. Text comparison uses character code-point order.
Local sorting
Your browser sorts the table on your device. Reloading clears the workspace.
CSV sorting questions
Sources
How CSV records are written and how spreadsheets interpret the first line.
Related tools
JSON to CSV Converter
Convert flat JSON records to delimited text with first-seen columns, original number spellings and explicit empty-value rules.
Open tool — JSON to CSV ConverterCSV Column Statistics
Find the mean, median, sum and range of a CSV column and see which cells were skipped.
Open tool — CSV Column StatisticsCSV Transpose
Swap rows and columns in a CSV table and download the flipped layout.
Open tool — CSV TransposeCSV Row Filter
Keep or exclude CSV rows with text conditions on specific columns.
Open tool — CSV Row FilterCSV Column Editor
Select, reorder and rename columns from a local CSV table.
Open tool — CSV Column EditorCSV Delimiter Converter
Convert CSV separators, preview real columns and spot import problems. Works locally with CSV, TSV and text; values remain unchanged.
Open tool — CSV Delimiter ConverterCompare Two CSV Files
Match rows by a key column and find added, removed and changed records.
Open tool — Compare Two CSV FilesCSV Duplicate Finder & Remover
Find exact duplicate CSV rows or repeated IDs. Review conflicting values, keep original data and download retained, removed and unresolved records.
Open tool — CSV Duplicate Finder & RemoverCSV Merger
Combine rows from several CSV files by exact column name. Preview alignment and download CSV with a merge report.
Open tool — CSV MergerCSV to JSON Converter
Convert CSV text or UTF-8 files to JSON objects or arrays, keeping cells as strings without guessing data types.
Open tool — CSV to JSON ConverterCSV Splitter
Split a CSV by rows or exact file size. Keep headers and download each part.
Open tool — CSV Splitter