About this tool
The JSON Schema to TypeScript tool compiles a JSON Schema document into TypeScript interfaces and type aliases, doing what the popular json-schema-to-typescript library does without installing a toolchain. Unlike the JSON-sample converters, this one reads an actual schema: it walks the schema object and turns type:'object' into an interface where keys listed in required are non-optional and the rest are marked with ?.
Everything is parsed and generated locally in your browser with JSON.parse and plain JavaScript, so your schema never leaves the page. String schemas with an enum become a union of string literals; plain string, number/integer, boolean, and null map to their TypeScript equivalents; arrays become T[] (a tuple when items is an array). Combinators are supported — allOf becomes an intersection (A & B) and anyOf / oneOf become unions (A | B) — and a nullable type:[T,'null'] becomes T | null.
References are resolved by name: $ref pointing at #/definitions/X or #/$defs/X emits a named type reference, and every definition is generated as its own export interface or export type. additionalProperties adds an index signature [key: string]: T. The root type name falls back to the schema's title or $id. Toggle interface-vs-type output and whether schema description strings become JSDoc /** */ comments. Copy the result or download a .ts file.