CSV to JSON

CSV to JSON

Convert comma-separated records into JSON objects.

Try this example

Load the sample. The quoted line break stays in the first note, and the final row is kept even without a line ending.

id,note
001,"line 1
line 2"
002,"Hello, world"

Expected result

[{"id":"001","note":"line 1\nline 2"},{"id":"002","note":"Hello, world"}]

The first row supplies unique column names. Cell values stay strings, so leading zeroes are preserved.

Related walkthrough · Check JSON and export a reliable CSV


Avatar

DTool Team

Product Team

We build simple, reliable browser tools that make everyday digital work faster.

Cookie
We care about your data and would love to use cookies to improve your experience.

Learn how we use cookies