Developer tools
CSV and JSON string-record converter
Convert CSV to JSON or JSON to CSV for small tables of string values with a header, explicit separators and 1 to 16 rows, then download the result.
Use an explicit CSV or JSON example, edit values and calculate. Native exports and report exports are separate; reloading removes temporary scenarios.
Result
Method:
Header required, 1–16 rows and 1–8 columns. Flat JSON objects with identical keys and string values only. Spreadsheet-text mode adds apostrophes to formula-like cells; preserve mode keeps text unchanged. No inferred types or automatic separator.
Decimal results are approximate. Inputs stay in this browser tab.
How it works
Own bounded flat string records; explicit separators and CSV text-prefix choice. Header required, 1–16 rows and 1–8 columns. Flat JSON objects with identical keys and string values only. Spreadsheet-text mode adds apostrophes to formula-like cells; preserve mode keeps text unchanged. No inferred types or automatic separator.
Worked example
Own two-column CSV example; string value 0012 keeps leading zeros.
Worked example
With these example values the calculator gives the result below. You can change any value in the form above.
Inputs
- CSV or flat string-record JSON (2000 units)
- Name,Value Example,0012
- Direction
- CSV → JSON
- Explicit CSV separator
- Comma
- CSV cell output
- Spreadsheet text: prefix formula-like cells
Result
- Records
- 1
- Columns
- 2
- CSV text prefixes added
- 0
- Exact output JSON part 0
- "[\n {\n \"Name\": \"Example\",\n \"Value\": \"0012\"\n }\n]"
Frequently asked questions
How do I convert CSV to JSON?
Enter a small CSV table with a header and an explicit separator. The converter produces JSON records with string values that you can preview and download.
What size of table can the CSV and JSON converter handle?
A header is required, with 1 to 16 rows and 1 to 8 columns. An own UTF-8 file can be up to 8 KiB and 2000 units.
Are leading zeros kept when converting CSV to JSON?
Yes. Values stay strings and no types are inferred, so 0012 keeps its leading zeros.
Which JSON can be converted back to CSV?
Flat JSON objects with identical keys and string values only.
How are formula-like cells handled?
Spreadsheet-text mode adds an apostrophe to formula-like cells, while preserve mode keeps text unchanged.