JSON Schema to TypeScript

TypeScript interfaces and union types from a JSON Schema, with descriptions and formats kept as doc comments.

Frequently asked questions

Which JSON Schema features are supported?

$ref to #/definitions or #/$defs, required, enum, const, oneOf/anyOf (unions), allOf, nullable types (type: ["string","null"] or nullable: true), nested objects, arrays, additionalProperties maps and common formats. External $ref URLs are not fetched.

Is JSON Schema to TypeScript free?

Yes. JSON Schema to TypeScript is free to use. You get 3 free conversions a day without an account, and unlimited use when you sign in with Google.

Are my files uploaded?

No. The conversion runs inside your browser, so your files stay on your device and are never sent to our servers.

Does it work on mobile?

Yes. PixKaro works in Chrome, Safari, Edge and Firefox on Android, iPhone, Windows and Mac.