What is this tool?
A tool that converts cURL commands to HTTP request code in various programming languages. Instantly convert cURL commands copied from browser DevTools or API documentation into Python (requests), JavaScript (fetch), Node.js (axios), Go (net/http), PHP (cURL), or Ruby (net/http) code. Supports headers, request body, and Basic authentication.
How to use
- Paste a cURL command into the left text area.
- Select the target language from the dropdown.
- Click the "Convert" button to see the result on the right. Use the copy button to copy the result.
Examples
- Convert a cURL command copied from browser DevTools to Python code.
- Convert cURL samples from API documentation to your project's language.
- Convert REST API test cURL commands to Go, PHP, or Ruby implementation code.