What you can do with CSV Toolkit
- Convert csv to json
- Transpose csv rows
How this data and SQL utility works
Convert delimited CSV text to JSON, convert a JSON object array to CSV, or transpose CSV rows and columns.
Example input
name,age
Ada,37
Lin,28Example output
[{"name":"Ada","age":"37"},{"name":"Lin","age":"28"}]Practical workflow
- Choose CSV to JSON, JSON to CSV, or Transpose CSV from the Mode menu.
- Select comma, semicolon, tab, or pipe as the delimiter for the input.
- Enter CSV or JSON text and select Convert; inspect the output and copy it if it matches your intended structure.
Common use cases
- Turning a small spreadsheet-style CSV into a JSON array for an API fixture.
- Exporting an array of JSON records as CSV for spreadsheet use.
- Swapping rows and columns in compact tabular data.
Important notes and limitations
- CSV to JSON treats the first row as column names. JSON to CSV expects a top-level array of objects with compatible fields.
- CSV to JSON preserves every cell as a string because CSV does not define data types; values such as 00123 and true remain unchanged. Transpose also preserves the original cell text.
- This page accepts pasted text and offers three conversions; it does not provide file upload, table editing, search, filtering, or sorting.
- Each conversion is limited to 5 MiB of UTF-8 input and output, 10,000 data rows, 100 columns, and 250,000 cells. Oversized data is rejected with a recoverable error before a result is shown.
Terminal CSV processing & query tools
Query CSV with SQL using xsv or duckdb
duckdb -c "SELECT country, count(*) FROM 'customers.csv' GROUP BY country ORDER BY 2 DESC LIMIT 5"Executes vectorized SQL queries directly against large CSV files without loading them into a database.
Validate and format CSV with xsv CLI
xsv stats data.csv | xsv tableComputes data types, null counts, min/max values, and lengths across all CSV columns.
Delimiter collision & quote escaping troubleshooting
Field count mismatch on row ... (CSV parsing error)
Cause: Cell containing commas (e.g. addresses) was not enclosed in double quotes, splitting into extra columns.
Solution: Follow RFC 4180: wrap fields containing commas or newlines in double quotes, and escape internal quotes as '""'.
UTF-8 BOM (Byte Order Mark) corrupting first column header
Cause: Excel saves CSVs with EF BB BF header, making the first column name appear as '\ufeffid' instead of 'id'.
Solution: Strip the BOM using 'sed -i '1s/^\xEF\xBB\xBF//' file.csv' or configure the parser to ignore leading BOM.
Continue your workflow
- CSV to SQL — convert CSV datasets into SQL tables and INSERT statements.
- Format Converter — convert CSV files to JSON, YAML, or XML.
- Markdown Table Generator — Convert tabular CSV data into clean Markdown table markup.
Frequently asked questions
Which CSV delimiters can I select?
Choose comma, semicolon, tab, or pipe from the Delimiter menu before converting the input text.
How does CSV to JSON choose object property names?
The first row becomes the property names and each following row becomes one JSON object.
What JSON input can be converted to CSV?
Use a top-level array of objects with matching fields. A single object or an array of primitive values does not represent CSV rows for this converter.
How large can a conversion be?
Input and output may each be up to 5 MiB, with at most 10,000 data rows, 100 columns, and 250,000 cells. Split larger datasets into smaller conversions.
Focused guides for this tool
- CSV to JSON Converter — Transform CSV tables into arrays of JSON objects.