The parser handles common cURL forms such as request method flags, header flags, data flags, basic auth, explicit URL, and compressed response hints. If data is present without an explicit method, the request is treated as POST.
Choose Python requests, JavaScript Fetch, Node.js Axios, or Go net/http. Headers, request body, and basic auth are carried into the generated snippet, with string escaping applied for each target language. Review generated code before pasting secrets or production credentials.
Common questions and answers about this topic.
The converter supports four target languages: Python (using the requests library), JavaScript (using the Fetch API), Node.js (using Axios), and Go (using net/http). Select your target language from the dropdown before or after pasting your curl command.
The converter handles common API-call options including -X / --request, -H / --header, -d / --data / --data-raw / --data-ascii / --data-binary, -u / --user, --url, and --compressed. URL query strings are preserved as part of the URL. Cookie flags, redirect behavior, and --data-urlencode are not expanded into special generated-code handling yet.
The converter recognizes curl's -u flag for basic authentication and Authorization headers (Bearer tokens, API keys). These are translated to the equivalent authentication mechanism in each target language, such as auth parameters in Python requests or Authorization headers in Fetch/Axios/Go.
No, the curl command conversion is handled entirely by JavaScript in your browser. Your curl commands, including any API keys or tokens they contain, are processed locally and never transmitted to any server.