Frequently asked questions
Is my command uploaded anywhere?
No. The curl command is parsed and converted entirely in your browser. Nothing you paste, including any tokens or keys in it, is sent anywhere.
Which languages can it convert to?
JavaScript using fetch, Python using the requests library, and Node.js using axios. Switch between them with the tabs and copy the one you need.
What parts of curl does it understand?
The URL, request method, headers, request body data, basic auth, cookies, user agent and referer. Common flags that do not affect the code, like compression or following redirects, are safely ignored.
Does it handle JSON bodies correctly?
Yes. If the data looks like JSON it is passed as a JSON body in each language, using JSON.stringify for fetch, the json argument for requests, and a data object for axios. Other bodies are sent as raw strings.
A flag was ignored, is that a problem?
Some curl flags only control curl itself and have no equivalent in a code request, so they are left out on purpose. The important parts, the URL, method, headers and body, are always carried across.