CSV Viewer
Open, view, sort, filter, and analyze CSV files directly in your browser. No upload to servers. Supports TSV, semicolon, and pipe delimiters.
About
Misread CSV data costs hours of debugging and can propagate errors through entire data pipelines. A raw text editor cannot distinguish between a comma inside a quoted field and a delimiter comma. This tool implements RFC 4180 parsing with full support for quoted fields, embedded newlines, and escaped double-quotes (""). It auto-detects delimiters across comma, semicolon (;), tab (\t), and pipe (|) by frequency analysis of the first 10 lines. All processing runs locally in your browser. No data leaves your machine.
Sorting uses natural order comparison so that item2 sorts before item10. Column statistics compute sum, avg, min, max for numeric columns and unique value counts for text. Limitation: files exceeding ~50 MB may cause browser memory pressure on low-end devices. For datasets beyond 100,000 rows, a database tool is more appropriate.
Formulas
Delimiter auto-detection scores each candidate by occurrence frequency across the first 10 rows:
where d is the candidate delimiter, n is the number of sample rows (up to 10), and the delimiter with the highest consistent score and lowest variance across rows wins. Consistency is measured by standard deviation of per-row counts:
where ci is the count of delimiter d in row i, and is the mean count. The delimiter with the lowest ฯ and score โฅ 1 is selected. Natural sort comparison splits strings into numeric and alphabetic chunks, comparing numeric chunks by value and alphabetic chunks lexicographically.
Reference Data
| Delimiter | Symbol | Common File Extension | Typical Use Case | RFC Standard |
|---|---|---|---|---|
| Comma | , | .csv | General data exchange | RFC 4180 |
| Semicolon | ; | .csv | European locale (comma = decimal) | No formal RFC |
| Tab | \t | .tsv / .tab | Bioinformatics, spreadsheets | IANA text/tab-separated-values |
| Pipe | | | .csv / .txt | Legacy mainframe exports | No formal RFC |
| Double-quote escape | "" | - | Embedding quotes in fields | RFC 4180 ยง2.7 |
| CRLF line ending | \r\n | - | Windows-origin files | RFC 4180 ยง2.1 |
| LF line ending | \n | - | Unix/macOS-origin files | De facto standard |
| BOM marker | U+FEFF | - | UTF-8 with BOM (Excel export) | Unicode ยง23.8 |
| Header row | - | - | First row as column names | RFC 4180 ยง2.3 (optional) |
| Empty field | ,, | - | Missing / null data | RFC 4180 ยง2.6 |
| Newline in field | "a\nb" | - | Multi-line cell content | RFC 4180 ยง2.6 |
| UTF-8 encoding | - | - | International characters | RFC 3629 |