FPSDEN

Browser tool

CSV to JSON Converter – Free Online Converter | FPSDEN

Convert CSV to JSON in your browser: the first row becomes the keys, every row becomes an object. Pick a delimiter, type values or keep them as text.

—

CSV to JSON Converter

Paste JSON or CSV into the input box, pick the direction with the tab, and read the converted text in the result area. Everything runs in this browser tab.

?? Your text and files are processed entirely in this browser tab and never sent to any server. Nothing is uploaded, logged, or stored.

JSON to CSV CSV to JSON

Converter workspace

Input text name,role,city,started Ada Lovelace,Analyst,London,1843 Grace Hopper,Engineer,New York,1944 Alan Turing,Researcher,Wilmslow,1936

Converted output

Type or paste into the input box, or drop a .json, .csv or .tsv file onto it. The output updates as you type; the Convert button re-runs the same conversion after a change.

CSV delimiter Detect automatically Comma (,) Semicolon (;) Tab

Conversion options Add a UTF-8 BOM to the CSV output (Excel compatibility) Flatten nested JSON objects to dot paths (address.city) Convert CSV text to JSON numbers, true/false and null when it round-trips exactly

Convert Download result Choose a file Clear input

Ready: the sample text is loaded. Replace it with your own data.

Drag a file here or onto the input box to load it. Nothing is uploaded: the file is read in this browser tab.

One block per column the converter found, in first-seen order; the label under the map reports how many records were read.

Copy result Rules used here: JSON must be an array of objects, one object, or an object whose first array-valued property holds the records; nested objects become dot paths while arrays stay JSON text; CSV follows RFC 4180 with CRLF rows, quoted fields and doubled inner quotes, and a leading BOM is ignored on read.

How the CSV to JSON converter works

Begin with a delimited spreadsheet export. The opening nonblank record supplies the property names; subsequent records supply their contents. For example, sku;region;active followed by 007;West;true yields an object whose sku is 007, region is West and active is true as text unless typing is enabled. Inspect the header before importing: surrounding whitespace is trimmed, and an unnamed position receives a substitute such as column2. Column positions, rather than their meanings, determine which content belongs to which property. A misplaced separator can therefore put a plausible-looking value under the wrong name.

Choosing a delimiter

Choose comma, semicolon or tab to match the export. Automatic detection counts those separators on the first nonblank line and chooses the most frequent; it does not consult a spreadsheet locale or inspect every subsequent record. A comma inside quotation marks can affect that count, so select the separator explicitly when detection gives an unexpected preview. Semicolon-separated exports often contain decimal commas, while tab-separated material commonly arrives from a clipboard. Neither convention changes the spelling of a cell: the separator only identifies where one field ends and the next begins.

Quoted cells and embedded line breaks

Enclose a field in double quotes when its content contains the separator or an embedded newline. To represent a quotation mark within that enclosure, double it: a cell written as "She said ""yes""" is read as She said "yes". A quoted address can span several physical lines while remaining one field. An unquoted newline instead ends a record. The reader accepts CRLF as well as LF endings and removes a leading UTF-8 byte order mark, preventing that marker from contaminating the first property name. Check these details in the exported text when a table unexpectedly splits.

Rows that do not match the header

Empty fields retain their positions. Given headers product,colour,size, a record productA,,large assigns an empty string to colour. If a record stops after productA, the absent colour and size positions also receive empty strings. Surplus fields beyond the header width are discarded without an on-page warning; check the field count and add the missing headings in the source export before converting again. Entirely blank records are skipped. This treatment preserves alignment within the declared schema, but it cannot recover a missing delimiter or infer what an unnamed surplus field was supposed to mean.

Keeping text or inferring types

Leave typing disabled for identifiers such as 007, telephone references and postal codes. That setting keeps every field as a string. When typing is enabled, plain 42 becomes numeric, true and false become booleans, and null becomes the null value. Numeric conversion requires an exact spelling round trip: 3.50 retains its trailing zero as text, and 1e3 remains text as well. A year written as 1843 becomes a number under that rule. Decide from the receiving application's schema whether that is appropriate; looking like a date does not make a year exempt from typing.

Checking a broken spreadsheet export

Use a small excerpt to investigate a troublesome export. Include its header and a record containing the suspected punctuation, then compare each resulting property with its original field. Unexpected column2 names point to empty headings; unexpected empty strings can indicate short records. Count the source fields yourself, because surplus positions are omitted without a separate notice. Quotation marks placed halfway through an unquoted field are ordinary characters rather than the start of a quoted enclosure. Repair the spreadsheet export itself when its structure is ambiguous. The converter reads punctuation mechanically and has no knowledge of which address, comment or identifier belongs in a column.

Privacy and size limits

Conversion takes place in this tab. File selection reads .csv or .tsv text locally, and Download saves the resulting object array as converted.json. There can be at most 5000 body records, excluding the header; partition a larger export and retain the same headings in every piece. A malformed or unexpectedly shaped table should be corrected before relying on the generated objects. This direction builds flat named records: it does not reconstruct a hierarchy from dotted headings, and an embedded array written inside a field remains text rather than automatically becoming a nested array.

Turning the result into a document with a word budget? See how to check word count in Google Docs .

Frequently asked questions

Which part of my spreadsheet becomes the JSON keys?

The first nonblank record is the header. Its trimmed fields name the properties, and the body is matched by position. Rename empty headings before export if column2-style substitutes would be unclear.

Why did automatic delimiter detection choose comma instead of semicolon?

Detection compares separator counts on the opening nonblank line. Quoted punctuation can influence that simple count. Select semicolon explicitly, then verify an address or comment containing a comma stays in its intended field.

How do I keep a newline inside one CSV field?

Surround the complete multiline field with double quotes. Without that enclosure, a newline ends the record. A quotation mark inside the enclosure must be doubled, as in ""yes"".

Will 007 retain its leading zeros?

Yes. With typing off it remains a string, and with typing on it still remains text because rewriting it as a number would lose the original spelling. Plain 42 can become numeric when typing is enabled.

What happens to an empty cell or a short record?

An empty position becomes an empty string. A short record is padded with empty strings up to the header width, so later property names do not shift left.

Can surplus fields create additional properties?

No. Only header positions have names. Surplus body fields are omitted without an on-page warning. Expand the header in the original export if those fields should be retained.

Does a dotted heading create a nested object?

No. A heading such as address.city becomes a literal property name in this direction. Restructure that flat object afterwards if a receiving service expects address to contain another object.

Does the 5000-record limit include the heading?

The header is separate from the 5000 body records allowed in one conversion. Divide larger exports into portions with matching headings, and keep the untouched export for checking the resulting properties.

On this page

Converter workspace

How the CSV to JSON converter works

Choosing a delimiter

Quoted cells and embedded line breaks

Rows that do not match the header

Keeping text or inferring types

Checking a broken spreadsheet export

Privacy and size limits

Frequently asked questions

Related tools

JSON to CSV Converter Convert JSON to CSV in your browser. Paste or open a local file, pick a delimiter, add a UTF-8 BOM for Excel, then copy or download.

Google Docs Word Count Guide How to open, show and read the word count in Google Docs, and what it leaves out.

Random Number Generator Choose an integer range, digit count, quantity and optional no repeats.

Random Letter Generator Pick one uppercase English letter from A–Z.