Skip to main content
>_devtools

Swagger 2 to OpenAPI Converter

Convert a Swagger 2.0 document to an explicit OpenAPI 3.0 or 3.1 target using Scalar's local upgrader.

How to use it

Convert a Swagger 2.0 document to an explicit OpenAPI 3.0 or 3.1 target using Scalar's local upgrader. Paste a Swagger 2.0 JSON or YAML document and choose an OpenAPI 3.0 or 3.1 target.

Example

Input: swagger: "2.0"; info: {title: Pets, version: 1}
Output: openapi: 3.1.0 with converted document fields

Limits and behavior

  • The local upgrader reports constructs it cannot safely convert.
  • Documents are limited to 5 MiB and remote references are not fetched.