loot.tools

CSV to JSON

Paste CSV data and get a structured JSON array. Toggle whether the first row is a header. Handles quoted fields, escaped commas, and multiline values.

Paste CSV data and get structured JSON. Toggle the header row option to control output format.

CSV
JSON

How it works

Paste your CSV and the tool parses each row into a JSON object using the first row as keys (when header mode is on). Without headers, you get an array of arrays instead. The parser handles quoted fields, escaped double quotes, and commas inside values correctly.

When you'd use this

Importing spreadsheet exports into a web application. Converting CSV log data for programmatic analysis. Preparing seed data for a database. Transforming exported data from one system into the JSON format another system expects.

Header row toggle

When 'First row is header' is on, the first line becomes object keys and every other line becomes an object. Turn it off if your CSV has no header row - you'll get an array of arrays where each inner array is one row of values. Most CSV files from spreadsheets include headers, so it's on by default.

© 2026 loot.toolsYour data stays in your browser.