CSV to JSON
Convert CSV to JSON — spreadsheet rows into arrays of objects.
How to use CSV to JSON
- Paste your CSV — including the header row, which becomes the JSON keys.
- Read the JSON array — one object per row, quoted values unwrapped correctly.
- Check value types — CSV is text, so numbers and booleans may need casting where types matter.
- Copy into your code, API call or import — or explore it first in the JSON Viewer.
What is CSV to JSON?
A CSV to JSON converter turns comma-separated rows into an array of JSON objects: the header row supplies the keys, and each data row becomes one object. A two-column CSV of names and ages becomes [{"name":"Ada","age":"36"}, …] — the shape every API, script and JSON tool expects.
It's the spreadsheet-to-code bridge, opposite direction from JSON-to-CSV: data lives its first life in Excel or Sheets (exports, catalogs, mappings, hand-maintained lists) and needs a second life as structured input to programs. The converter does the reshaping plus the part humans botch — CSV's quoting rules for commas and quotes inside values.
About the CSV to JSON
Paste CSV — straight from a file or copied from a spreadsheet — and get the JSON array instantly, headers as keys, quoting and escaping handled.
Everyday conversions: a product/user/inventory sheet into seed data or API payloads, a colleague's Excel list into a config array, survey exports into JSON for analysis tooling, and lookup tables (country codes, category mappings) into structures code can import. The header row matters — its exact texts become the keys, so clean headers (lowercase, no spaces) upstream save renaming downstream.
The type caveat: CSV is untyped text, so values arrive as strings — "36" not 36, "true" not true. Converters may infer obvious numbers; when types matter (APIs validating payloads), verify and cast. Delimiter kin: semicolon-separated files (European Excel) and TSV convert the same way once the delimiter is known.