Convert a CSV file to JSON in your browser - perfect for piping spreadsheets into scripts, APIs, or LLMs.
CSV is the lowest-common-denominator format for tabular data: every spreadsheet exports it, every script ingests it. JSON is the same for nested or self-describing data: every programming language can parse it, every modern API consumes it. Converting CSV to JSON bridges the gap when you need to feed spreadsheet data into a JavaScript script, REST API, or an LLM that thinks in objects.
We parse the CSV with PapaParse, treating the first row as field names and the rest as records. Numeric values are auto-typed; everything else stays as strings. The output is an indented JSON array of objects - ready to paste into a script or pipe into curl. Everything happens locally; no data leaves your browser.
CSV (Comma-Separated Values) is the simplest tabular format - plain text rows of comma-delimited values. Read by every spreadsheet program, scripting language, and data tool ever made.
JSON (JavaScript Object Notation) is the lingua franca of structured data on the web. Arrays, objects, strings, numbers, booleans. Read by every modern programming language.
Drag a CSV onto the converter above, or click the box to pick one from your device.
We've preselected JSON as the output format. Change it from the dropdown if you want a different target.
Click Convert and wait for the progress bar to finish. Download the JSON when it's ready.
Flatten a JSON array of objects into a CSV file - paste into Excel, Google Sheets, or any spreadsheet tool.
Convert JSON config files to the more human-readable YAML format - Kubernetes, GitHub Actions, Docker Compose love it.
Convert an Excel XLSX spreadsheet to CSV - perfect for scripts, data tools, or systems that won't open .xlsx.