How to use
- Paste the cURL command (line continuations with \ are supported).
- Choose the output language.
- Review the warnings about unsupported flags.
- Copy the generated code.
Use cases
- Turning API documentation examples into ready-to-use code.
- Reproducing a request copied from DevTools (Copy as cURL) in code.
- Migrating shell scripts into applications.
Technical concepts
Supported flags
-X/--request, -H/--header, -d/--data/--data-raw/--data-binary, --data-urlencode, --json, -u/--user (converted into Authorization Basic), -A, -b, -e, -G and -I. Terminal behavior flags such as -s, -L, -k and --compressed are ignored.
cURL's implicit rules
With -d and no -X, cURL uses POST and Content-Type application/x-www-form-urlencoded. With -G, the data is appended to the URL as a query string. The converter mirrors these rules to generate equivalent code.
JSON bodies
When the body is valid JSON, the generated code represents it as a native structure: JSON.stringify of an object in JavaScript and json= with a dictionary in Python, making it easy to edit.
Frequently asked questions
Are multipart uploads (-F) supported?
Not yet. The converter warns when it finds -F so you can build the FormData manually.
Why does the Lua output use PerformHttpRequest?
The Lua target generates code for the CitizenFX runtime (FiveM/RedM), which provides PerformHttpRequest natively on the server.
Does my token appear in the generated code?
Yes, headers are copied literally. Conversion is local, but remember to move secrets into environment variables before committing.