What is JSON / JSON5 Converter?
JSON and JSON5 Converter handles development configuration containing comments, single quotes, unquoted keys, hexadecimal numbers, or trailing commas. JSON5 is parsed into data before strict JSON output, while reverse generation cannot recreate original comments, quote choices, or hand formatting. Common workflows include the following. Convert development JSON5 configuration for a strict JSON consumer. Generate readable JSON5 for human-maintained settings. Diagnose compatibility issues caused by comments or trailing commas. The page also documents input boundaries, output behavior, and practical cautions so you can review the result before putting it into an application, configuration, test, or production workflow.
When to use it
- Convert development JSON5 configuration for a strict JSON consumer.
- Generate readable JSON5 for human-maintained settings.
- Diagnose compatibility issues caused by comments or trailing commas.
How to use it
- Identify strict JSON or JSON5 input.
- Load an example to inspect keys and arrays.
- Convert and fix parser errors.
- Review comment and number normalization before copying.
- Load one of the realistic examples first to verify the selected options and processing direction before replacing it with your own data.
- Review the output, status message, and documented limits; copy, download, or continue only after the result matches your expectation.
Runnable examples
The “Example 1” and “Example 2” buttons load the matching inputs. They cover different structures, directions, or boundaries and can be run directly in the workspace.
Example 1
{"name":"JSONLane","release":{"tools":40,"ready":true},"features":["comments","trailing commas"]}Example 2
// JSONLane local configuration
{
name: 'JSONLane',
release: { tools: 40, ready: true },
colors: [0x10243e, 0x26b6a4,],
}Input rules
- The JSON direction still requires strict JSON syntax.
- JSON5 input may use syntax defined by that format.
- Infinity, NaN, and values without a standard JSON form are rejected on export.
- Text input is counted before processing and is limited to 1,000,000 characters on this page; file modes apply the separate file limit shown in the workspace.
- JSON5 comments and original quote style are not retained.
Output rules
- JSON5 to JSON removes comments and normalizes numbers.
- JSON to JSON5 may use unquoted keys and trailing commas.
- Object and array order follows the parsed data order.
- Output reflects only the current input, direction, and options; rerun after changing a mode or value instead of treating an earlier result as current.
- Infinity and NaN cannot be emitted as standard JSON.
Limitations and cautions
- JSON5 comments and original quote style are not retained.
- Infinity and NaN cannot be emitted as standard JSON.
- JSON-to-JSON5 output is not strict JSON.
How your data is handled
All parsing, conversion, binary encoding, and intermediate data remain in the current browser tab. JSONLane does not upload the input or retain it after refresh or close.