blackdroid.dev

Postman Collection to OpenAPI

Convert a Postman Collection v2.1 export to OpenAPI 3.0 online — requests become paths with query, header and body parameters. Free, runs in your browser.

About Postman Collection to OpenAPI

Export your Postman collection (v2.1 JSON) and drop it here — every request becomes an OpenAPI 3.0 operation: :params and {{vars}} turn into path parameters, query strings into query parameters with examples, headers into header parameters, and JSON bodies into requestBody examples.

The output is YAML you can paste straight into a spec file or feed to a validator. It's a skeleton, not a finished spec: Postman doesn't carry response schemas or types, so responses come out as generic 200s for you to flesh out.

Everything converts locally — collection exports often contain tokens in headers, so nothing is uploaded.

How to use Postman Collection to OpenAPI

  1. In Postman: Collection → ⋯ → Export → Collection v2.1.
  2. Paste the JSON or load the file — the OpenAPI 3.0 YAML appears on the right.
  3. Copy or download openapi.yaml, then validate and fill in response schemas.

Frequently asked questions

Which collection format is supported?

Postman Collection v2.1 JSON — the format the Export dialog produces. Older v1/v2.0 exports and Insomnia exports have a different shape.

Where do my response examples go?

Saved Postman responses aren't part of the request structure the converter reads, so responses are stubbed as a generic 200 — add real response schemas after the conversion.

Are auth headers converted?

Auth and other custom headers become header parameters with the example value — except hop-by-hop headers (Host, Content-Length, …) which are skipped. Check for leftover tokens before publishing the spec.

Is my collection uploaded?

No — the conversion runs entirely in your browser, which matters because exports often contain live API keys.