JSON Converters Code Gen Formatters All tools Browse all tools built byAbhay Darji

JSON5 Validator

Validate JSON5 documents, including comments, trailing commas and unquoted keys.

100% client side No upload No size limit Works offline
Input
Output
Ready
Drop a file to load it

About this tool

Check a JSON5 document parses, with the same precise error positions as the strict validator but with JSON5’s relaxed rules applied.

When you would use it

  • Validating a `.json5` config before a build
  • Checking a JavaScript object literal is well-formed

Worked example

JSON5
{ id: 1, /* ok */ tags: ['a',], }
Result
Valid JSON5 · 2 keys · depth 2

Things worth knowing

  • JSON5 is strictly more permissive than JSON, so anything valid as JSON is valid here too.
Questions

Frequently asked

Will a JSON5 file work with JSON.parse?
Only if it happens to avoid every JSON5 extension. Use the JSON5 formatter to convert it to strict JSON first.
Is my data uploaded anywhere?
No. Every tool on JSONWorks runs entirely in your browser using JavaScript. Your input is never sent to a server, never logged and never stored. The simplest proof is to disconnect from the internet — the tools keep working. The site does load Google Fonts and a Google Analytics page-view tag, so you will see those two requests in your network tab, but neither receives anything you type or paste.
Does it work offline?
Yes. JSONWorks is installable as a progressive web app and caches itself on first visit, so every tool keeps working without a connection.
Related

Tools that pair well with this