API Response Schema Generator
Turn a JSON API response into OpenAPI, JSON Schema or TypeScript.
Example JSON response
Paste a real response body
Generated schema
responses:
200:
description: Successful response
content:
application/json:
schema:
$ref: "#/components/schemas/OrderResponse"
components:
schemas:
OrderResponse:
type: object
properties:
id:
type: string
example: ord_1024
total:
type: number
format: double
example: 42.5
currency:
type: string
example: USD
createdAt:
type: string
format: "date-time"
example: "2026-04-18T09:30:00Z"
customer:
type: object
properties:
id:
type: integer
format: int64
example: 7
email:
type: string
format: email
example: ada@example.com
vip:
type: boolean
example: true
required:
- id
- email
- vip
items:
type: array
items:
type: object
properties:
sku:
type: string
example: "TS-01"
qty:
type: integer
format: int64
example: 2
price:
type: number
format: double
example: 12.5
required:
- sku
- qty
- price
coupon:
type: string
nullable: true
required:
- id
- total
- currency
- createdAt
- customer
- items
About the API Response Schema Generator
Paste a sample API response and instantly get an OpenAPI 3 schema, a JSON Schema draft document or TypeScript interfaces — with nullable detection, array item merging, format inference for dates, emails and UUIDs, and optional example values.
Examples
User payload
JSON{"id":1,"email":"a@b.com"}Output
YAMLtype: object · properties: id (integer), email (string, format: email)Keyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
API Breaking Change Detector
API & HTTP
Diff two OpenAPI specs and flag breaking changes.
API Changelog Generator
API & HTTP
Generate a Markdown changelog from two OpenAPI versions.
API Consistency Auditor
API & HTTP
Audit an API for naming, casing and response consistency.
API Contract Analyzer
API & HTTP
Lint an OpenAPI or Swagger spec for contract quality issues.
cURL Command Parser
API & HTTP
Parse a curl command into method, URL, headers, and body.
cURL to Fetch Converter
API & HTTP
Convert a curl command into JavaScript fetch() code.
Frequently asked questions
Read more
- Postman collections and OpenAPI: two views of the same API
A collection describes calls you make; a spec describes the contract you promise. Here is how to convert between them without losing the parts that matter.
Version 1.0.0 · Updated 2026-08-20 · Runs entirely in your browser