Skip to content

OpenAPI ViewerNew

Paste an OpenAPI or Swagger document and browse its endpoints.

Runs in your browser · free · no sign-up

Pets 1.0.0

Spec 3.0.3 · https://api.example.test/v1

A tiny demo API.

Endpoint

Select an endpoint to read its parameters and responses.

About the OpenAPI Viewer

A spec is only useful if you can scan it quickly. This viewer reads OpenAPI or Swagger text in the browser, lists every operation, and shows parameters, request body types and response codes.

An OpenAPI or Swagger file is the contract for an HTTP API, but a raw YAML document is a slow way to answer “which methods exist on /pets/{id}?”. This viewer parses the text in your browser and turns paths into a list of operations you can open. It reads OpenAPI 3 and Swagger 2, in JSON or YAML, and is intentionally small: no full editor, no Try-it-out console, no large third-party UI kit.

For each operation you see the method, path, summary, parameters (name, location, type, required), request body content types, and response codes with their descriptions. Server URLs from the document’s servers (or host plus basePath in Swagger 2) are shown at the top. Vendor extensions and generated code are ignored so the page stays light enough to prerender.

Use it as a map of a spec you already have, then hop to the API Tester or the HTTP status reference when you want to try a call or decide on a response code. Large internal specs should still be reviewed in your usual source-control tools; this is for reading, not for authoring.

How to use the OpenAPI Viewer

  1. 1Paste an OpenAPI 3 or Swagger 2 document as JSON or YAML.
  2. 2Scan the endpoint list, then open one for parameters and responses.
  3. 3Use it as a map, then try a call in the API Tester if CORS allows.

Key features

  • OpenAPI 3 and Swagger 2, JSON or YAML.
  • Endpoint list with method badges.
  • Parameters, body types and response codes for the selected operation.
  • Server URL and API title from the info block.
  • No heavy Swagger UI dependency.

Practical uses

  • Reviewing a spec before a design discussion.
  • Finding the path for a resource when the file is long.
  • Teaching how a document maps onto HTTP methods.

Tips and common mistakes

  • If YAML fails to parse, look at indentation or paste the JSON form.
  • The parser skips pieces it does not need; missing a vendor extension is expected.
  • CORS still applies if you later call one of the listed servers from the API Tester.

Limitations

  • It does not validate the spec against the official JSON Schema, and it will not render generated models in full.
  • Callbacks, links and webhooks sections are not listed yet.

Privacy

The document is parsed in this tab and is not uploaded. That allows you to inspect an internal spec without sending it to a third-party explorer.

Frequently asked questions

Which versions are supported?

OpenAPI 3.x and Swagger 2 (OpenAPI 2) objects. The parser is intentionally small and ignores vendor extensions it does not need.

Does it execute requests?

No. It only documents what the spec describes.

What if YAML fails?

Check indentation. You can also paste the JSON form of the same file.

Does this replace Swagger UI?

No. It is a lightweight reader. Use your full UI when you need “try it out”, auth flows or generated clients.

Which YAML parser is used?

The project’s existing js-yaml dependency, already shipped for other tools.

Related tools

Webhook Payload ExplainerNewExplain Stripe, GitHub and Slack webhook samples, field by field.
GraphQL Formatter & TesterNewPretty-print GraphQL and run queries against an endpoint.
HTTP Headers ParserNewParse headers and audit CORS, cache and cookie flags.
URL Query BuilderNewParse a URL into parts and rebuild the query string from a table.