cURL to Code Converter

Paste a cURL command, for example copied from your browser or an API manual, and get ready-to-use code.

How this is worked out

The command is split into words the way a shell does (quotes and line continuations respected), then the method, URL, headers, body, basic-auth user and common flags are read and written as code in the language you choose. Options with no effect on the request, such as -s or --compressed, are skipped, and unsupported ones are listed under the result. Run the generated code against a test endpoint before relying on it.

Related tools: Http Status Lookup, Url Parser, Json Formatter.

Something not working on this page? Tell me through the Contact page: that is how I find out what is broken and fix it.