JSON Schema to TypeScript Converter
Generate TypeScript interfaces and type aliases from JSON Schema, including nested objects, arrays and local references.
Start with your input
Edit the example or replace it with your own text.
How to use JSON Schema to TypeScript Converter
- Paste or edit the json schema.
- Select generate typescript types to process the input locally in your browser.
- Review the output, then copy it or download the converted file.
Convert JSON Schema to TypeScript without losing useful fields
Supports object properties, optional fields, arrays, enums, unions, local $defs/definitions references and common JSON Schema primitive types. Unsupported validation keywords do not become TypeScript runtime checks; keep the source schema for validation.
Check the output before importing it
The converter reports invalid or unsupported input rather than guessing silently. Review the generated values in the destination application, especially date formats, nested data and identifiers that may have special meaning there.
Example input
{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","required":["id","name"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}}}}Is my input stored?
No. This conversion runs in your browser and your input is not uploaded.
Is input uploaded?
Processing takes place in your browser. This tool does not send your input or selected files to a conversion API.