OpenAPI / Swagger Validator & Viewer.
Validate an OpenAPI 3.0/3.1 or Swagger 2.0 JSON document and list its endpoints, refs and common mistakes.
Runs in your browserAbout OpenAPI / Swagger Validator & Viewer
The OpenAPI / Swagger Validator checks an API description for the mistakes that break code generators, mock servers and documentation portals, and lists every endpoint in a readable table. Paste an OpenAPI 3.0, OpenAPI 3.1 or Swagger 2.0 document in JSON and you get the method, path, operationId, summary and tags of each operation, plus a list of problems with their JSON Pointer location. The checks cover the rules people break most often: required info.title and info.version, paths that do not start with a slash, path templates such as /users/{id} whose parameter is not declared or is declared without "required": true, parameters declared twice, duplicate operationIds, response keys that are not status codes, responses without a description, request bodies without content, security requirements that name an undefined scheme, two paths that differ only in template names, and every local $ref that points nowhere. For example, a 404 response written as {} is reported because every response needs a description. External references to other files are listed as warnings because they cannot be followed from a single document. This is a structural validator written for these rules, not a full JSON Schema validation of every field against the official meta-schema, so a clean result means the common errors are absent rather than a formal certificate. YAML documents are not supported yet: convert them to JSON first with the YAML to JSON tool. Everything runs in your browser and the document is never uploaded.
How to Use
- Paste an OpenAPI 3.x or Swagger 2.0 document in JSON.
- Review the endpoints table to see the API at a glance.
- Fix the issues listed with their JSON Pointer locations.
Frequently Asked Questions
Which versions are supported?
Swagger 2.0, OpenAPI 3.0.x and OpenAPI 3.1.x. The version is read from the "swagger" or "openapi" field, which must be a string such as "3.1.0".
Can I paste YAML?
Not yet. Convert the YAML to JSON first, for example with the YAML to JSON tool on this site, then paste the JSON here.
Is this a complete validation against the official schema?
No. It checks the structural rules that most often break tooling, including every local $ref. Rare schema-level constraints are not checked, and external $refs are only reported.
Is my API spec uploaded?
No. The document is parsed and checked in your browser, and the page makes no network requests while you use it.
Related Tools
Pretty print, minify, and validate JSON.
Convert between YAML and JSON formats.
View JSON as a tree with types and sizes, and get the JSONPath and JSON Pointer of every value.
Build HTTP requests and generate code in cURL, PHP, JS, and Python.
Convert curl commands to PHP, JavaScript, or Python code.
Reference for all HTTP status codes.