JSON to TypeScript Types

Generate TypeScript types from JSON samples, merge array-object fields into unions and optional properties, then copy or download types.ts.

Input

Up to 1000000 UTF-16 input units, 64 levels, 100000 values and 20000 object properties; at most 2000000 output units.

Names use PascalCase; blank names become Root and leading digits gain Type. Names accept up to 80 characters.

Enter JSON and generate types, or load the sample.

JSON to TypeScript Types

Generate TypeScript types from JSON samples, merge array-object fields into unions and optional properties, then copy or download types.ts.

Usage guide