OpenAPI / Swagger Validator
Validate OpenAPI 3.x and Swagger 2.x specs. Paste JSON or YAML to check structure, browse endpoints, and inspect components.
Validate OpenAPI 3.x and Swagger 2.x specs. Paste JSON or YAML to check structure, browse endpoints, and inspect components.
OpenAPI (formerly Swagger) is a specification for describing RESTful APIs in a machine-readable format. An OpenAPI document describes endpoints, request/response schemas, authentication methods, and more. Tools can read these documents to generate client SDKs, documentation, mock servers, and tests automatically.
OpenAPI 3.0+ is the current standard. Swagger 2.0 is the older format still used by many APIs. This tool validates both.
OpenAPI 3.0 is a major revision of Swagger 2.0. Key differences: OpenAPI 3.x uses "openapi" as the version field, restructures server URLs (servers array instead of host/basePath), supports multiple request body types, and has a more flexible components section. Swagger 2.0 uses the "swagger" field and is identified by version "2.0".
The minimum required fields are: "openapi" (version string like "3.0.0"), "info" (with "title" and "version" sub-fields), and "paths" (an object mapping URL paths to operations). Everything else — servers, components, security schemes — is optional.
Yes. This validator runs entirely in your browser using JavaScript. Your spec is never sent to any server, making it safe to use with proprietary or internal API specifications.