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
- 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.
Related Tools
JSON Formatter & ValidatorFree online JSON formatter and validator with inline error hints, collapsible tree view and in-browser processing.JSON MinifierFree online JSON minifier: compress JSON to one line, see live size savings, and validate syntax — processed locally.JSON Escape / UnescapeFree online JSON escape and unescape tool for quotes, newlines and backslashes — fix nested escaping locally.JSON Key SorterFree online JSON key sorter: recursively order object keys alphabetically so semantically identical JSON diffs cleanly.JSON Diff & CompareFree online JSON compare tool: ignores key order, listing added, removed and changed fields by path — all local.JSON to TypeScriptFree online JSON to TypeScript converter: infer interfaces from JSON — nested types, union arrays, optional nulls.
Last updated 2026-09-04