BrokenTools
EN

Convert CSV to JSON

Turn a CSV table into JSON. Each row becomes an object with the column names as keys.

    How to use it

    1. Add a CSV file.
    2. Say if the first row has the column names and whether to convert numbers.
    3. Press Convert to JSON, then copy or download the result.

    CSV to JSON

    Turn a CSV table into JSON, where each row becomes an object and the column names are the keys. It is useful for web developers, APIs and test data.

    Options

    Say if the first row has the column names, and whether numbers should be converted from text to real numbers. Leave numbers as text for codes such as phone numbers or postcodes with leading zeros.

    Result

    Copy the JSON or download it. Quotes and commas inside fields are handled correctly. The conversion is done in your browser.

    Example: data for a small website

    You keep a list of shops in a spreadsheet with the columns name, city and phone. Save it as CSV, add it here and press Convert. You get a JSON array where each shop is an object such as {"name": "Blue Bar", "city": "Patras"}. A web page can load that file directly and show the list.

    Quick tips

    Common problems and fixes

    Questions

    What does the JSON look like?

    An array of objects, one per row, for example [{"name":"Anna","age":31}].

    What if there is no header row?

    Switch off the header option. Rows become arrays of values.

    Is the file uploaded?

    No. It is converted in your browser.