1. Home
    2. Data Converters (JSON/CSV)
    3. CSV to JSON

    CSV to JSON Converter

    Turn CSV rows into JSON objects. The delimiter is detected for you, and numbers and true/false values keep their type.

    Delimiter
    Output
    Indent
    CSV input
    JSON output

    Everything runs in your browser. Your data never leaves your device.

    Quick answer

    How do I convert CSV to JSON?

    Paste your CSV into the left box. The Toolzzz CSV to JSON converter reads the first row as the header and turns every other row into a JSON object. It detects the delimiter, handles quoted values with commas, and converts numbers and true/false values to real JSON types.

    • Auto-detects comma, semicolon, tab or pipe
    • First row as header (or numbered columns)
    • Detects numbers, true/false and empty values
    • Output as array of objects, array of arrays or keyed by first column
    • Handles quoted fields, commas and line breaks
    • 2 spaces, 4 spaces, tab or minified output
    • Runs in your browser, nothing uploaded
    CSV to JSON Converter: turn rows into json objects in your browser
    CSV to JSON on Toolzzz: turn rows into json objects, free and private.
    How it works

    How to convert CSV to JSON in 3 steps

    The JSON is rebuilt each time you type or change an option.

    1. Paste your CSV

      Paste it in, or press Upload to open a .csv or .txt file.

    2. Set the options

      Keep the delimiter on Auto, choose the output shape and decide whether to detect types.

    3. Copy or download

      Press Copy or Download to save a .json file.

    How to convert CSV to JSON in 3 steps in three steps: paste your csv, set the options, copy or download
    How to convert CSV to JSON in 3 steps in three steps.
    Use cases

    Popular uses

    Seeding apps and APIs

    Turn a spreadsheet export into JSON fixtures or seed data.

    Spreadsheet to web

    Use data from Excel or Google Sheets in a website or chart.

    NoSQL imports

    MongoDB, Firebase and similar stores import JSON directly.

    Config tables

    Keep settings in a sheet and export them as JSON.

    Quick prototypes

    Mock an API response from a CSV in seconds.

    Translation files

    Turn a two-column CSV into a keyed JSON language file.

    Any device

    How to use the CSV to JSON on Windows, Mac, iPhone and Android

    No app to install. The tool works in any modern browser, so the steps are almost the same everywhere.

    On Windows

    1. Open toolzzz.com/csv-to-json/ in Chrome, Edge or Firefox.
    2. Paste (Ctrl+V) your CSV into the left box, or press Upload to open a file.
    3. Choose the output shape and indent.
    4. Press Copy to put the result on your clipboard, or Download JSON to save it. Files go to your Downloads folder.

    On Mac

    1. Open toolzzz.com/csv-to-json/ in Safari or Chrome.
    2. Paste (Cmd+V) your CSV into the left box, or press Upload to open a file.
    3. Choose the output shape and indent.
    4. Press Copy to put the result on your clipboard, or Download JSON to save it.

    On iPhone and iPad

    1. Open toolzzz.com/csv-to-json/ in Safari.
    2. Touch and hold the box, tap Paste to add your CSV into the left box, or tap Upload to open a file.
    3. Choose the output shape and indent.
    4. Tap Copy to put the result on your clipboard, or Download JSON to save it. Downloads appear in the Files app.

    On Android

    1. Open toolzzz.com/csv-to-json/ in Chrome.
    2. Long-tap the box and tap Paste to add your CSV into the left box, or press Upload to open a file.
    3. Choose the output shape and indent.
    4. Tap Copy to put the result on your clipboard, or Download JSON to save it. Downloads go to the Downloads folder.
    Comparison

    Toolzzz vs. other online converters

    FeatureToolzzz CSV to JSONTypical online converters
    PriceFree, no limitsFree tier, then paid plans
    Where your data goesStays in your browserOften uploaded to a server
    Sign-upNot neededSometimes needed to download
    SpeedConverts as you typeUpload, wait, then download
    Size limitOnly your device memoryOften 1 to 10 MB on free plans
    Error messagesLine and column shownOften just "invalid input"

    "Typical" describes common limits of free online services. Plans and limits differ between sites.

    Why Toolzzz

    Why convert data with Toolzzz

    Private by design

    Your data is converted by JavaScript in this tab. Nothing is sent to Toolzzz or anyone else.

    Instant results

    The output updates while you type or paste. There is no queue and no waiting.

    Clear errors

    Invalid input is flagged with the reason and, where possible, the exact line and column.

    Copy or download

    Copy the result in one click or save it as a ready-to-use file.

    Works everywhere

    Windows, Mac, Linux, iPhone, iPad and Android. Any modern browser will do.

    Free forever

    No account, no limits, no watermark and no trial period.

    Pro tips

    Tips for the best result

    • Use Keyed by first column to build a lookup object, such as IDs to records or keys to translations.
    • Turn off Detect numbers to keep values like ZIP codes or phone numbers with leading zeros as text.
    • Empty cells become null when type detection is on.
    • From Excel, save as "CSV UTF-8" so special characters survive.
    • Going the other way? Use JSON to CSV.
    Glossary

    Key terms explained

    Header row
    The first line of a CSV that holds the column names.
    Delimiter
    The character that separates values, usually a comma, semicolon or tab.
    Type detection
    Turning text like 42 or true into real JSON numbers and booleans.
    FAQ

    Frequently asked questions

    Is CSV to JSON free?

    Yes, it is free with no limits and no account.

    Is my CSV uploaded?

    No. Conversion runs in your browser and your file never leaves your device.

    Does it handle commas inside values?

    Yes. Values wrapped in double quotes may contain commas, quotes ("") and line breaks.

    My file uses semicolons. Will it work?

    Yes. Auto mode detects comma, semicolon, tab and pipe. You can also pick one manually.

    How do I keep leading zeros?

    Untick Detect numbers and true/false. Every value then stays a string.

    What if my CSV has no header row?

    Untick First row is the header. Columns are named column1, column2 and so on.

    Can I get an array of arrays?

    Yes. Choose Array of arrays under Output.

    How big can the file be?

    Only your device memory limits it. Tens of thousands of rows convert quickly.