OpenAPI to TypeScript
Generate TypeScript types from OpenAPI 3.0 / 3.1 YAML or JSON documents locally in your browser with common codegen options.
OpenAPI to TypeScript
Generate TypeScript types online from OpenAPI 3.0 / 3.1 YAML or JSON documents with common codegen options, copy support, and `.d.ts` downloads.
How to use
- Paste an OpenAPI YAML or JSON document and the tool will parse it locally in the browser.
- Toggle options such as `export type`, `enum`, `rootTypes`, and `path params` to shape the output.
- Review the generated TypeScript and check for external `$ref` usage or document structure issues.
- Copy the result or download it as a `.d.ts` file for API integration, SDK drafts, and type reviews.
Features
- Converts OpenAPI 3.0 / 3.1 YAML / JSON into local TypeScript types
- Supports common `openapi-typescript` codegen options and header comment control
- Includes sample loading, file import, external `$ref` detection, copy, and `.d.ts` download
Why use this?
- Useful for contract checks, frontend-backend integration, SDK prototypes, mock schemas, and editor autocomplete setup
- Faster and safer than manually rewriting response and request shapes from API docs
- Runs fully in the browser so your API schema never needs to leave the local machine