Data Formats
CSV / TSV Workbench
Open, filter, sort, and convert large delimited files in a virtualized grid.
- Your draft is kept in this tab's session storage and cleared when the tab closes.
Draft kept in this tab
Your draft is kept in this tab's session storage and cleared when the tab closes. - Processing happens in this page. No application server receives your input.
Runs in your browser
Processing happens in this page. No application server receives your input.
File
Rows
Convert
An export over 16.0 MB refuses. Filter first to make it smaller.
Output
What this tool does
It opens a delimited file and shows it as a scrolling grid. You can filter and sort the rows, then export the current view as JSON, TSV, a Markdown table or SQL INSERT statements. The file is read in a background worker for every file, with a progress bar and a Cancel control, and the page holds only the rows it is showing. Nothing is sent anywhere.
A worked example
The file bond.csv holds:
id,name 007,Bond
It exports as:
- JSON:
[ { "id": "007", "name": "Bond" } ] - TSV:
id name 007 Bond
- Markdown:
| id | name | | --- | --- | | 007 | Bond |
- SQL, with placeholders:
INSERT INTO "bond" ("id", "name") VALUES ($1, $2);and the values[["007","Bond"]]
Limits
| Bound | Value | When it is exceeded |
|---|---|---|
| File bytes | 256.0 MB | The file refuses, before any byte is read. |
| Depth | None | A row is flat, so no nesting exists to bound. |
| Data rows | 1000000 | The file refuses and shows no rows. The header is not a row. |
| Fields per row | 1024 | The file refuses, in the header or in any row. |
| Row bytes | 16.0 MB | The file refuses and names the row, even while a quote is still open. |
| Data cells | 10000000 | The file refuses. The header is not counted. |
| Output bytes | 16.0 MB | An export refuses and keeps the rows. Filter first to make it smaller. |
| Worker time | 30 seconds per task | The task stops and says so. |
| Listed warnings | 1000 | The rest are counted and shown as a number. |
| Rendered name in a message | 500 characters | The name is cut with an ellipsis. |
| Grid cell | 1024 characters | The cell shows an ellipsis. Open the row to read the value. |
| Detail value | 65536 characters | The value is cut, and the cut is stated. |
| Detail total | 1048576 characters per row | Later values are dropped, and their number is stated. |
| Output preview | 65536 characters | The preview is cut and labelled. Copy and Save use the whole text. |
What to know before you rely on it
- A file over a limit refuses and loads no prefix. It shows the limit by name and no rows, so a partial file is never shown as a whole one.
- Filtering and sorting act on the loaded rows, which are every row of the file, because a file loads whole or not at all.
- Infer types is off by default. Infer types turns numbers into numbers (007 becomes 7, 1e5 becomes 100000), true and false in lower or upper case into booleans, and blank cells into null. Timestamps stay text.
- The first row is always the header. The column names are saved in this tab`s session until Clear resets them.
- File contents are not saved. A reload asks for the file again.
- Every CR, CRLF and LF line break, including one inside a quoted field, is read as a single LF.
- Blank lines are skipped and are not counted as rows.
- A row with more fields than the header keeps only the header`s width: its extra fields are not kept, shown or exported, and the row is listed with its count.
- Sorting is by text, by code unit, unless types are inferred, so 10 sorts before 9.
- Auto can pick the wrong delimiter when a comma appears in every row of a file not named .tsv. The chosen delimiter is shown and can be changed with the delimiter buttons.
- A TSV cell holding a comma, semicolon or pipe is quoted, so the file reopens here with the same rows. A tool that reads TSV without quote handling sees those quotes.
- Jump to row counts positions in the current view, so under a filter a position can show another row`s number.
- A slow machine can stop a load at the 30-second limit.
- The file must be UTF-8. A UTF-16 file refuses, and invalid bytes are counted in a warning.
- JSON, Markdown and SQL do not come back into this page. Only TSV reopens to the same rows.
- Exports leave formula-like cells unchanged, so a spreadsheet may evaluate a cell that starts with an equals sign or an at sign.
- A one-column row that is left empty by cutting a long row does not come back when its TSV is reopened, because a blank line is skipped.
- A browser heap smaller than 1 GiB, which is what this tool was measured under, can still lose the tab on the largest files.
SQL export
- parameters is the default. Every cell goes in the values only, and the statements hold placeholders:
$1for Postgres,?for MySQL and SQLite, and@p1for SQL Server. - literals is an explicit choice. Correct literal escaping depends on the dialect and the server's configuration. MySQL treats a backslash as an escape character unless NO_BACKSLASH_ESCAPES is set; standard SQL does not. This tool cannot know which server the output will land in, so it cannot promise the escaping is right.
- Placeholders restart at 1 in each statement, so a driver receives the rows of one statement at a time.
- A batch is 1 to 1000 rows. In parameters mode a statement may bind at most 65535 parameters for Postgres, 65535 for MySQL, 32766 for SQLite and 2100 for SQL Server, and an export over the limit refuses and names the largest batch.
Scope: this covers the page itself. Your browser, operating system, clipboard, downloads, extensions, and crash recovery may keep copies, and a compromised site origin would not be protected.