TypeScript code Input
JSON Schema Output
Select which interface/type should be treated as the JSON Schema root.
Parsing runs entirely in your browser. Your source never leaves the page.
Paste your TypeScript types to produce JSON Schema instantly.
Supports interfaces, type aliases, public class fields, optional/readonly modifiers, and union types.