CSV Sorter

Sort CSV rows by one or two columns as text, numbers or dates, ascending or descending.

Runs in your browser Free
    Or paste your data

    Processed locally in your browser.

    Sort CSV files correctly

    Sort a customer list by city and name, a sales report by date or a product list by price. Rows that tie on the first column can be sorted by a second.

    Smart sorting

    • Automatic mode detects numbers and dates in each column
    • Natural sorting: 'Product 2' comes before 'Product 10'
    • Empty cells always go last
    • Equal rows keep their original order (stable sort)

    Your file stays safe

    Sorting happens in your browser; your original file isn't changed and you download a sorted copy. Data is never sent to a server.

    How to use CSV Sorter

    1. Upload your CSV file.
    2. Choose the sort column and optionally a second one.
    3. Set the data type and direction.
    4. Download the sorted CSV.

    Why use this tool?

    Gives correct results without the date and number format problems of spreadsheet sorting.

    FAQ

    Does sorting change my file?

    No. The original file stays as it is; you download a sorted copy.

    Are accented letters sorted correctly?

    Text sorting is language-aware, so accented letters land in the right places.

    Is the header row sorted too?

    No, the first row is kept in place as the header.

    Related tools