CSV → JSON

FreePrivateQuoted fields

Paste CSV with a header row to get a JSON array of objects. Commas inside quotes are handled correctly.

CSV input
JSON output
Ctrl+Enter Convert

CSV to JSON Converter Online

Paste CSV exported from Excel, Google Sheets, or a database export. The first row defines property names; every subsequent row becomes one object in a JSON array. Quoted fields, embedded commas, and doubled-quote escapes are handled for you.

Where Is This Useful?

Spreadsheet → API
Turn stakeholder CSVs into JSON for REST tests, fixtures, or seed data. Pretty-print and validate with the JSON Formatter before wiring into code.
Tests & mocks
Build arrays for Jest, Cypress, or Postman. Lock shapes with JSON Schema or diff golden files using JSON Diff.
Round-trip with JSON → CSV
Edit in JSON, export for Excel via JSON → CSV, then paste updated CSV back here when collaborators return spreadsheet changes.

How to Use

  1. Paste CSV with a header row in the left panel (or try the sample)
  2. Click Convert to JSON or press Ctrl+Enter
  3. Copy formatted JSON or download as .json

Example

Input CSV
name,role,active
"Smith, Jane",admin,true
Bob,user,false
JSON output (excerpt)
[
  { "name": "Smith, Jane", "role": "admin", "active": "true" },
  { "name": "Bob", "role": "user", "active": "false" }
]

Features

  • Header row → JSON keys on every object
  • RFC-style double-quote wrapping and "" escape inside quoted cells
  • Pretty-printed JSON output with syntax-friendly structure
  • Download as .json in one click
  • Recent-input history (stored locally)
  • 100% private; no server upload

Frequently Asked Questions

Does the CSV need a header row?

Yes. The first row is treated as column names and becomes keys on each JSON object.

What about commas inside cells?

Wrap those cells in double quotes per RFC-4180 style. The parser handles escaped quotes ("") inside quoted fields.

Are numbers parsed as numbers?

All cell values are returned as strings so you keep exact spreadsheet text. Convert types in your application if you need numbers or booleans.

Is my CSV uploaded anywhere?

No. Parsing runs entirely in your browser.

Related Tools