JSON5 Parser
Free online JSON5 parser that converts comments, single quotes, unquoted keys and trailing commas into standard JSON.
Data handling: common local tools process inputs in your browser; network queries, server execution and optional AI follow their separate data-use notes.
What is JSON5 Parser?
JSON5 is a superset of JSON that allows human-friendly syntax — comments, single-quoted strings, unquoted keys, trailing commas, hexadecimal numbers and more — and is widely used by VS Code settings and tsconfig files. Standard JSON.parse cannot read it. This tool parses JSON5 text and converts it to standard JSON, making it easy to migrate configs into systems that only accept strict JSON.
How to Use
- Paste JSON5 text
- It is parsed automatically and output as standard JSON
- Copy the result
FAQ
- What does JSON5 add over JSON?
- // and /* */ comments, single quotes, unquoted keys, trailing commas, multi-line strings, hexadecimal numbers, and NaN/Infinity.
- Can comments in tsconfig.json be parsed directly?
- Yes. The JSONC syntax used by tsconfig is a subset of JSON5 — paste it in and it converts to standard JSON.
Practical tutorials
- JSON Syntax Basics: Six Data Types and the Five Most Common Mistakes
JSON's six data types, the key differences from JavaScript objects, and the five most frequent syntax errors: trailing commas, single quotes, comments, and more.
Related Tools
Last updated 2026-09-15