Skip to main content

CSV to JSON

Convert CSV to JSON online. Detects the separator, finds numbers and true/false, and can build nested objects from dot headers. Free and private.

More options

CSV

Stays in your browser

JSON

The result appears here after you press Convert.

Shortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)

Next steps

Done here? Use the Send to… menu on the result to carry it on to JSON Beautifier, JSON Visualizer or JSON to CSV.

Free Online CSV to JSON

Paste a CSV file or open one, and get a JSON list with one object per row. Numbers and true/false values are detected, and dot headers such as address.city can become nested objects. It gives developers a quick browser-based way to solve a focused csv to json task before moving the result into a project.

How to use CSV to JSON

Paste your data into the box on the left, or open a file, then press Convert. The first row is used as the names of the keys. The separator is found automatically.

Common mistakes

  • A row with a different number of columns: the tool warns with the row number, but check the quotes around fields that contain commas.
  • Turning detection off and expecting numbers: every value stays text.

Frequently asked questions

How are values typed?
With detection on, 42 becomes a number, true and false become booleans and empty cells become null. Values with leading zeros, such as 007, stay text so codes are not damaged.
How do nested objects work?
Turn on "Nested objects from dot headers". A header address.city writes the value into {"address": {"city": …}}, and items.0 builds a list.
My columns are not split correctly
Choose the separator yourself under "More options": comma, semicolon, tab or pipe.
Is my data uploaded anywhere?
No. The conversion runs in your browser and nothing you paste or open is sent to a server.
How do I use this csv to json tool?
Use the interactive controls above; processing stays in your browser and the result is intended as a practical starting point for development work.

More Formatters & Parsers

View all Formatters & Parsers tools →