JSON formatter and validator
Beautify, validate or minify JSON. Keep large numbers, key order and duplicate keys intact, directly in your browser.
Or drag and drop a file anywhere in this pane. You can also paste anywhere on the page: Ctrl+V / ⌘V
Convert CSV to JSON or turn a JSON array into CSV. Paste your data or choose a file, then copy or download the result.
Convert comma separated rows into a JSON array of objects, or turn a flat JSON array into CSV. CSV column names become object keys, and CSV values remain strings so identifiers and leading zeros are preserved.
Load the CSV example. The identifier 002 remains the string "002" in JSON, and 9007199254740993 remains a quoted string with every digit intact. When entering JSON yourself, put large integer identifiers in quotation marks.
Use CSV to JSON when each spreadsheet row should become a record with named fields. Use JSON to CSV when you have an array of flat records to review in a spreadsheet. The first CSV row supplies the field names.
A CSV value such as 00123 becomes the JSON string "00123", not the number 123. This keeps postal codes and product IDs intact. CSV does not describe data types, so the converter leaves values as strings rather than guessing whether they are numbers or booleans.
