JSON to TypeScript

100-tools / dev

Paste a JSON sample, set the root type name and output style, and infer nested TypeScript objects and arrays as a starting point for interface definitions.

Loading tool…

How to use JSON to TypeScript

  1. Paste a valid JSON sample.
  2. Set the root name and output style.
  3. Copy the result and refine constraints for the real API.

Scope and notes

One sample cannot describe a complete API contract. Check missing fields, optional properties, and unions against actual data.