JSON5 to JSON Converter
Paste JSON5 with comments, trailing commas, or unquoted keys and get clean, strict JSON instantly.
Minify
Pretty
Input: 0 bytes
Output: 0 bytes
Keys removed: —
Summary
Paste JSON5 with comments, trailing commas, or unquoted keys and get clean, strict JSON instantly.
How it works
- Paste your JSON5 text into the input panel on the left.
- The converter processes it instantly in your browser.
- The strict JSON output appears in the right panel.
- Use the Format toggle to pretty-print or minify the output.
- 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-06-09 ·
Reviewed by Nham Vu