Syntax supportConverts JSON5 to strict JSON: comments are stripped (with a notice), relaxed syntax is normalized, and Infinity / NaN become null with a count.
JSON5 sourceJSON5
Load some JSON5
JSON outputJSON
Load JSON5 and the result will appear here
JSON5 → strict JSON

JSON5 to JSON

JSON5 / JSONC → standard JSON · comments stripped with notice · minify option · runs locally

🔒Processed locally in your browser — never uploaded or stored

No upload, no storage

JSON is processed in memory and never sent to a server.

Share via URL fragment

Share links encode data in the # anchor — never sent to a server.

Remember last edit

Optionally keep your last input locally; clear it with one click.

Why use JSON5 to JSON

Relaxed syntax normalized

Unquoted keys, single quotes, trailing commas and hex numbers become strict JSON any parser accepts.

Comments stripped safely

Comments in tsconfig or VS Code settings are removed cleanly — and the tool tells you it happened.

Special numbers handled

Infinity and NaN have no JSON form; they become null with a count instead of failing silently.

Pretty or minified

Choose indented output for reading or a single minified line for shipping.

Local · no upload

Everything runs in your browser; data is never uploaded or stored.