toolbin_

Generate JSDoc typedefs from JSON

Generate JSDoc typedefs (@typedef) from JSON, to document and type your JS code.

🔒 100% client-side — no data sent

Generate JSDoc @typedef blocks from a JSON object to document and type your JavaScript code without TypeScript. Nested objects produce separate typedefs and arrays are typed. Instant, local conversion.

What is it for?

  • Document a data structure in JSDoc
  • Type JS without switching to TypeScript
  • Generate @typedef from an API response
  • Improve editor autocompletion

FAQ

How are types inferred?

From the JSON values: string → string, number → number, boolean → boolean, object → nested typedef, array → Type[].

Can I pass a JSON array?

Yes, the first element of the array is used as the template to generate the typedef.

Is my data sent anywhere?

No, the conversion is entirely local in your browser.

Related tools