TypeScript Interface to JSON Schema
Paste a TypeScript interface and get a JSON Schema suitable for ajv or similar validators.
Summary
Paste a TypeScript interface and get a JSON Schema suitable for ajv or similar validators.
How it works
- Paste TypeScript interface or type
- Click Generate Schema
- Review the JSON Schema output
- Use in your validator configuration
Use cases
- Generating runtime validation from TypeScript types
- Creating OpenAPI schemas from TS interfaces
- Sharing type contracts between teams as JSON Schema
Frequently Asked Questions
Last updated: 2026-06-10 ·
Reviewed by Nham Vu