← Tools
Utilities

CSV File Viewer

Upload or paste a CSV, TSV, or LOG file. Search, filter, and sort data in a clean table. Nothing leaves your browser.

📄Drop a CSV file here or click to uploadOr paste your data below

What is CSV viewing?

A CSV viewer parses delimited text into columns and rows so you can scan, filter, and sort without opening a spreadsheet. Parsing here uses the same RFC 4180-style quoted-field rules as CSV to JSON: doubled quotes inside quoted fields, and quoted commas that must not split a column. See the RFC 4180.

CSV Viewer is a table, not a converter. Drop a .csv, .tsv, .log, or .txt file, click Upload, or paste text. FileReader reads the file in the page; the bytes never go to a server. On load, the delimiter is guessed by counting comma, tab, semicolon, and pipe in the first 1,000 characters — you can override it in the sidebar. The first row is always the header. Search filters rows if any cell contains the query (case-insensitive). Click a header to sort ascending, again for descending, a third time to clear. Numeric-looking cells sort numerically; otherwise localeCompare is used. Only 100 rows render at a time, with a pager for the rest, so a multi-thousand-row export stays usable. This is not an editor: you cannot change cells. Convert the same text with CSV to JSON, or export JSON with JSON to CSV, when you need another format.

When to use this tool

  • Glance at an export — Open a CSV from a vendor or a database dump without launching Excel.
  • Find a row — Type part of an email or id in Search. Matching is substring across every column.
  • Sort a metric — Click a numeric column to order 3 before 11 (numeric compare), not "11" before "3".
  • Then convert — When the table looks right, paste the same text into CSV to JSON for an array of objects. CSV to JSON

How to use the CSV Viewer

Step 1

Load a file or paste

Drop a file on the panel, click to upload, or paste into the box. Delimiter detection runs on the first 1,000 characters. Search, page, and sort reset on each new load.

Step 2

Confirm the delimiter

If columns look merged, pick Comma, Tab, Semicolon, or Pipe in the sidebar. Detection is a simple count, so a file with many commas in prose can fool it.

Step 3

Search and sort

Search filters the row list and jumps back to page 1. Header clicks cycle asc → desc → unsorted. The info block shows column count, total rows, and rows after the filter.

Step 4

Page through large files

Each page shows 100 body rows. Use the pager when the filtered set is longer than that. Clear unloads the table.

Worked examples

Two-column paste with a header

Input
name,qty
Ada,3
Bob,11
Output
headers: name, qty
row 1: Ada | 3
row 2: Bob | 11

The first line is the header row. It is not counted in “rows total.”

Quoted comma stays one cell

Input
name,city
"Smith, John","Portland, OR"
Output
headers: name, city
row 1: Smith, John | Portland, OR

Numeric sort on qty

Input
name,qty
Bob,11
Ada,3
Output
click qty (asc): Ada 3, then Bob 11
click qty (desc): Bob 11, then Ada 3

A string sort would have put 11 before 3. The viewer uses numeric compare when both cells are numbers.

Tips

  • Quoted fields follow RFC 4180, including "" for a literal quote.
  • Filter text is case-insensitive and matches any column.
  • Sorting a third time on the same header clears the sort rather than bouncing forever.
  • Very large pastes are limited by browser memory; this is not a streaming database.

Frequently Asked Questions

Is the CSV file uploaded?

No. Files are read with the FileReader API in your browser. Paste is just textarea text. Nothing is posted to a server.

How is the delimiter chosen?

On upload or paste, the tool counts comma, tab, semicolon, and pipe in the first 1,000 characters and picks the winner. You can override it afterward. This is different from CSV to JSON, which never auto-detects.

Can I edit cells?

No. This is a viewer. To transform the data, convert with CSV to JSON, edit the JSON, then JSON to CSV.

Why do I only see 100 rows?

The table pages in chunks of 100 so large files stay responsive. Use the pager for later rows, or filter with Search to shrink the set.

Is the first row always a header?

Yes. There is no “no header” toggle here. Headerless files still use row 1 as column titles (or “col N” if a cell is empty).