Converters

JSON5 to JSON Converter

Paste JSON5 below to convert it into strict, standard JSON.

What does this tool do?

Paste JSON5 below to convert it into strict, standard JSON. Everything runs locally using JavaScript in your browser — nothing you paste or upload is ever sent to a server.

How to use this tool

  1. Paste your json5 input into the left-hand box.
  2. Click Convert to JSON.
  3. Copy the json output from the right-hand box.

Frequently asked questions

What extra syntax does JSON5 allow that JSON doesn't?

Comments, unquoted object keys, single-quoted strings, trailing commas, and a few other relaxed conventions meant for hand-written config.

Why would I need to convert JSON5 to JSON?

Many APIs and tools only accept strict JSON — this lets you author config comfortably in JSON5 and produce standards-compliant JSON for them.

Are comments preserved in the output?

No — since strict JSON has no comment syntax, comments are dropped during conversion.