What does the JSON5 Validator do?
A JSON5 validator checks documents written in JSON5, a superset of JSON that allows comments, trailing commas, single-quoted strings, unquoted keys, hexadecimal numbers and Infinity. It confirms the file parses or shows the line and column of the first error.
How to use the JSON5 Validator
- 1
Paste your json5
Paste or type json5 into the input box, open a file from your device, or click Sample to load an example.
- 2
Convert instantly
The JSON5 Validator processes your input right in the browser.
- 3
Copy or download the result
Review the validation result on the right, then copy it to the clipboard or download it as a .txt file.
JSON5 Validator example
{
// app settings
name: 'Imaginex',
port: 0x1F90,
features: ['tools', 'blog',],
}✓ Valid. Well-formed JSON5. Comments, trailing commas and unquoted keys are allowed in JSON5.
When to use it
- •Checking Babel, tsconfig-style or other JSON5 config files
- •Validating hand-written config with comments
- •Confirming a file is JSON5 before converting it
Why use this json5 validator
- 100% free, no signup or login
- Runs locally: your data never leaves the browser
- Instant results with clear error messages
- Works on desktop, tablet and mobile
- Copy to clipboard or download in one click
- No watermarks and no usage limits
Frequently asked questions
What is the difference between JSON and JSON5?+
JSON5 adds human-friendly syntax: comments, trailing commas, single quotes, unquoted keys and more number formats. Every valid JSON file is also valid JSON5.
Is the JSON5 Validator free?+
Yes. The JSON5 Validator is 100% free with no signup, no login, no usage limits and no watermark. It works on desktop and mobile browsers.
Is my data uploaded when I use the JSON5 Validator?+
No. The JSON5 Validator runs entirely in your browser with JavaScript. Nothing you paste or upload is sent to our servers, logged or stored.
Last updated by the Imaginex AI team.