Sign up free

CSV to JSON Converter

Paste CSV or open a file and get clean JSON instantly, without anything leaving your computer.

or drop files here

Accepts CSV

Runs in your browser. Your files never leave your device.

About CSV to JSON

CSV to JSON here works right in the page: paste rows copied from a spreadsheet or open a .csv file, and the JSON appears next to it as you type. The header row supplies the keys, blank headers become column_1, column_2 and so on, and the separator (comma, semicolon, tab or pipe) is picked up from the first lines. Workbooks can go straight through Excel to JSON without saving a CSV first.

Quoted fields are handled properly, so a value like "Smith, John" or a cell with a line break stays whole. With Detect numbers and true/false on, 92 becomes a number and true a boolean, while values such as 007 keep their leading zeros as text. Because your browser does the work, the data is never uploaded and the tool doesn't use any of your daily tasks.

How to use CSV to JSON

  1. 1
    Paste or open your CSV

    Paste into the Input box, drop a file on it or click Open file. Example loads a sample to try.

  2. 2
    Set type detection

    Leave Detect numbers and true/false on for typed JSON, or turn it off to keep every value as a string.

  3. 3
    Copy or save the JSON

    The CSV to JSON result updates as you type. Click Copy, or Save to download a .json file.

Why use Cubfile for this

  • Nothing leaves your device

    The conversion runs in your browser, so customer lists and exports stay on your computer.

  • Handles real-world CSV

    Commas inside quotes, doubled quotes and line breaks within a field are read correctly.

  • Any common separator

    Comma, semicolon, tab and pipe files are recognised without a setting.

  • Free and unlimited

    Browser tools don't count toward the daily task limit, so convert as often as you like.

FAQ

CSV to JSON: questions and answers

Is my data uploaded when I convert CSV to JSON?
No. The page converts the text inside your browser and nothing is sent to our servers, which makes it fine for private exports.
Why are some numbers still in quotes?
Values with leading zeros, like 007 or 0123, stay strings on purpose so the zeros aren't lost, and so do numbers longer than 15 digits. Turn off Detect numbers and true/false if you want every value as a string.
How do I convert CSV to JSON with semicolons?
Just paste or open the file. The separator is detected from the first few lines, so semicolon, tab and pipe files work without changing anything.
Is there a file size limit for converting CSV to JSON?
Only your device's memory. Nothing is uploaded, it costs nothing, and it never counts toward your daily tasks.
Which JSON format do I get?
An array with one object per data row, indented with two spaces. Keys follow the header row, and empty header cells get names like column_4. To turn such an array back into CSV, use JSON to CSV.
Share CSV to JSON with a friendIt runs in any browser, and they can try it without signing up.

Related tools

XLSSQL Excel to SQLGenerate CREATE TABLE and INSERT statements from Excel or CSV.
XMLXLS XML to ExcelTurn repeating XML records into spreadsheet rows.
CSVXLS CSV to ExcelOpen CSV and TSV data in Excel with the right columns and encoding.
CSVXML CSV to XMLConvert CSV or Excel rows into XML records.
XLSCSV Excel to CSVSave each sheet as CSV, line breaks in cells handled.
XLSHTML Excel to HTMLTurn a sheet into an HTML table you can paste into a page.
XLSJPG Excel to ImageSnapshot sheets and charts as images.
XLSJSON Excel to JSONTurn rows into JSON objects using the header row as keys.