View OpenAPI and Swagger contracts online in YAML or JSON. Explore endpoints, parameters, responses and schemas with Swagger UI, load a contract from a URL or several files with $ref, and get warnings about common mistakes.

Swagger Viewer

Read · Explore · Understand

YAML or JSON · Up to 2 MB

API contract source
YAML / JSON0 characters

API documentation

Read-only viewer. Your contract stays in this browser.

Swagger UI uses English labels. Contract text is displayed in its original language.

Load a contract to view its documentation

Ready to read a contract

Frequently asked questions

How do I view an OpenAPI or Swagger file?

Paste the YAML or JSON contract, open the file or load it from a URL, and press “View documentation”. Endpoints, parameters, responses and schemas are shown with Swagger UI next to the contract.

My contract is split into several files with $ref. Can I open it?

Yes. Select or drop the main contract together with the files it references. The viewer joins the external references into one contract, and you can download it as YAML or JSON.

Is my API contract uploaded anywhere?

No. The contract is read and displayed in your browser. The viewer never calls your API: “Try it out” and authorization are disabled.