API Response Schema Generator

Turn a JSON API response into OpenAPI, JSON Schema or TypeScript.

Support
Works Offline
Privacy First
No Login
No API

Example JSON response

Paste a real response body

Generated schema

JSON
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

Frequently asked questions

Read more

Version 1.0.0 · Updated 2026-08-20 · Runs entirely in your browser