← All tools

OpenAPI to TypeScript

Generate downloadable TypeScript declarations from OpenAPI 3.0 or 3.1 components.schemas or a single schema in JSON or YAML.

openapi-to-typescriptLOCAL WORKSPACE

Enabling local controls…

Maximum input is 256 KiB. Processing runs in your browser.

589 bytes · 30 input lines

TypeScript declarations

Generate declarations to copy or download the .d.ts file.

Validate an OpenAPI document

How to use this tool

Paste your models, generate declarations, review conversion diagnostics and copy or download the .d.ts file.

When not to use it

Bundle external schemas and use root-local JSON Pointers before converting. Keep runtime validation for value constraints and use the declarations for model types.

Read the guide →