Data Formats

CSV / TSV Workbench

Open, filter, sort, and convert large delimited files in a virtualized grid.

  • Draft kept in this tabYour draft is kept in this tab's session storage and cleared when the tab closes.
  • Runs in your browserProcessing happens in this page. No application server receives your input.
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.

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

The bounds of this tool
BoundValueWhen it is exceeded
File bytes256.0 MBThe file refuses, before any byte is read.
DepthNoneA row is flat, so no nesting exists to bound.
Data rows1000000The file refuses and shows no rows. The header is not a row.
Fields per row1024The file refuses, in the header or in any row.
Row bytes16.0 MBThe file refuses and names the row, even while a quote is still open.
Data cells10000000The file refuses. The header is not counted.
Output bytes16.0 MBAn export refuses and keeps the rows. Filter first to make it smaller.
Worker time30 seconds per taskThe task stops and says so.
Listed warnings1000The rest are counted and shown as a number.
Rendered name in a message500 charactersThe name is cut with an ellipsis.
Grid cell1024 charactersThe cell shows an ellipsis. Open the row to read the value.
Detail value65536 charactersThe value is cut, and the cut is stated.
Detail total1048576 characters per rowLater values are dropped, and their number is stated.
Output preview65536 charactersThe 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: $1 for Postgres, ? for MySQL and SQLite, and @p1 for 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.