WebTool

JSON5 Parser

Free online JSON5 parser that converts comments, single quotes, unquoted keys and trailing commas into standard JSON.

Privacy: all processing happens locally in your browser. Your input never leaves your device.

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

  1. Paste JSON5 text
  2. It is parsed automatically and output as standard JSON
  3. 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.

Related Tools

Last updated 2026-09-04