CSV Viewer & Sorter
View a CSV file as a sortable HTML table in your browser. Paste or upload — nothing is sent anywhere.
Built with PapaParse (MIT), self-hosted.
How to use this tool
- Upload a .csv file or paste CSV text.
- Click Load Table.
- Click any column header to sort.
View a CSV file as a sortable HTML table in your browser. Paste or upload — nothing is sent anywhere.
How it works
The CSV Viewer lets you inspect any comma-separated values file as a clean, sortable HTML table without sending your data to a server. Paste raw CSV text into the input area or upload a file directly from your device.
Once loaded, every column header becomes a clickable sort button. Click once to sort ascending, click again to sort descending. This makes it easy to rank rows by a number column, alphabetize names, or find duplicate values at a glance.
Because everything runs in your browser, the tool works offline and is safe for sensitive spreadsheets such as payroll exports or customer lists that you would rather not upload to a cloud service.
The viewer handles quoted fields and commas inside values correctly, so a field like "Smith, John" is kept as one cell rather than split incorrectly.
Worked example
Sort a sales export by revenue
- Open your spreadsheet app and copy the CSV content (Ctrl+A, Ctrl+C).
- Paste into the CSV Viewer input area and click Load.
- The table appears with one row per record.
- Click the Revenue column header once to sort lowest-to-highest, then again for highest-to-lowest.
- Scan the top rows to identify your best-performing products.
A sorted HTML table showing sales records ranked by revenue, with no file uploaded anywhere.
Common mistakes to avoid
- Pasting HTML exported from Excel instead of the raw CSV text — always use File > Save As > CSV in Excel first.
- Forgetting that the first row is treated as headers; if your file has no header row, the first data row will be used as column names.
- Assuming sort order is preserved when you copy the table out — re-sort in your spreadsheet application if you need a permanently sorted file.
Key terms
- CSV
- Comma-Separated Values — a plain-text format where each line is a row and each value is separated by a comma.
- Quoted field
- A CSV value wrapped in double quotes, allowing it to contain commas or line breaks without confusing parsers.
Frequently asked questions
- How large a CSV can I view?
- Tens of thousands of rows work fine — PapaParse handles large files efficiently.