CSV to JSON converter
Convert CSV or TSV with a header to a JSON object array without guessing cell types.
Enter data
CSV or TSV text with a unique nonempty header and a selected delimiter. Fields marked with an asterisk are required.
About this tool
Use this conversion to prepare test data or import a table into an application. The first record defines member names and subsequent records become objects. Polish characters, spaces and leading zeros are retained. Identifier strings are not interpreted as numbers, the text true is not changed into a boolean, and spreadsheet settings are not guessed.
How to use the calculator
- Paste a table with a header. Do not use duplicate or empty names.
- Select the exact delimiter and choose “Process”. Every record must have the same number of cells.
- Copy JSON. If your application needs numbers, convert types according to its schema, not how the data looks.
Calculation details
Formula and calculation method
The parser reads delimiters outside quotes, decodes "" as one quote and retains line breaks inside quoted cells. Headers and cells are encoded as JSON string literals without assigning keys to an object prototype.
Worked example
For id;active followed by 001;true, output is [{"id":"001","active":"true"}]. Leading zeros remain and true is still a string. A header-only table gives [].
Limitations
- CSV/TSV: up to 1,000 data rows, 100 columns and 10,000 data cells. Output up to 500,000 UTF-16 units. These are project caps, not format limits. No delimiter guessing or Excel workbook creation.
- Input up to 50,000 UTF-16 units. A header is required; spaces in names and cells are not trimmed. CRLF, LF and one initial BOM are accepted. A lone CR outside a quoted cell is an error.
- This profile follows RFC 4180 quoting, extended with Unicode, semicolon, tab and LF. No automatic repair or date/number conversion. Formulas remain JSON strings but may be dangerous on later spreadsheet export.
Sources
- IETF RFC 4180 — CSV records, headers and quoting
- IETF RFC 8259 — JSON syntax and interoperability
- OWASP — spreadsheet formulas and CSV Injection risks
Engine version: 1.0.0 · Last reviewed: 2 October 2026
Frequently asked questions
Why is an amount a string?
CSV does not define column types. The meaning of 001, dates or comma-decimal amounts is not guessed; the destination schema should define conversion.
Can a cell contain a newline?
Yes, when correctly quoted. The line break remains in the JSON string as an escape.
Are blank records skipped?
No. A blank record contains an empty cell and must match the column count. A terminal line break does not add another record.
Is data uploaded?
Inputs and results are not sent to a server or analytics or saved in the URL or persistent form storage. Reset does not remove previous clipboard copies, printouts or data held by browser extensions. Do not paste secrets.