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

  1. Paste TypeScript interface or type
  2. Click Generate Schema
  3. Review the JSON Schema output
  4. 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