Skip to content
Draw your API spec

OpenAPI Visualizer

Paste an OpenAPI 3.x / Swagger 2.0 spec (YAML or JSON) and see how **endpoints (by tag) → schemas → the $ref links between schemas** connect. You can see which endpoints use a schema and what a change to it would affect. Includes checks for **missing references, unused schemas, duplicate operationId and undeclared path parameters**. Runs only in your browser.

To use several files, paste them one after another, separated by lines like `--- # file: ./common.yaml` (the first is the main spec). `$ref` to the other files (`./common.yaml#/components/schemas/User`, or a schema-only file such as `./Order.yaml`) then connects in the diagram.

The spec (up to 200,000 characters), display settings and node positions are saved automatically in this browser (nothing is sent to a server).

API diagram

Drag nodes to rearrange them (arrow keys work too). Hover or click to highlight only the upstream and downstream. Solid lines go from an endpoint to the schemas it uses (req is the request, numbers are statuses); dotted lines go from a schema to the schemas it references.

🔒 marks endpoints with authentication (security); a gray box is deprecated.

Things to check

A mechanical check of the pasted spec only. $ref to external files is not read.

Guide

How to use & features

  • Paste an OpenAPI 3.x / Swagger 2.0 spec (YAML or JSON) into the box. A sample is loaded at first.
  • The diagram goes from endpoints (such as `GET /users`) to the schemas they use and then to the schemas those reference. A solid `req` line is the request and numbers are response statuses.
  • "Tag" narrows the diagram to the endpoints of one tag. For large specs, filtering makes it easier to read.
  • Click a node to see an endpoint's operationId and responses, or which endpoints use a schema. "Things to check" appear under the diagram.
FAQ

FAQ

  • What does the diagram show?

    It shows which schemas each endpoint (grouped by tag) uses in its request and responses, and which schemas those reference through `$ref`. You can follow the lines to see which endpoints a change to a schema would affect.
  • What does it check?

    A `$ref` whose target is not in `components`, schemas that nothing uses, duplicate `operationId`, no success (2xx) or default response, a `{id}` in the path that is not declared as an `in: path` parameter, schemas with a circular `$ref`, missing `operationId`, and no authentication definition. It is a mechanical check, so intended settings can be reported too.
  • Can it read `$ref` to other files?

    Yes. Paste several files one after another, separated by `--- # file: ./common.yaml` lines, and references such as `./common.yaml#/components/schemas/User` (or to a schema-only file like `./Order.yaml`) connect in the diagram (the first file is the main spec). `$ref` to files or URLs that are not pasted cannot be read, and the checks report their count and examples. You can also paste a single bundled file.
  • Is my spec sent to a server?

    No. Everything runs in your browser and nothing is sent to a server. Content up to 200,000 characters and the display settings are saved only in this browser's localStorage, and "Clear saved data" deletes them.
Use cases

Common use cases

  • Check the impact before changing an API

    Before renaming a schema or its fields, follow the diagram and node details to see which endpoints use it and which other schemas reference it.
  • Review or inherit a spec

    Get the whole picture of a spec from a PR or an inherited API in a diagram grouped by tag. Also useful for finding duplicate operationId and cleaning up unused schemas.
Notes

Notes & limitations

  • It only sees the pasted spec

    `$ref` to files or URLs that are not pasted is not read. For a multi-file spec, paste the files separated by `--- # file: …` lines, or paste the bundled single file.
  • `$ref` is resolved only for components

    `$ref` in `requestBodies`, `responses` and `parameters` is followed one level. `callbacks`, `links` and `webhooks` are not drawn.
  • Large specs are viewed through a filter

    At most 160 nodes are drawn. Endpoints beyond that are drawn from the top, and you can narrow by "Tag".

Articles for this tool

Recent Articles