JSON to TypeScript Type
Infer bounded TypeScript type source from example JSON.
- Free
- No sign-up
- Runs in your browser
- Nothing uploaded
Scope: Inference describes the supplied example values only and does not validate future data or execute generated code.
Workbench
Inputs stay on this page. Press Ctrl or ⌘ + Enter to run.
How to use JSON to TypeScript Type
Fill in the fields:
- Type name.
- JSON example.
Press “Infer TypeScript”.
Copy the typescript source, or download it as inferred-type.ts.

