Tools

Home
JSON FormatterSQL FormatterJS ValidatorMinify CSS
Merge PDFCompress PDFImage to PDF
JPG to PNGPNG to WebPCrop Image

CSV to JSON Converter

Paste CSV text or upload a file to instantly convert to JSON with auto-detect delimiters and type detection

Your files never leave your browser
CSV Input0 chars, 0 lines
Drag & drop a CSV file here, or browse
Accepts .csv, .tsv, .txt files
JSON Output0 chars, 0 lines
Parsing warnings:
    Ready·

    Drop a CSV file or paste your rows, and this converter turns them into a formatted JSON array — with auto-detected delimiters, header mapping, and number/boolean type casting built in.

    Pick between array-of-objects or array-of-arrays output, preview the first 10 rows in a table, then copy or download the .json file. And everything runs in your browser. Nothing gets uploaded.

    How It Works

    Paste or Upload CSV
    ➝
    Detect Delimiter & Parse Rows
    ➝
    Output JSON Array

    The parser scans your first few lines to figure out the delimiter — comma, tab, semicolon, or pipe. Then it grabs row one as your property names and turns every row after that into a JSON object. Numbers like 42 and booleans like true get cast to their actual types instead of staying as strings. But you can turn that off if you want everything quoted.

    Examples

    CRM Contact Export

    Pulled a contact list from HubSpot, need it as JSON for a migration script. Quick job.

    INPUT
    name,email,active Alice,[email protected],true Bob,[email protected],false
    OUTPUT
    [ {"name":"Alice","email":"[email protected]","active":true}, {"name":"Bob","email":"[email protected]","active":false} ]

    Warehouse Inventory with Prices

    Spreadsheet from the warehouse team going into a REST endpoint. Prices and quantities need to be actual numbers, not strings wrapped in quotes. And the API will reject it otherwise.

    INPUT
    sku,product,price,qty WH-001,Widget A,12.99,340 WH-002,Gadget B,7.50,1200 WH-003,Sprocket C,3.25,89
    OUTPUT
    [ {"sku":"WH-001","product":"Widget A","price":12.99,"qty":340}, {"sku":"WH-002","product":"Gadget B","price":7.50,"qty":1200}, {"sku":"WH-003","product":"Sprocket C","price":3.25,"qty":89} ]

    Semicolon-Separated European Data

    Lots of European tools export with semicolons because commas are decimal separators over there. So you get files that look weird if you’re used to commas. The converter picks up on it automatically — no config needed.

    INPUT
    city;country;population Berlin;Germany;3748148 Vienna;Austria;1911191
    OUTPUT
    [ {"city":"Berlin","country":"Germany","population":3748148}, {"city":"Vienna","country":"Austria","population":1911191} ]

    Who Uses This

    👨‍💻 Developers

    Turning CSV dumps into JSON fixtures for API tests and seed scripts.

    📊 Data Analysts

    Reformatting spreadsheet exports before feeding them into D3 or Tableau.

    🛠️ DevOps Engineers

    Converting server inventory CSVs into JSON for Terraform or Ansible configs.

    🎓 Students

    Seeing how rows and columns map to keys and values — good for learning JSON structure.

    Common Mistakes

    No header row, or the wrong one

    If your first row is actual data instead of column names, every JSON key will be wrong. Check the “Header” toggle. And if your real headers are on row 2, delete the junk row above them first.

    Commas inside values that aren’t quoted

    A value like Portland, OR splits into two fields. Wrap it in double quotes: “Portland, OR”. Spreadsheet apps do this automatically on export, but hand-typed CSVs almost never do.

    Blank lines at the bottom of the file

    Extra newlines at the end create empty objects — keys with null or empty-string values. Not great. Trim those trailing lines before you convert, or just delete the empty objects from the output.

    Technical Details

    Frequently Asked Questions

    How do I convert a CSV file to JSON?

    Paste your CSV into the input area or drag a .csv file onto the upload zone. The first row becomes your JSON keys, and every row after that turns into an object. Hit Convert, then copy or download. Takes two seconds.

    Does this work with tab-separated or semicolon files?

    Yes. It checks for commas, tabs, semicolons, and pipes, then picks whichever one shows up most consistently. You can also force a specific delimiter from the dropdown if auto-detect gets it wrong. But honestly, it rarely does.

    Is my CSV data safe?

    Everything runs in your browser. No server, no upload, no logging. Close the tab and the data is gone. So yeah — safe for customer lists, financial data, internal stuff you don’t want on someone else’s server.

    Why are my numbers showing up as strings?

    Check the “Types” toggle in the toolbar — it needs to be on. With it enabled, values like 42 and 3.14 show up as actual numbers. But something like 12px stays a string on purpose, because it is not a pure number.

    How large a CSV can I convert?

    No hard limit. It depends on your browser’s available memory. Files around 50–100 MB work fine on most machines. The table preview caps at 10 rows so the page stays fast even with huge files.

    Share: