CSV to JSON Converter
Convert quoted CSV data into JSON arrays or objects locally.
Open tool →Paste in raw or minified JSON to check whether it's valid and get a cleanly indented version, or paste in formatted JSON to compress it down to a single line for use in configuration files or API calls.
Keep a source copy: duplicate keys and large integers can change when JSON is parsed. Syntax validity does not validate your application data.
Use the sample, then choose Format or Minify. Keep a source copy: parsing can discard duplicate property names and alter integers beyond JavaScript's safe range. A quoted identifier preserves its leading zeros.
| Input or check | Expected result or decision |
|---|---|
| {"id":"001","active":true,"items":[1,null]} | The string 001, boolean true, array, and null keep their types. |
| {"active":true,} | Rejected: the final comma is not valid JSON. |
| {"id":1,"id":2} | Parsing keeps the later property; formatting is not a duplicate-key audit. |
| Minify {"id":1,"id":2} | {"id":2}; the earlier duplicate value is discarded. |
| Minify {"id":9007199254740993} | {"id":9007199254740992}; quote the identifier in the source to preserve its digits. |
Try {"name":"Anvil","ready":true}. Formatting changes spacing, while minifying removes unnecessary whitespace. Comments and trailing commas are not valid JSON.
JSON requires quoted property names and does not allow trailing commas or comments. Formatting cannot determine whether values are correct for your application.
These tools open separately; inputs are not transferred.
Convert quoted CSV data into JSON arrays or objects locally.
Open tool →Inspect a JWT header and payload without uploading the token.
Open tool →Compare two texts line by line and highlight additions and removals.
Open tool →Convert text to Base64 and back, entirely in your browser.
Open tool →JSON is parsed and formatted in your browser and is not sent to an Anvil processing server.
Parsing does not validate an API schema. Duplicate object keys collapse, unsafe numeric integers can lose precision, and very large documents may strain browser memory.
No. Formatting and validation both run entirely in your browser using the JavaScript engine's built-in JSON parser.
It means the parser hit something that isn't valid JSON syntax, commonly a trailing comma, an unquoted key, or a missing bracket. The error message names the position where parsing failed.
No, only standard JSON. Comments and trailing commas need to be removed first.
Inspect the reported error and the surrounding syntax. Replace single-quoted keys, remove trailing commas, and use lowercase true, false, and null. Comments require a different format such as JSONC; this formatter accepts standard JSON. Keep the original for duplicate keys and large-number checks.
No. Syntax validation confirms the data can be parsed. It does not check your application's schema, required fields, permissions, or business rules.
Parsing and re-serializing JSON can lose duplicate property names and precision for numbers beyond JavaScript's safe integer range. Keep a source copy and represent large identifiers as strings where your application allows it.
Why Valid JSON Still Breaks APIs: Types, Nulls, Numbers, and Structure
Learn why valid JSON can still fail an API. Debug strings vs numbers, null and missing fields, arrays, nesting, duplicate keys, booleans and payload structure.
Debug API Data with JSON, Base64, and Browser Tools
Work through JSON types, encoding, URL components, JWT claims, hashes, CSV conversion, and timestamps with small reproducible examples.
10 Malformed JSON Inputs Tested in Our Formatter
Actual browser results for ten syntax errors, duplicate keys, and an integer that changes during formatting, with reusable inputs.