JSON Viewer Tool 100% client-side • No data is uploaded
JSON5 / JSONC → JSON
JSON5 or JSONC input
Strict JSON output

Privacy: Processing happens locally in your browser. No input is uploaded.

Ready.

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 featureStrict JSON output
Line and block commentsRemoved after parsing
Trailing commasRemoved
Single-quoted stringsDouble-quoted JSON strings
Unquoted property namesQuoted property names
Hexadecimal and special numbersConverted 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

  1. Paste or upload the source into the left editor.
  2. Choose the relevant options and run the transformation.
  3. 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.