Short answer
Swagger is the toolset, and OpenAPI is the specification. Swagger UI renders an interactive page from the document. Swagger Editor is where you write it. spec.openapis.org publishes version 3.2.1, dated September 10, 2026. The OpenAPI Initiative says SmartBear donated the Swagger Specification.
Last verified against the sources listed below.
Key takeaways
- Swagger UI and Swagger Editor are tools. OpenAPI is the specification they support.
- The UI page says OpenAPI was formerly known as the Swagger Specification.
- spec.openapis.org publishes version 3.2.1, dated September 10, 2026.
- An OpenAPI document is a JSON object that may be written as JSON or YAML.
- The OpenAPI Initiative says it is under the Linux Foundation and that SmartBear donated the Swagger Specification.
What is swagger, in the current docs, is the name of the tools and the old name of the specification. Swagger UI and Swagger Editor read an OpenAPI document. The document itself follows the OpenAPI Specification.
People still say Swagger when they mean that file. The tool pages say the specification was formerly known as Swagger, which is why the names stick together.
Back-end development is where the API lives. The specification does not replace the server. It describes the HTTP surface so a person or a generator can see it without reading the implementation.
What is the specification?
OpenAPI is a language-neutral description of an HTTP API.
The latest published text, OpenAPI Specification v3.2.1, is dated September 10, 2026. It says the specification defines a standard, programming-language-agnostic interface description for HTTP APIs. Humans and computers can discover what the service can do without the source code, extra docs, or watching network traffic.
When the description is in place, a consumer can interact with the service with a minimal amount of implementation logic.
An OpenAPI document that conforms is a JSON object. It may be written as JSON or as YAML. The spec shows examples in YAML because that is shorter.
It recommends YAML 1.2, plus further constraints, so the file can round-trip to JSON. Authors should not rely on YAML values that JSON cannot represent. Field names are case-sensitive unless a specific field says otherwise.
The openapi field is required. It is the spec version the file uses, and tools should read it to interpret the document. It is not info.version, which is the version of your API.
The root also requires info. At least one of components, paths, or webhooks must be present. A description can be one file or several files linked by references.
The page at swagger.io/specification is titled Version 3.2.0. Use the latest URL when you need the current number. A generator that only mentions 3.0 or 3.1 is talking about an older feature set.
The 3.2.1 page says the major.minor portion names the feature set, and patch versions clarify the document.
What do the tools do?
UI shows the API. Editor is where you write the document.
| Piece | Job in the docs |
|---|---|
| OpenAPI document | The JSON or YAML description of the HTTP API |
| Swagger UI | Renders that document as interactive documentation |
| Swagger Editor | Edits the document, checks OAS syntax, and can preview it |
| OpenAPI Initiative | Maintains the specification under the Linux Foundation |
Swagger UI says anyone can visualize and interact with the API’s resources without the implementation logic in place. The page is generated from your OpenAPI Specification, which that page still glosses as formerly known as Swagger. It lists support for Swagger 2.0 and OAS 3.*.
The UI works in the browser or locally. The source is public on GitHub.
Swagger Editor is the writing tool. The page says it was the first open source editor with support for multiple API specifications, and it names Swagger 2.0, OpenAPI 3., and AsyncAPI 2.. It validates syntax as you type, can render the API while you define it, and can generate server stubs and client libraries.
The page also says the editor is integrated into Swagger Studio for teams. That hosting pitch is separate from the specification.
The character counter is a small check when a path or a field name has a length limit in your own style guide. The spec does not set a character cap for a path. Your review might.
Who maintains the name?
The OpenAPI Initiative maintains the specification. SmartBear donated the earlier Swagger Specification.
The initiative’s about page says it was created so API descriptions could be standardized, and that it is an open governance structure under the Linux Foundation. It says the OpenAPI Specification was originally based on the Swagger Specification, donated by SmartBear Software. The Linux Foundation’s homepage describes the foundation as a neutral hub for open technology projects.
The about page is the sentence that places this specification there. The homepage does not, by itself, list OpenAPI.
The initiative’s own “What is OpenAPI?” page calls the specifications a formal standard for describing HTTP APIs, useful for understanding a single API or a sequence of them, generating client code, creating tests, and applying design standards. It also says the work has grown beyond one document.
The about page names the Arazzo Specification for workflows across many APIs, and the Overlay Specification for updating a description in a deterministic way. Those are sibling specs. They are not Swagger UI.
What should you not mix up?
Do not treat a tool screen as the spec, or a spec version as your API version.
| Mix-up | What the pages actually say |
|---|---|
| Swagger UI is the specification | UI is generated from the document |
| The openapi field is your release number | openapi is the spec version. info.version is the API |
| Version 3.2.0 on swagger.io is the latest file | spec.openapis.org/oas/latest.html is v3.2.1 |
| Every document must be YAML | JSON or YAML both represent the same JSON object |
| AsyncAPI is an OpenAPI version | The Editor page lists AsyncAPI 2.* as another format it can edit |
| The spec chooses your server language | The description is language-agnostic. Codegen is a tool feature |
Write the document to the version in the openapi field, then open it in Swagger UI if you want the interactive page. When a teammate says “the Swagger,” ask whether they mean the file or the UI. The about page’s history explains the overlap.
The tool pages explain the split.
Frequently asked questions
Is Swagger the same thing as OpenAPI?
They are related and not identical. The Swagger UI and Swagger Editor pages say the OpenAPI Specification was formerly known as Swagger. Those same pages describe UI and Editor as tools that visualize, edit, and check a document. The OpenAPI Initiative's about page says the specification was based on the Swagger Specification donated by SmartBear, and that the initiative is an open governance project under the Linux Foundation.
Which version should a new document use?
The latest published page at spec.openapis.org is OpenAPI Specification v3.2.1, dated September 10, 2026. The openapi field in the document is the spec version the file uses, and it is separate from info.version, which is your API's own version. The page at swagger.io/specification is titled Version 3.2.0, so a bookmark there can lag the latest published file.
Does the document have to be YAML?
No. Version 3.2.1 says an OpenAPI document is a JSON object that may be represented in JSON or YAML. Examples in the spec are YAML for brevity. YAML 1.2 is recommended so a file can round-trip to JSON, with extra constraints the spec points at. Field names are case-sensitive unless the spec says otherwise.
What does Swagger Editor check?
The Editor page says it validates syntax for OAS compliance while you write, offers auto-completion, and can render the API while you are still defining it. It lists support for Swagger 2.0, OpenAPI 3.*, and AsyncAPI 2.*. It also says you can generate server stubs and client libraries. That generation is a tool feature.
What is the openapi field for?
In the 3.2.1 spec, openapi is a required string on the root object. It must be the version of the OpenAPI Specification that the document uses, and tooling should read it to interpret the file. It is not info.version. The root also requires an info object, and at least one of components, paths, or webhooks. A document can be one file or several files joined by references.
Sources
- OpenAPI Specification v3.2.1 · OpenAPI Initiative, 2026
- OpenAPI Specification on swagger.io · Swagger, 2026
- Swagger UI · Swagger, 2026
- Swagger Editor · Swagger, 2026
- About the OpenAPI Initiative · OpenAPI Initiative, 2026
- What is OpenAPI? · OpenAPI Initiative, 2026
- The Linux Foundation · The Linux Foundation, 2026