JSON5 → JSON
Convert JSON5 data to standard JSON
Input0
Output
0
About JSON5 to JSON Converter
Convert JSON5 data to standard JSON format. JSON5 is an extension of JSON that allows comments, trailing commas, unquoted keys, single-quoted strings, hex numbers, multiline strings, and more. This tool strips all JSON5-specific features and outputs clean, standard JSON.
Useful when working with configuration files (like tsconfig.json or package.json5) or any data source that uses JSON5 syntax and you need strict JSON compatibility.
Frequently Asked Questions
What JSON5 features does this tool handle?▼
It handles all JSON5 extensions: single-line and multi-line comments, trailing commas, unquoted identifier keys, single-quoted strings, hexadecimal numbers, multiline strings, +Infinity, -Infinity, and NaN.
Will comments be preserved in the output?▼
No, since standard JSON does not support comments, all comments (both // and /* */) are stripped during conversion.
What is JSON5 commonly used for?▼
JSON5 is commonly used in configuration files where human readability matters — such as TypeScript configs (tsconfig.json), Babel configs, and other developer tool settings that benefit from comments and relaxed syntax.