Home / Developer / JSON Repair & JSON5
JSON Repair & JSON5
Fix broken JSON (missing quotes, trailing commas, comments, cut-off data) and convert JSON5 or JSONC to JSON.
Free, no uploads, no sign-up. Runs 100% in your browser.
How JSON Repair & JSON5 works
Repair uses the jsonrepair library, which adds missing quotes, commas and brackets, strips comments, turns Python True, False and None into JSON, and closes data that was cut off. JSON5 mode uses the reference json5 parser.
Input: JSON, JSON5, JSONC. Output: JSON, JSON5.
How to use JSON Repair & JSON5
- Open JSON Repair & JSON5 and paste or type your input.
- Results update instantly as you type.
- Tweak options such as format, indentation or algorithm.
- Copy the output or download it as a file.
Tips
- Everything is computed locally. Safe for tokens, keys and private data.
- Use Ctrl/⌘ + K to jump between developer tools quickly.
JSON Repair & JSON5 FAQ
- Are my files uploaded?
- No. This tool runs entirely in your browser tab. Files are read from your disk into memory and the result is generated locally.
- Is it free? Are there limits or watermarks?
- Free and open source (MIT). There are no file-size caps, daily quotas, accounts or watermarks.
- Does it work offline?
- Yes, once the page (and any engine it needs) has loaded, it keeps working without a connection thanks to the service worker cache.
Related tools
- JSON Formatter: Prettify, validate, minify and explore JSON as a tree.
- Data Format Converter: Convert between JSON, YAML, XML, TOML, INI, CSV, NDJSON, MessagePack, CBOR and BSON.
- JSON Schema Validator: Validate JSON against a schema (Draft-07 or 2020-12) and generate a schema from sample data.
- QR Code Generator: QR codes for links, Wi-Fi, vCards and text with colors and logo.