Convert CSV to JSON Online

Free Online CSV to JSON Converter

Free online CSV to JSON converter. Paste CSV or add a .csv, .tsv or .txt file, select a delimiter, press Convert and copy the JSON array of objects.

Data tools by OnlinePCApps since 2013

No upload 5 delimiters RFC 4180 Free
\
0
Bytes uploaded
4
Delimiters read
0
Files stored
$0
Free, always
Why convert CSV and JSON

Online CSV to JSON Converter for APIs and Seed Data

A spreadsheet speaks CSV while an API speaks JSON, so the same data has to cross between the two. The free online CSV to JSON converter turns every row into an object and handles the tricky parts on the way.

Feed a Spreadsheet Into an API

A CSV export from a spreadsheet or a database will not load into an API or a document store that wants JSON. Converting CSV to JSON online reads the header row into keys and every row into an object, so the data drops into JSON that fits.

A CSV shaped as JSON an API accepts.

Seed a Database or a Test

Test fixtures, seed scripts and document stores like MongoDB load JSON, not CSV. The converter turns an export into an array of objects that a seed script or a fixture file takes as it is.

A CSV export ready for a seed script.

Handle the Tricky Parts

A comma inside a quoted field, a semicolon delimiter or a value that should stay a string trip up a naive split. An RFC 4180 parser reads the quoting correctly, so a name like Smith, John stays one field rather than two.

The edge cases parsed correctly.
How it works

Convert CSV to JSON Online in Three Steps

1

Paste the Data

Paste CSV into the CSV / Tabular Input box, or select Upload to add a .csv, .tsv or .txt file. A spreadsheet export, a database extract or a TSV all work as input.

CSV JSON keys
2

Select the Delimiter

A Select Delimiter row offers Auto Detect, Comma, Tab, Semicolon and Pipe, and a Custom box takes any other character. Auto Detect is selected first, so most files need no change.

[{…}]
3

Convert and Copy

Press Convert. A JSON Output box opens with the delimiter, the header flag and the row count above it, and Copy JSON puts the array on the clipboard. Clear empties the panel.

CSV in JSON array out
5 delimiters Auto or custom
Copy JSON One run at a time
Need it faster?

Desktop CSV to JSON Converter for Huge Files

The online CSV to JSON converter takes one paste or file per run. Millions of rows belong to the desktop edition or Miller.

Get Desktop Version Free trial · Windows 7 to 11
What the free tool does

What the Online CSV to JSON Converter Does

To convert a CSV file is to move the same data from a table into a tree. The online CSV to JSON converter returns a JSON array of objects.

CSV to a JSON Array

The header row becomes the keys and every row becomes an object, so the result is an array of objects. The panel runs one direction. To check or tidy the JSON afterward, use the JSON formatter.

Select the Delimiter

Auto Detect is selected first. Comma, Tab, Semicolon and Pipe get a button, and a Custom box takes any other character. A semicolon suits a European locale, a tab suits a TSV export and a pipe suits some legacy files.

Read the Result Bar

Above the JSON Output, a bar lists the delimiter used, whether a header was found and the row count. A Truncated flag appears when the result is cut short. Check the bar before copying the JSON.

Check Types Before Use

The panel has no type switch, and a CSV value starts as text. Open the JSON Output and check that numbers, booleans and IDs like a ZIP code arrived the way the next system expects.

To convert CSV to JSON, to turn a spreadsheet into JSON and to export a CSV as an array of objects all name one task. A search for online CSV to JSON reaches the converter above, and the input stays as it is.

Reference

Online CSV to JSON Converter Results, Case by Case

The file decides what the online CSV to JSON converter returns. The cases below run from clean to not on this page.

The caseResultWhat happens and why
CSV to JSONarray of objectsThe header row becomes the keys, and every row becomes an object in one JSON array.
JSON to CSVnot on this pageThe panel converts one way and has no JSON input.
Delimiterauto or customAuto Detect, Comma, Tab, Semicolon and Pipe buttons, plus a Custom box for any other character.
Header rowresult barThe panel has no header switch. The result bar shows Header: Yes or No, so the read is visible.
QuotingRFC 4180A comma inside a quoted field stays put, and doubled quotes are read. For why a CSV can still break, see Why CSV files break and what they never tell you.
Typescheck outputThe panel has no type switch. Check numbers and booleans in the JSON Output.
Outputcopy onlyCopy JSON puts the array on the clipboard. The panel has no download button, so save the pasted JSON as a .json file.
Leading zeroscheck outputA ZIP code or a phone number with a leading zero needs a look in the JSON Output before use.
Source file.csv .tsv .txtPaste the text or select Upload. For a CSV with broken characters, see Character encoding explained and why text arrives broken.
Files per runoneThe panel takes one paste or one file at a time. Clear empties it for the next run.
Large resultTruncated flagA Truncated flag appears beside the row count when the result is cut short.
Where it runson the deviceThe data is converted in the browser, so nothing is uploaded.

How CSV Maps to JSON

CSV and JSON hold the same data in two different shapes. CSV is a flat table of rows and columns, the format every spreadsheet and database export speaks, with its rules set by RFC 4180. JSON is a tree of objects and arrays, the format web APIs and config files speak. Going from a CSV file to a JSON array is the tidy direction: the header row becomes the keys, every row becomes an object and the result is an array of those objects. The CSV side follows RFC 4180, so a comma inside a quoted field like Smith, John stays as one value rather than splitting the row, an edge case that a plain split gets wrong. The delimiter is the first choice worth understanding, since a semicolon file or a tab file split on commas lands in a single column. Auto Detect is selected first, and the result bar shows which delimiter was used. Types are the second. A value in CSV is always text, so check a ZIP code, a phone number or any ID with a leading zero in the JSON Output before use. The online converter returns one array per run. The references below define the formats.

Honest comparison

Online CSV to JSON Converter vs a Data Pipeline

Both the online converter and a pipeline convert a CSV file. The trade is between a quick paste and a scriptable, streaming run.

Point of comparison This tool This online converter On the device A data pipeline A local terminal tool
Where the data goes Stays in the browser Stays on the machine
Price and caps Free with no sign-up Free tier often capped
A file of a million rows Built for one file per run Streams row by row
Reshape and filter A straight CSV to JSON run Miller and pandas transform
A quick paste and preview Paste, convert, copy A script to write first

A pipeline with a tool like Miller or pandas wins for millions of rows or a conversion that also filters and reshapes the data. The online CSV to JSON converter wins for a quick paste, convert and copy with no install. Online file tools and whether yours uploads goes deeper on where a file goes.

Why no upload

CSV to JSON Converter Privacy and Data Handling

The data is parsed and rewritten inside the browser by a client-side parser, so the work stays on the machine that opened it. Nothing is handed to a server, whichever way the conversion runs.

A CSV or a JSON export often holds real records, customer rows, order data or personal fields never meant for an outside server. A hosted converter would take all of it on upload, needless exposure when the browser can do the conversion locally.

1. Open the browser tools at the Network tab
2. Clear the log and let it record
3. Convert some data with the online converter above
→ Nothing uploads. The data was converted on the page itself.
0
Bytes uploaded
0
Files stored
0
Accounts required
0
Watermarks added
Alternatives

Online CSV to JSON Converter Alternatives

All of these convert a CSV file. They vary on reach, on effort and on where the data goes.

Miller or csvkit

Miller and csvkit convert and reshape from the terminal.
They handle huge files and fit a pipeline.
Limit: Needs the command line and a syntax to learn.

Python pandas

read_csv and to_json convert with type inference in a script.
They suit a large file or an analysis step.
Limit: A coding step that needs Python set up.

PapaParse in Code

PapaParse parses CSV in JavaScript with streaming.
It fits straight into a web app or a Node script.
Limit: A library to wire in, not a quick paste.

A Spreadsheet

Excel or Sheets opens a CSV and saves one back.
It suits a look at the data in a grid.
Limit: No JSON export, and leading zeros or dates can break.

Miller, pandas and PapaParse convert CSV well but need a terminal, a script or a library. A spreadsheet has no JSON export. The online CSV to JSON converter above needs a browser and a paste.

Before converting

Three Things to Know Before Using a CSV to JSON Converter

Three pointers lead to a cleaner result from the online converter.

Mind Leading Zeros

A ZIP code, a phone number or an ID with a leading zero can lose it when read as a number. The panel has no type switch, so check the JSON Output and keep the original CSV for any column where the zero matters.

Quote Fields With Commas

A name like Smith, John must sit inside double quotes in the CSV, or the comma splits it into two fields. A clean export already does this, and the online CSV to JSON converter reads the quotes.

Match the Delimiter

A file from a European locale often uses a semicolon, and a spreadsheet export can use a tab. Leave Auto Detect on or select the matching button, so an entire row does not land in one column. The result bar shows the delimiter used.

The desktop edition

Desktop CSV to JSON Converter for Millions of Rows

The online CSV to JSON converter takes one paste or one file per run, which suits most everyday data. A file of millions of rows, or a conversion that filters and reshapes as it goes, belongs on the desktop edition or a tool like Miller, and both stream from disk.

On this pageone paste or file per run
In a pipelinemillions of rows streamed
Huge Files

A file of a million rows is streamed from disk row by row, past what one paste or upload on this page is built for.

Filter and Reshape

A tool like Miller filters, sorts and reshapes the data as it converts, far past a straight change of format.

In a Pipeline

A conversion step runs inside an ingest or a build, so a feed is turned automatically with no manual paste.

Common questions

Online CSV to JSON Converter Questions

Paste your CSV into the input box or select Upload to add a .csv, .tsv or .txt file, select a delimiter, then press Convert. A JSON Output box opens with a Copy JSON button, and a bar above it shows the delimiter, the header flag and the row count. To start from a workbook instead, use the online Excel converter.
Paste your CSV, leave Auto Detect on and press Convert. The header row becomes the keys and every row becomes an object in one JSON array. Select Copy JSON, then paste the array into your API client, seed script or file. If your export still misbehaves, Why CSV files break and what they never tell you explains the usual causes.
No. The parsing and the rewriting run in the browser, so the data never leaves the device. This matters, since a CSV or a JSON export often holds real records like customer rows, orders or personal fields.
The first row is read as the header, and its cells become the keys. Every row after it becomes an object keyed by that header, and the set is returned as a JSON array of objects. That is the shape most APIs and document stores expect from your CSV. Contacts in a .vcf file go through the online vCard to CSV converter first, and a calendar .ics file through the online ICS to CSV converter.
Not on this page. The panel converts one way and has no JSON input. For the reverse, use a script, a spreadsheet import or the desktop edition. To check or tidy your JSON first, paste it into the online JSON formatter.
The panel has Auto Detect, Comma, Tab, Semicolon and Pipe buttons, plus a Custom box for any other character. Auto Detect is selected first. A semicolon is common in European locales where the comma is a decimal mark, a tab is used by TSV files and a pipe appears in some legacy data.
A value in CSV is text, and the panel has no type switch. Check your JSON Output before you use it. If a number arrived as a string, or an ID lost a zero, fix it in your code or in the next tool. If accents or symbols look broken, Character encoding explained and why text arrives broken covers the cause.
The panel has no switch for it. Open the JSON Output and check your column. If a zero went missing, restore it in your code with a pad function, or keep that column as text in your source spreadsheet. Your original CSV is not changed.
Yes. A field wrapped in double quotes keeps the comma inside it as part of the value, the rule RFC 4180 sets. A name like Smith, John stays one field rather than splitting your row. To test a pattern for cleaning a messy field first, try the online regex tester.
The panel has no header switch. After you press Convert, the result bar shows Header: Yes or No, so you can see how your file was read. If your file has no header row, add one line of column names to the top of your CSV first, since the keys come from that line. A header with clear, short names also gives your code clean property names to read.
Above the JSON Output, a bar lists the delimiter used, whether a header was found and the row count. A Truncated flag shows when your result was cut short. Check all of it before you copy your JSON.
Uneven rows, with more or fewer cells than the header, are the usual cause of odd JSON. Check the row count in the result bar against your file, and fix the CSV in your spreadsheet if a row looks off. A stray quote or a pasted line break inside a cell is a common culprit, and it shifts every cell after it. To compare two versions of your CSV, use the online text diff.
Not on this page. The JSON Output is one array of objects, with no switch for JSON Lines or NDJSON. To get one object per line, run your array through a short script or a tool like jq.
It should line up. The CSV side follows RFC 4180, the same quoting rules a library like PapaParse or Python csv uses, and the JSON is standard JSON. Test a small sample from your own file and compare it with your code before you convert a big one.
A file that suits one paste or one upload converts in one step, and the Truncated flag tells you when your result was cut short. For a file of millions of rows, a streaming tool like Miller or a pandas script, or the desktop edition, is the better fit. Splitting your CSV into smaller files and running them one by one also works for a file that is a little too big.
Yes. The online CSV to JSON converter runs in a mobile browser as well as on a desktop, so you can paste or add your CSV without an app. A large file is steadier on a computer.
The panel has a Copy JSON button and no download button. Select Copy JSON, paste the array into your editor and save it as a .json file. Clear Output hides your result, and Clear empties the input box too.
The page is cheap to host, and since the work happens on the device nothing is received or kept here. The wider suite of tools is what supports the site. There is no cap, no watermark and no sign-up.

OnlinePCApps Developer Group

Written and reviewed by Katarina Blum, who has worked on data formats and developer tools here since 2013

Last reviewed October 2026
13
Years on dev tools
0
Records uploaded
4180
The CSV standard
0
Watermarks

Most trouble with CSV and JSON comes from the gap between a flat table and a tree, plus a few small traps that catch everyone once. CSV lays data out in rows and columns, while JSON nests objects and arrays, so going to JSON is the tidy direction: the header row becomes the keys and every row becomes an object. The first trap is the delimiter, since a semicolon file or a tab file split on commas lands in one column, which is why Auto Detect is selected first. The second is quoting, because a comma inside a field only survives when the field sits in double quotes, the rule RFC 4180 sets, and a name like Smith, John breaks a plain split. The third is types, since every CSV value starts as text and an ID like a ZIP code can lose its leading zero when read as a number. Get the delimiter, the quoting and the types right and the rest is straightforward. The online CSV to JSON converter takes a paste or a .csv, .tsv or .txt file, returns a JSON array and shows the delimiter, the header flag and the row count beside it.

Standards followed

CSV · RFC 4180 PapaParse · Parser JSON · RFC 8259 Delimiters · Auto Detect
Built on the same shared design system as every OnlinePCApps tool. onlinepcapps.com

Convert CSV to JSON Online for Free

No sign-up and no cost. Paste CSV into the online converter, select a delimiter and copy the JSON array.

Convert CSV to JSON Free, no account Try Desktop Edition For huge files, a pipeline
Convert Data