Input format
OpenAPI converters
OpenAPI documents already model your API surface. Instead of running a heavy code generator, paste the relevant components.schemas block (JSON or YAML) into one of these tools and get just the types you need.
All OpenAPI converters
15 conversions, all live.
OpenAPI → TypeScript
Live
OpenAPI → Zod
Live
OpenAPI → Yup
Live
OpenAPI → Joi
Live
OpenAPI → Pydantic
Live
OpenAPI → Python dataclass
Live
OpenAPI → Go struct
Live
OpenAPI → Rust struct
Live
OpenAPI → Kotlin data class
Live
OpenAPI → Swift struct
Live
OpenAPI → Dart class
Live
OpenAPI → Java POJO
Live
OpenAPI → C# record
Live
OpenAPI → PHP class
Live
OpenAPI → Ruby class
Live
Sample OpenAPI
Here's the default sample used across the converter pages. Each tool page has additional real-world samples (User profile, e-commerce order, etc.) you can switch to.
openapi: 3.0.3
info:
title: Sample
version: 1.0.0
paths: {}
components:
schemas:
User:
type: object
required: [id, name]
properties:
id: { type: integer }
name: { type: string }
email: { type: string, format: email }