OpenAPI to Postman Converter
Paste your OpenAPI 3.0 or Swagger 2.0 JSON spec and generate a ready-to-import Postman Collection v2.1 JSON file. Preserves all endpoints, HTTP methods, request bodies, auth headers, and security schemes. Runs 100% in your browser — nothing is sent to any server.
Frequently Asked Questions
What OpenAPI versions does this tool support?▼
OpenAPI 3.0.x and Swagger 2.0, both as JSON. YAML inputs are parsed with a minimal inline parser — for complex YAML with anchors, arrays of request bodies, or $ref resolution, convert to JSON first using a tool like js-yaml.
What does the Postman Collection v2.1 format include?▼
The generated collection includes: all HTTP endpoints (GET, POST, PUT, PATCH, DELETE), request headers (Content-Type, Accept, auth headers), sample request bodies derived from schema properties, bearer token and API key auth from OpenAPI security schemes, and a collection-level info block with a UUID.
How do I import the collection into Postman?▼
Download the .json file. In Postman, click 'Import' → 'Upload Files' → select the file. The collection appears in your sidebar with all endpoints ready to test. Set environment variables like {{token}} or {{apiKey}} in a Postman environment.
Why does my complex spec not convert fully?▼
This tool handles the core fields from spec paths: methods, summaries, request body schemas, and security schemes. Deeply nested $ref pointers, allOf/oneOf schema composition, and multi-file specs are not resolved. For full fidelity, use the official openapi-to-postmanv2 npm package locally.
Is my API spec sent to a server?▼
No. All conversion runs entirely in your browser using JavaScript. Your spec — which may contain endpoint paths, auth schemes, and internal service names — never leaves your machine.
What is the difference between OpenAPI and Swagger?▼
Swagger 2.0 is the predecessor to OpenAPI 3.0. The OpenAPI Initiative adopted and renamed the spec starting with version 3.0. Structurally: Swagger uses 'host' + 'basePath' for the base URL, while OpenAPI 3.0 uses a 'servers' array. OpenAPI 3.0 also separates request body from parameters and adds a richer component/schema system.
Related Products
on GumroadAPI Testing Cheatsheet Pack
Quick-reference cheatsheets for REST, GraphQL, and WebSocket testing. Includes Postman collections, shell scripts for smoke tests and load tests, and JWT decoder.
Buy on Gumroad →DevToolkit Starter Kit
A ready-to-deploy developer tools website with 12 built-in tools. Astro + Preact + Tailwind. Deploy to Cloudflare Pages for free. Built-in SEO, dark mode, and ad-ready layout.
Buy on Gumroad →TypeScript Quick Reference Toolkit
5 practical reference files for TypeScript developers: cheatsheet, TS vs JS comparison, 20 utility types with real examples, tsconfig best practices template, and 15 common mistakes guide. Print it. Keep it on your desk.
Buy on Gumroad →You Might Also Need
OpenAPI Validator
Paste your OpenAPI 3.x spec (YAML or JSON) to validate structure, find missing required fields, detect duplicate paths, check for missing operationIds, and get errors and warnings with path references.
Open free tool →
OpenAPI Schema Validator
Paste OpenAPI 3.x YAML or JSON and get instant validation errors and warnings. Checks required fields, paths, operations, response codes, and components. Runs entirely in your browser.
Open free tool →
OpenAPI Mock Generator
Paste an OpenAPI spec and get mock response data for testing. Generates realistic sample JSON from your API schema definitions.
Open free tool →
More Free Tools
Related Articles
API Testing Best Practices 2026: Postman vs Insomnia vs Bruno
Complete guide to API testing in 2026. Compare Postman, Insomnia, and Bruno, learn best practices for REST and GraphQL testing, and build automation pipelines that catch regressions before production.
API Testing in 2026: From cURL to Automated Test Suites
Complete API testing guide 2026: cURL basics to Postman, Insomnia, and automated suites with JavaScript and Python. Real examples included.
API Testing Tools Comparison 2025: Postman vs Insomnia vs Bruno vs Alternatives
Compare the best API testing tools in 2025: Postman, Insomnia, Bruno, Hoppscotch, and browser-based options. Features, pricing, and which to use for your team.
Best API Documentation Tools for Developers in 2025 (Swagger, Redoc, Scalar, and More)
A practical comparison of API documentation tools in 2025 — Swagger UI, Redoc, Scalar, Stoplight, and Mintlify — covering OpenAPI support, customization, hosting options, and developer experience.
Top 10 Free API Documentation Tools for Developers in 2026
The best free API documentation tools in 2026. Compare Swagger UI, Redoc, Stoplight, Scalar, and more—with practical guidance on which to choose for your project.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →