Skip to content

CSV Viewer

Open a CSV or TSV file, or paste the data, to see it as a table you can sort and search. The delimiter is detected automatically and quoted fields with commas or line breaks are handled.

Data

Last reviewed:

What is CSV?

CSV (comma-separated values) is the most common format for exchanging tables: database exports, spreadsheet downloads, analytics reports, bank statements and bulk imports all use it. Each line is a record and fields are separated by a delimiter, usually a comma. A field that contains the delimiter, a double quote or a line break must be wrapped in double quotes, and a quote inside such a field is written twice. So "Katherine ""Kay"" Johnson" is the value Katherine "Kay" Johnson. These rules were documented in RFC 4180 in 2005, long after CSV was in wide use, so not every program follows them.

The format looks simple, which is the problem. Splitting each line on commas breaks as soon as a name contains a comma or an address contains a line break. Delimiters vary by region: Excel in many European locales writes semicolons, because the comma is the decimal separator there. Files may start with a byte order mark, use Windows line endings, or have rows with missing fields. Opening a CSV in a spreadsheet can also alter it silently, for example by turning 00123 into 123 or long numeric IDs into scientific notation.

A CSV viewer parses the file properly and shows it as a table, without changing anything, so you can see what the data actually contains. This viewer detects the delimiter, handles quoted fields, escaped quotes and line breaks inside quotes, and lets you sort and search the rows.

How to use this tool

  1. Click Open file… to load a .csv, .tsv or .txt file, paste data into the box, or click Paste. Sample loads a small customer export with tricky quoting.
  2. Leave Detect delimiter selected, or pick Comma, Semicolon, Tab or Pipe yourself if detection guesses wrong.
  3. Untick First row is a header if the file has no header row. Columns are then named Column 1, Column 2 and so on.
  4. Check the status line: the number of rows and columns, the delimiter used, the file size, and a warning if some rows have a different number of fields.
  5. Click a column header to sort by it. Click again to reverse the order. Columns that contain only numbers sort numerically; others sort naturally, so item2 comes before item10.
  6. Type in Search all cells to filter rows. Matches are highlighted, and the count of matching rows is shown. The # column keeps each row's original position.

Examples

Quotes, commas and line breaks inside fields

name,comment
"Kay ""K"" Johnson","Line one
line two"
Bob,plain

The table has two rows. The first has the name Kay "K" Johnson and a comment containing a line break. A naive split on newlines and commas would produce four broken rows.

A semicolon-separated European export

id;name;amount
1;Müller;1.234,56
2;"Smith; Jr.";99,00

The delimiter is detected as a semicolon, because it splits every line into the same three columns. Commas in 1.234,56 stay inside the amount field, and the quoted Smith; Jr. stays in one cell. The amount column is sorted as text, not as numbers, because 1.234,56 uses a decimal comma.

The sample file

The sample has 10 customer rows and 7 columns. It includes "Linus, T." (a comma inside quotes), "Katherine ""Kay"" Johnson" (escaped quotes) and a plan value split across two lines. Sorting the mrr column puts 0 first and 1990.00 last, because every value in that column is numeric.

Common errors and how to fix them

  • Everything is in one column. The delimiter was not detected, often because the file has only one line or an unusual separator. Choose the delimiter manually.
  • Status warns that some rows have a different number of columns. A row has an extra delimiter, a missing field, or an unquoted value containing the delimiter. Sort or search to find it, then fix the source or quote the value.
  • Rows merge together after a certain point. A field opens a quote that is never closed, so everything after it is read as one long value. Find the row where the problem starts and close or escape the quote ("").
  • Quoted values split at commas. A space between the delimiter and the opening quote, as in 1, "x, y", means the quote is not at the start of the field, so RFC 4180 parsers treat it as a literal character. Remove the space.
  • Strange characters such as é instead of é. The file is not UTF-8, commonly Windows-1252 from older Excel versions. Re-save it as "CSV UTF-8", or convert it with iconv.
  • Numbers sorted alphabetically. A column with any non-numeric value, including currency symbols, thousands separators or N/A, is sorted as text.

When developers use this

  • Checking a database or analytics export before importing it elsewhere, without Excel changing leading zeros or long IDs.
  • Debugging a bulk import that fails on "row 4,512" by finding that row and its column count.
  • Reviewing log or test output that a script wrote as CSV or TSV.
  • Searching a customer or product list for a specific record during support or incident work.
  • Verifying that a CSV generated by your own code quotes commas, quotes and line breaks correctly.

Privacy and how it works

Files are read with your browser's File API and parsed in JavaScript inside the tab. Nothing is uploaded, which matters because CSV exports are often full of personal data such as names, emails, addresses and order histories. You can inspect a production export without copying it to a third-party service.

Limitations

  • The table shows up to 2,000 rows at once. Search narrows the rows, and sorting and searching always cover the full file. Very large files, with hundreds of megabytes, may be slow or fail to load in the browser.
  • Files must be text in UTF-8 (or plain ASCII). Excel .xlsx files are not supported; export them to CSV first.
  • The viewer is read-only. Cells cannot be edited and the table cannot be exported.

FAQ

How is the delimiter detected?

The tool tries comma, semicolon, tab and pipe on the first lines of the file. It picks the one that splits most rows into the same number of columns, preferring more columns.

Does it handle line breaks inside a field?

Yes. A line break inside a quoted field is part of the value, as RFC 4180 specifies, and the row stays intact.

What about the byte order mark at the start of Excel files?

A UTF-8 byte order mark is removed before parsing, so the first header is not prefixed with an invisible character. That is a common cause of "column not found" errors in other tools.

Can I open TSV files?

Yes. Tab-separated files are detected automatically, and you can also select Tab as the delimiter.

Why do some numbers sort as text?

A column sorts numerically only if every non-empty value is a plain number. Values like $49, 1,200 or 1.234,56 make the column sort as text, using natural order.

Is my file uploaded?

No. The file is read and parsed locally in your browser, and closing the tab discards it.

Why does Excel show my file differently?

Excel applies its own type conversion on opening: it removes leading zeros, converts long numbers to scientific notation and interprets some values as dates. This viewer shows the raw text of every cell exactly as it is in the file.

Guides