JSON5 / JSONC Converter
Convert JSON5 or JSONC (JSON with comments) into strict standard JSON and back.
Runs entirely in your browser — your data never leaves your device.
Loading tool…
How to use this tool
- 1Paste your JSON5 or JSONC into the editor.
- 2Convert to strict JSON (or back to JSON5).
- 3Copy the output.
Frequently asked questions
- What is the difference between JSON5 and JSONC?
- JSONC is JSON with comments (used by VS Code and tsconfig). JSON5 adds more relaxed syntax like unquoted keys and trailing commas.
- Are comments preserved?
- When converting to strict JSON, comments are removed since standard JSON does not allow them.
- Is my data uploaded to a server?
- No. Every tool on JSONPost runs entirely in your browser using JavaScript. Your JSON never leaves your device, so it is safe to use with private or sensitive data.
Related tools
JSON Fixer & Repair Tool
Automatically fix trailing commas, single quotes, unquoted keys, and other common JSON errors in one click.
JSON Formatter & Beautifier
Format and beautify your JSON instantly with customizable indentation and a collapsible tree view.
TOML to JSON Converter
Convert TOML configuration (Cargo.toml, pyproject.toml) into JSON and back.