What this tool does
Use the first row as headers, preserve Unicode, and download structured JSON with selected inputs processed locally in your browser.
Privacy behavior
Selected inputs are processed locally in your browser for this workflow. The public site may load ads and analytics; use the privacy build for privacy-sensitive workflows.
Supported workflow
Use the controls on this page, review the output in your browser, then copy or download the result.
When should you convert CSV to JSON?
CSV is convenient for spreadsheet exports, while JSON is easier to use in APIs, configuration, frontend prototypes, and developer workflows.
This converter treats the first CSV row as field names. If duplicate headers are found, it warns you and keeps values with numbered keys instead of silently overwriting data.
How this converter reads CSV
CSV has no single formal standard the way JSON does; the closest widely cited reference is RFC 4180, which describes optional double-quoting of fields, escaping an embedded quote by doubling it, and comma as the default delimiter. Real-world exports vary: semicolons are common where a comma is already the decimal separator, and quoting conventions differ between spreadsheet applications. This tool runs a hand-written parser, not a wrapper around a CSV library, that follows the RFC 4180 quoting convention: a field can be wrapped in double quotes to contain the delimiter, a newline, or a literal quote character, and a literal quote inside a quoted field is written as two quote characters in a row.
The first non-blank row becomes the header row. Every following non-blank row becomes one JSON object, with header names as keys. Every value is kept as a JSON string; this converter does not infer booleans or numbers from cell text.
| Situation | RFC 4180 representation | This tool's behavior |
| Field contains the delimiter | Wrapped in double quotes | Parsed correctly |
| Field contains a literal double quote | Doubled inside a quoted field | Parsed correctly, unescaped to one quote |
| Field contains a newline | Wrapped in double quotes | Parsed correctly, newline preserved in the JSON string |
| Quoted field left unterminated | Not valid CSV | Rejected with a malformed CSV error naming the row |
| Blank line in the file | Ambiguous in practice | Skipped entirely, not converted into an empty object |
Worked examples
The Sample CSV button loads this data:
name,city,active,note
Alice,Bangkok,true,hello
Bob,Paris,false,cafe
Converting with a comma delimiter and 2-space indentation produces:
[
{ "name": "Alice", "city": "Bangkok", "active": "true", "note": "hello" },
{ "name": "Bob", "city": "Paris", "active": "false", "note": "cafe" }
]
Note that active stays the string "true", not the boolean true; every CSV value becomes a JSON string, since the parser has no way to know from plain text alone whether a column is meant to hold booleans, numbers, or text. A CSV with a repeated header, such as name,name, converts headers to name and name_2, with a warning listing name as duplicated, so the second column value is not silently dropped or merged into the first.
Frequently Asked Questions
Is this CSV to JSON Converter free?
Yes. You can paste, convert, copy, and download JSON without signup.
Are CSV files uploaded?
No. CSV files are read and converted locally in your browser.
How are JSON keys created?
The first CSV row is used as the header row, and each following row becomes a JSON object.
What happens with duplicate headers?
The tool shows a warning and adds numbered keys so values are not silently overwritten.
Does it support Unicode?
Yes. UTF-8 text, accents, Asian scripts, and emojis are preserved in valid CSV fields.
Are numbers and true or false converted to real JSON types?
No. Every cell becomes a JSON string, including numeric-looking and boolean-looking values, since the parser has no reliable way to infer the intended type from plain text.
What happens to blank lines in my CSV?
Fully blank lines are skipped entirely and do not appear as empty objects in the JSON output.
Can I use a delimiter other than comma, semicolon, or tab?
Not directly. Only those three are offered; a pipe-delimited or fixed-width file needs to be converted to one of them before pasting it in.
Privacy Policy
ConvertUnlimited does not provide a server-side upload endpoint for this CSV to JSON conversion flow. Selected CSV files are processed locally in your browser.
Terms of Use
ConvertUnlimited is provided as is. Review generated JSON before using it in production systems.
Trust and privacy
Files are processed locally where supported. Review the Trust Center for the processing model and the Privacy Policy for public-site privacy boundaries.