CSV Viewer
Open a CSV or TSV in your browser. Sort, filter and profile every column, then export to JSON, a Markdown table or SQL INSERT statements.
Runs entirely in your browser — nothing is uploadedCSV input
Drop a file or click to browse
.csv, .tsv or .txt — up to 64 MBOverview
Paste a CSV or drop a file. Nothing is uploaded — the parse happens here, in this tab.
About the CSV Viewer
Paste a CSV or drop a file and you get a real table. Click a header to sort, type in the search box to filter across every column at once, or open the per-column filter row and write >1000, =paid, !refunded, = for empty cells or ! for non-empty ones against a single column. Under each header sits the inferred type, the number of empty cells and the number of distinct values, so the shape of an unfamiliar export is visible in a couple of seconds rather than after a round trip through a notebook. Whatever your filter and sort currently select can be exported — in that order, with that filter applied — as JSON, a Markdown table, SQL INSERT statements, or back out as CSV.
The non-obvious way CSV tools destroy data is type inference. Number("007") is 7, Number("1.50") is 1.5, Number("+44") is 44, and any integer past 2^53 — order ids, Snowflake keys, account numbers — quietly loses its last digits. This viewer types a column as numeric only when every value in it survives String(Number(v)) unchanged. A column containing a single zero-padded code stays text; a numeric column whose values would not round-trip is flagged in the header and exported quoted, so 1.50 comes back as 1.50 rather than 1.5. Dates get the same caution: only unambiguous ISO-8601 is recognised, because 03/04/2024 is the 3rd of April in London and the 4th of March in New York, and a wrong guess silently reorders a sorted column.
Parsing is RFC 4180 by way of papaparse, so a quoted field holding commas, doubled quotes, or a line break in the middle of it stays one cell instead of tearing the row in half — the failure mode of every split-on-comma script, and the reason row counts disagree between tools. Delimiters are auto-detected, so the semicolon files Excel writes across most of Europe open as readily as comma files, and you can force a delimiter when detection is wrong. Duplicate column names are kept apart as id and id (2) rather than collapsing onto one key, which is how a header-keyed parser silently drops a whole column. If a file was saved as Windows-1252 instead of UTF-8, the replacement character � is detected and the page tells you to switch encodings, instead of showing mojibake and letting you conclude the data is corrupt.
Large files are read in 1 MB chunks with the main thread handed back between each one, so the page keeps painting and a progress bar moves rather than the tab going white. The practical ceiling is 200,000 rows or 3 million cells, whichever arrives first, from a file up to 64 MB — and when a file exceeds that, the read stops and the page says so in as many words, because a truncated table presented as complete is worse than no table at all. Ragged rows get the same treatment: rows shorter than the header are padded, rows with extra fields get extra columns, and both are counted in a warning, so a malformed line costs you a notice rather than a column of data.
Everything runs inside your browser using standard web APIs. Your data is never uploaded, never stored on a server, and never leaves your device — you can confirm that by opening your browser devtools Network tab, or by switching off your Wi-Fi and using the tool offline.
Frequently asked questions
Why is my ID column shown as text instead of a number?
Because reading it as a number would change it. Codes like 007, 0123 and +44 all come back different after a trip through a JavaScript number, and integers beyond 2^53 lose their final digits. A column is therefore typed as numeric only when every value in it round-trips exactly. Sorting still works numerically where it makes sense; the column is simply exported quoted so the values survive intact.
Does it handle quoted fields that contain commas or line breaks?
Yes. Parsing is RFC 4180 compliant, so a field wrapped in quotes keeps its commas, its doubled quotes and any newlines inside it as a single cell. That is exactly the case naive split-on-comma code gets wrong, and it is usually why two tools disagree about how many rows a file has.
My file shows question marks or mangled accented characters. How do I fix it?
That is an encoding mismatch rather than corruption. Files saved by Excel on Windows are commonly Windows-1252 rather than UTF-8. Choose Windows-1252 in the Encoding menu and the accents come back. The tool watches for the Unicode replacement character and points this out instead of letting you assume the data is broken. If the text is full of NUL bytes instead, the file is probably UTF-16 — try UTF-16 LE.
How large a file can it open?
Up to 64 MB, and up to 200,000 rows or 3 million cells, whichever limit is reached first. Parsing happens in chunks so the page stays responsive and shows progress while it works. If a file goes past a limit, the read stops early and the page states exactly how many rows were loaded, and every count, type and export below then describes only those rows.
Why is a date like 03/04/2024 treated as text?
Because that string means the 3rd of April in most of the world and the 4th of March in the United States, and nothing in the file says which. Guessing would put a sorted column silently in the wrong order. Only unambiguous ISO-8601 values such as 2024-03-04 or 2024-03-04T09:30:00Z are recognised as dates; everything else stays text and still sorts and filters sensibly.
Does the export include only the rows I filtered?
Yes. The JSON, Markdown, SQL and CSV output all use the rows your current search, column filters and sort select, in that order. The box on screen previews the first 200 rows so it stays fast; Copy all and Download build the complete set, up to 50,000 rows per export.
Are the generated SQL INSERT statements safe to run?
Treat them as a starting point. String values are quoted with internal quotes doubled, identifiers are quoted, a schema-qualified name is quoted per part, NULL is kept distinct from an empty string, and statements are batched so no VALUES list exceeds the 1000-row limit SQL Server enforces. But column types come from your sample data, not from a real schema, so check the statement against your table first. There is also a MySQL dialect option, because MySQL treats a backslash as an escape inside string literals unless NO_BACKSLASH_ESCAPES is set, which changes the meaning of any Windows path in your data.