FreeCSV → JSON

CSV to JSON Converter

Turn CSV rows into a JSON array of objects, with real numbers and true/false values.

Runs in your browser. Files never leave your device.

CSV, TSV, Excel (.xlsx), JSON or XML · several at once · or drop them here

Converted on your device — files are never uploaded.

Quick answer

To convert CSV to JSON, add the CSV, keep "First row is the header" on so each row becomes an object keyed by column name, choose indented or compact JSON and press Convert. Numbers and true/false become JSON values and empty cells null. Turn on Rebuild nested data to make address.city columns nested objects.

Step-by-Step Guide

How to convert CSV to JSON

1

Add your CSV

Choose one or more CSV or TSV files; the delimiter is detected from the file.

2

Set the header

With the first row as header you get objects; without it, arrays of values.

3

Choose the details

Indented or compact JSON, typed values, and nested objects from dotted column names.

4

Convert and download

Save the .json file, or a ZIP of several.

From rows and columns to objects

JSON is what web apps, APIs and scripts expect, and CSV is what spreadsheets export. The converter turns each CSV row into an object whose keys are the column names from the header row, giving an array of objects ready for JavaScript, Python or a database import. Empty header cells get names like column_3 and repeated names get _2, so no value is overwritten.

With type detection on, 42 and 3.5 become JSON numbers, true and false become booleans and empty cells become null, while values like 007 and long ID numbers stay strings. Turn detection off to keep every value exactly as text. Rows that are completely empty are skipped.

Columns named with dots, such as address.city and address.zip, can be rebuilt into nested objects, and cells containing JSON arrays or objects are parsed, so a CSV exported from JSON converts back to the original shape. The file is converted in your browser.

Last updated

Why Use Ripify CSV to JSON

Array of objects

Keys from the header row, one object per row.

Typed values

Numbers, true/false and null instead of strings.

Nested objects

address.city columns become { address: { city } }.

Indented or compact

Readable JSON or the smallest file.

Any delimiter

Comma, semicolon, tab and pipe CSVs.

Private

Nothing leaves your device.

Frequently Asked Questions

CSV to JSON FAQ

What does the JSON look like?▼
An array with one object per row, keyed by the column names: [{"name": "Ann", "age": 34}, …]. Without a header row you get an array of arrays instead.
Can I get nested JSON from a CSV?▼
Yes. Name columns with dots, like address.city, and turn on Rebuild nested data: they become nested objects. Cells holding JSON text such as [1, 2] are parsed too.
Why are some numbers still strings?▼
Values with a leading zero (007, ZIP codes) and numbers longer than 15 digits are kept as strings, because converting them would change them. Everything else that looks like a number becomes one.
Can I convert a semicolon or tab-separated file?▼
Yes. The delimiter is detected automatically, and you can pick comma, semicolon, tab or pipe yourself if the preview doesn't line up.

More Free Tools from Ripify