Privacy: Processing happens locally in your browser. No input is uploaded.
JSON5 / JSONC to JSON Converter
Turn developer-friendly configuration syntax into strict JSON. Comments, trailing commas, single quotes and unquoted keys are parsed locally, then returned as standards-compliant JSON.
Convert commented JSON to strict JSON
JSON5 and JSONC make configuration files easier to maintain, but standard JSON parsers reject comments, trailing commas and single-quoted strings. Paste the source above to parse those extensions and serialize the result as strict JSON for APIs, package metadata, fixtures and systems that only accept RFC 8259 syntax.
What the converter changes
| Input feature | Strict JSON output |
|---|---|
| Line and block comments | Removed after parsing |
| Trailing commas | Removed |
| Single-quoted strings | Double-quoted JSON strings |
| Unquoted property names | Quoted property names |
| Hexadecimal and special numbers | Converted to JSON-compatible numbers when possible |
Comments are not part of the JSON data model, so they cannot be preserved in the output. After conversion, use the JSON Formatter, JSON Validator, or JSON to YAML converter.
JSON5 and JSONC are not identical
JSONC usually means JSON with comments, while JSON5 permits additional JavaScript-style syntax. This converter accepts the broader JSON5 grammar, which covers the common JSONC features. Always test the strict output in the application that will consume it.
How to use this tool
- Paste or upload the source into the left editor.
- Choose the relevant options and run the transformation.
- Review the right-hand output, then copy or download it.
Frequently asked questions
Does this tool upload my input?
No. Processing happens in the browser.
Can I download the output?
Yes. Use the Download button after generating the result.
Should I review the result?
Yes. Generated and transformed output should be checked against the requirements of the system that will consume it.