HJSON to JSON
ClientImport HJSON configs as strict JSON.
Learn more: HJSON to JSON
Convert relaxed HJSON configuration text—with comments, optional quotes, and fewer commas—into strict JSON that standard parsers and APIs can consume.
Required input
Paste the HJSON document as text, including comments or unquoted keys. Run the conversion, then copy the strict JSON result or format it for review.
What the result means
HJSON conveniences are removed in the output. Comments cannot be represented in standard JSON, so keep the original HJSON file when commentary matters.
Local processing
The page parses and transforms the pasted document in your browser. Use a smaller representative sample first when the source is large.
What this page does
Convert relaxed HJSON configuration text—with comments, optional quotes, and fewer commas—into strict JSON that standard parsers and APIs can consume.
Input and workflow
Paste the HJSON document as text, including comments or unquoted keys. Run the conversion, then copy the strict JSON result or format it for review. Start with Load example or prefill the primary input with ?q= / ?qb=.
Scope and limits
HJSON conveniences are removed in the output. Comments cannot be represented in standard JSON, so keep the original HJSON file when commentary matters.
The operation runs in your browser. Large documents may slow the tab, so test a representative sample before processing more data.
Nearby workflows on Toolcore
- JSON to HJSON — Human-friendly JSON with unquoted keys—local.
- JSON5 / JSONC → JSON — Parse JSON5 and JSON with comments—output strict JSON, pretty or minify in browser.
- JSON repair — Fix almost-JSON to strict JSON—trailing commas and common mistakes, local only.
- JSON formatter — JSON format online: pretty-print, minify, validate, escape, download .json.
Common use cases
- Convert a human-edited HJSON config before passing it to a strict JSON-only service.
- Remove comments and relaxed syntax from a sample used in tests or documentation.
- Compare an HJSON source with its normalized JSON representation during migration.
Common mistakes to avoid
Expecting comments in the JSON output
Standard JSON has no comment syntax, so HJSON comments are intentionally discarded.
Treating arbitrary JavaScript as HJSON
HJSON is a data format, not a JavaScript evaluator. Expressions and functions are not supported.
Overwriting the only annotated copy
Keep the original HJSON when human notes matter; the strict JSON output cannot preserve them.
FAQ
What is the difference between HJSON and JSON?
HJSON adds human-friendly syntax such as comments and optional quotes while JSON uses a stricter interchange grammar.
Does conversion run locally?
Yes. The HJSON text is parsed in your browser.
Will key order be preserved?
Parsed object order is generally retained, but consumers should not rely on JSON object key order for meaning.
Common search terms
Phrases people search for that match this tool. See the full long-tail keyword index.
- hjson to json converter
- convert hjson comments to json
- hjson parser online
- relaxed json to strict json
More tools
Related utilities you can open in another tab—mostly client-side.
JSON to HJSON
ClientHuman-friendly JSON with unquoted keys—local.
JSON5 / JSONC → JSON
ClientParse JSON5 and JSON with comments—output strict JSON, pretty or minify in browser.
JSON repair
ClientFix almost-JSON to strict JSON—trailing commas and common mistakes, local only.
JSON formatter
ClientJSON format online: pretty-print, minify, validate, escape, download .json.