Skip to content
Tools

CSV to JSON Converter

Convert CSV to JSON in your browser, with headers and quoted fields.

Local
JSON

What this tool does

This tool converts CSV into JSON. With a header row, each line becomes an object keyed by the column names. Without one, each line becomes an array of values. Choose the delimiter to match your file.

Handling real CSV

It follows the common CSV conventions: fields may be wrapped in double quotes, a quoted field can contain commas and line breaks, and a doubled quote inside a quoted field is a literal quote. That means a value such as a comma-containing address survives the conversion intact.

Why testers reach for it

Data-driven tests often keep their cases in a spreadsheet exported as CSV, while the test framework wants JSON. This turns one into the other in the browser, so your test data never leaves your machine.

Common use cases

  • Turning a CSV of test cases into a JSON fixture.
  • Previewing how a CSV maps to objects before loading it.
  • Converting an exported report for an assertion.

Frequently asked questions

Does it handle quoted fields with commas?
Yes. Quoted fields may contain commas, quotes and line breaks, following the usual CSV conventions.
What if there is no header row?
Untick the header option and each line becomes an array of values instead of an object.

Learning resources

Testsmith also runs hands-on courses and a free practice app for the skills behind this tool.

Feedback welcome

Found a bug in this tool, or want it to do something it does not? Tell us and we will take a look.