JSON Schema to TypeScript
Convert common JSON Schema types, objects, arrays, unions, and local $refs to TypeScript.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
JSON Schema
TypeScript types
Type declarations ready to copy.
Enter a schema to see the result
What this tool does
- Turn interface schemas into type declarations
- Quickly inspect required fields
Example
Input
{"type":"array","items":{"type":"string"}}Output
export type Root = Array<string>;
Frequently asked questions
Are remote $refs supported?
No. The tool is offline and only parses local fragments.
Which schemas are supported?
Common type, properties, required, items, enum, oneOf/anyOf/allOf, and local definitions.
What about unknown keywords?
Known structure is used; an uninferable type fails strictly.
Keywords:JSON SchemaTypeScript$ref