JSON5 to JSON Converter

Paste JSON5 with comments, trailing commas, or unquoted keys and get clean, strict JSON instantly.

Use the JSON5 to JSON Converter

Minify Pretty

Summary

This tool converts JSON5 — a superset of JSON that supports comments, trailing commas, unquoted keys, and single-quoted strings — into strict, standards-compliant JSON. Conversion runs entirely in your browser; no data is sent to any server. It is ideal for cleaning up config files, removing developer comments before deployment, or preparing data for APIs that require strict RFC 8259 JSON.

How it works

  1. Paste your JSON5 text into the input panel on the left.
  2. The converter processes it instantly in your browser.
  3. The strict JSON output appears in the right panel.
  4. Use the Format toggle to pretty-print or minify the output.
  5. Click Copy to copy the result to your clipboard.

Use cases

  • Convert configuration files written in JSON5 to strict JSON for APIs or parsers.
  • Strip comments from JSON before sending to a JSON-only endpoint.
  • Clean up hand-edited JSON with trailing commas that break standard parsers.
  • Validate and normalize JSON5 from build tools or config generators.
  • Prepare JSON5 data for environments that only accept strict RFC 8259 JSON.
  • Debug JSON5 syntax errors with the inline error message.

Frequently Asked Questions

Last updated: 2026-05-23 · Reviewed by Nham Vu