Canonical: https://toolipedia.app/openapi-swagger-spec-validator-formatter

# OpenAPI and Swagger Spec Validator and Viewer

Check an OpenAPI 3 or Swagger 2 spec in YAML or JSON for the rules that most often break, see errors with their location, browse the endpoints and reformat the file.

Breadcrumbs: Toolipedia > Developer tools > Code and developer utilities > OpenAPI and Swagger Spec Validator and Viewer

## About OpenAPI and Swagger Spec Validator and Viewer

API descriptions break in predictable ways: a path parameter without a definition, a response with no description, a duplicate operationId, a version number typed as a number, or a $ref that points nowhere. This page parses OpenAPI 3.x or Swagger 2.0 in YAML or JSON, checks those rules and a set of schema basics, and lists every problem with its location in the document. It then shows a table of endpoints with methods, summaries, tags and response codes and can reformat the whole spec as pretty JSON, YAML or minified JSON.

## How to use OpenAPI and Swagger Spec Validator and Viewer
1. Paste your spec in YAML or JSON, or open the file.
2. Read the error and warning list; each row names the place in the document and the rule that failed.
3. Check the endpoint table, then copy the reformatted spec in the format you prefer.

## Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.

## Also known as
- openapi swagger spec validator formatter and viewer
- openapi validator online
- swagger validator
- validate openapi yaml
- openapi to endpoint list
- swagger json formatter

## Frequently asked questions

### Is this the official OpenAPI schema validation?

No. It checks the rules that most often break, but not every rule in the official JSON Schema. Keep a full validator in your build for final checks.

### Why is a numeric version an error?

info.version must be a string. In YAML an unquoted 1.0 becomes a number, so put it in quotes, for example 1.0 written as a text value.

### Are external $ref files followed?

No. Only references inside the pasted document are resolved. External references are listed as notes so you know they were not checked.

### Is OpenAPI and Swagger Spec Validator and Viewer free?

Yes. OpenAPI and Swagger Spec Validator and Viewer on Toolipedia is free to use, with no sign-up and no watermark.

### Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

### Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

### Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

## Related tools

More free tools that go well with OpenAPI and Swagger Spec Validator and Viewer:
- [JSON formatter & validator](https://toolipedia.app/json-formatter)
- [Webhook tester (mock request endpoint)](https://toolipedia.app/webhook-tester)
- [JSON to YAML converter](https://toolipedia.app/json-yaml-converter)
- [GEDCOM Viewer](https://toolipedia.app/gedcom-viewer)
- [Code Formatter and Syntax Validator for Many Languages](https://toolipedia.app/code-formatter-and-syntax-validator-for-many)
