FertiJourney Dev Tools 🏠← All tools

JSON5 ↔ JSON

Convert between JSON5 (comments, trailing commas, unquoted keys, single quotes, Infinity / NaN) and standard JSON, in your browser.

JSON5 → JSON: parses the input with the JSON5 library (supports // and /* */ comments, unquoted keys, single / double quotes, trailing commas, hexadecimal, Infinity, -Infinity, NaN, plus multiline strings) and re-emits strict standard JSON via JSON.stringify. JSON → JSON5: parses standard JSON and pretty-prints it using JSON5.stringify so the output stays valid JSON5 (handy for config files). Click ⇅ Swap to round-trip the boxes. Everything runs locally — no network call except loading the JSON5 library from the jsDelivr CDN.