OpenAPI ↔ Postman Converter.
Convert OpenAPI 3 / Swagger 2 into a Postman v2.1 collection, or a Postman collection into OpenAPI 3.0.
Runs in your browserAbout OpenAPI ↔ Postman Converter
The OpenAPI ↔ Postman Converter moves an API description between the two most common formats. Paste an OpenAPI 3.x or Swagger 2.0 definition, in YAML or JSON, and get a Postman v2.1 collection: operations are grouped into folders by their first tag, path templates such as /pets/{petId} become :petId path variables, query parameters get example values (optional ones are added but disabled), header parameters become headers, and request bodies are filled from examples or generated from the schema, following $ref, allOf, oneOf and formats such as date-time, email and uuid. The server URL, with server variables replaced by their defaults, becomes a {{baseUrl}} collection variable, bearer, basic and API key security schemes become collection or request auth, and response examples become saved responses. Paste a Postman collection instead and the direction flips automatically: folders become tags, :id and {{id}} segments become path parameters, raw JSON bodies become request bodies with an example and an inferred schema, form bodies become form schemas, saved responses become documented responses, and collection auth becomes a security scheme. The output is OpenAPI 3.0.3 in YAML or JSON. Conversion is structural, so descriptions written only in Postman test scripts or pre-request scripts are not carried over, and inferred schemas should be reviewed and tightened. External $ref files cannot be fetched and are left empty. Everything runs in your browser.
How to Use
- Paste an OpenAPI/Swagger definition or a Postman collection; the direction is detected.
- Choose YAML or JSON for OpenAPI output.
- Download the result and import it into Postman or your API tooling.
Frequently Asked Questions
Which versions are supported?
OpenAPI 3.0 and 3.1 and Swagger 2.0 as input; Postman Collection v2.1 as output. Postman v2.0 and v2.1 collections convert to OpenAPI 3.0.3.
How are request bodies created?
From the example in the definition when there is one, otherwise from the schema - each property gets a value that fits its type and format, and recursive references stop safely.
Are external $ref files resolved?
No. Only references inside the pasted document (#/components/…) are followed, because the page does not make network requests.
Is my API definition uploaded?
No. The conversion runs in your browser.
Related Tools
Validate an OpenAPI 3.0/3.1 or Swagger 2.0 JSON document and list its endpoints, refs and common mistakes.
Build HTTP requests and generate code in cURL, PHP, JS, and Python.
Convert curl commands to PHP, JavaScript, or Python code.
Inspect a browser HAR file as a request table and turn any entry into a ready-to-run cURL command.
Convert between YAML and JSON formats.
Pretty print, minify, and validate JSON.