🌐 OpenAPI → cURL Command Generator
Paste an OpenAPI 3.x specification (YAML or JSON) to instantly generate runnable cURL commands for every endpoint.
✅ 100% free, no signup, runs entirely in your browser
🔒 Privacy guaranteed:
Your OpenAPI spec is never uploaded. All parsing and conversion happen entirely inside your browser.
Generated cURL commands
🔗 Related Tools
📖 How to Use
-
1
Paste your OpenAPI specPaste your OpenAPI 3.x spec in YAML or JSON format. Use the Sample button to load an example.
-
2
Configure optionsOptionally override the base URL or set an Authorization header. Choose multi-line or single-line output.
-
3
Copy the cURL commandsEvery endpoint appears as a card with a copy button so you can send the command straight to your clipboard.
❓ FAQ
Is Swagger 2.0 supported?
OpenAPI 3.x is the primary target. Swagger 2.0 paths and methods will mostly work, but $ref resolution and complex schemas are only partially supported.
How is the request body filled in?
The tool uses the requestBody example or each property example / default first; otherwise it generates a sample by type (string becomes "string", integer becomes 0, etc.).
Can I run the generated commands as-is?
They contain sample values and placeholder tokens, so replace required parameters and credentials with real values before running them in production.