Format

OpenAPI & Swagger Viewer — Read API Specs Online

Browse an OpenAPI 3.x or Swagger 2.0 spec as readable endpoints, parameters, responses and schemas.

Runs entirely in your browser — nothing you paste is uploaded or stored.

Paste an OpenAPI 3.x or Swagger 2.0 document, JSON or YAML

What is openapi & swagger viewer?

An OpenAPI (formerly Swagger) file describes a web API: its endpoints, the parameters each accepts, the bodies it sends and receives, and the data types involved. It is precise but hard to read as raw YAML or JSON, especially once it has hundreds of lines of nested schemas and references. This viewer turns a spec into a browsable page. Endpoints are grouped by tag with colour-coded methods, each one expands to show its parameters, request body and responses, and every schema is resolved so you see real property tables instead of pointers like #/components/schemas/Pet. It reads OpenAPI 3.x and Swagger 2.0, in JSON or YAML, and points out problems such as duplicate operation IDs or references that lead nowhere. Your spec is processed in your browser and is never uploaded, which matters for internal APIs.

When to use it

  • Reading an API spec you were handed, without installing anything or sending it to a hosted documentation service.
  • Reviewing a pull request that changes an OpenAPI file, by pasting the new version and seeing the endpoint list.
  • Finding which endpoints use a given schema or parameter, using search across paths, methods, summaries and tags.
  • Checking a spec you are writing for broken references and duplicate operation IDs before you publish it.
  • Converting a YAML spec to JSON, since the viewer can download the parsed document as JSON.

How to use this tool

  1. Paste an OpenAPI or Swagger document, or drop a .json or .yaml file onto the box. Click "Load example" for a sample.
  2. Read the overview for the API's title, version, servers and security schemes, and check any warnings below it.
  3. Search to filter endpoints, and click an endpoint to open its parameters, request body and responses. Use "Expand all" to open everything.
  4. Scroll down to the Schemas section for the reusable data types.
  5. Copy the endpoint list as Markdown for docs or an issue, or download the document as JSON.

Example

A small YAML spec with one list endpoint, one create endpoint and a Pet schema.

Input

openapi: 3.0.3
info:
  title: Pet Store
  version: 1.0.0
  description: A small example API.
servers:
  - url: https://api.example.com/v1
paths:
  /pets:
    get:
      tags: [pets]
      summary: List pets
      parameters:
        - name: limit
          in: query
          description: Maximum number of pets to return
          schema:
            type: integer
            maximum: 100
      responses:
        '200':
          description: A list of pets
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Pet'
    post:
      tags: [pets]
      summary: Create a pet
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Pet'
      responses:
        '201':
          description: Created
components:
  schemas:
    Pet:
      type: object
      required: [id, name]
      properties:
        id:
          type: integer
          format: int64
        name:
          type: string
        status:
          type: string
          enum: [available, sold]

Output

An overview card for "Pet Store v1.0.0" with 2 endpoints and 1 schema, a green POST and a blue GET under the "pets" tag, and a Pet schema listing id and name as required and status with its allowed values.

The $ref pointers to Pet are resolved for you, so the list endpoint shows "array of Pet" and the request body shows the same property table.

Reading a spec without the noise

A raw OpenAPI file buries what you usually want, which is what the API can do, under the machinery that makes it reusable: shared parameters, shared responses and schemas that refer to other schemas. This viewer follows those references for you and lays the result out the way reference documentation does. Each endpoint shows its method, path and summary on one line, and the detail stays folded until you ask for it, so a large API stays scannable.

Methods are colour-coded (GET, POST, PUT or PATCH, DELETE) and response codes are coloured by class, but every badge carries its text label as well, so nothing depends on colour alone.

Frequently asked questions

Is my API spec uploaded anywhere?

No. The document is parsed and rendered in your browser tab and nothing is sent to a server. That makes it suitable for internal or unreleased APIs. The YAML parser loads only when you paste YAML.

Which versions of the spec are supported?

OpenAPI 3.0 and 3.1, and Swagger 2.0, in JSON or YAML. Older Swagger 1.x documents are not supported. The viewer reads the parts that describe an API, namely paths, parameters, request bodies, responses, schemas, servers, tags and security schemes.

What happens to references that point to other files or URLs?

They are not followed. The viewer works offline by design, so only references inside the same document, such as

How are circular schemas handled?

A schema that refers back to itself, directly or through other schemas, is shown once and then marked as recursive where it repeats, instead of expanding forever. Very large or deeply nested documents are also capped, and the viewer tells you when a schema is shown only in part.

Does it render Markdown in descriptions?

No. Descriptions are shown as plain text with their line breaks kept. Rendering Markdown or HTML from a spec you did not write would need a sanitiser, and showing the text is the safe, faithful choice.

Is this a validator?

Only a light one. It reports problems it notices while reading, such as duplicate operationIds, references that point nowhere, paths that do not start with a slash and operations with no responses. It does not check the whole document against the official OpenAPI schema, so use a dedicated linter for strict validation.

Can I try the API from here?

No. The viewer never makes network requests, because that would break the promise that nothing you paste leaves your browser, and browsers block most cross-origin calls anyway. It shows what the API accepts and returns. To call an endpoint, copy its details into the cURL Command Builder.

Is there a size limit?

Yes, 5 million characters. Parsing happens in your browser tab, so a larger document could freeze it.

Find these tools useful? A coffee helps keep them free and ad-light.

Buy me a coffee