devpocket.dev

cURL to Code

Convert curl commands to Fetch, Axios, Python, Go, PHP, or Node code.

Runs locally
Loading tool…

How to use

Paste a curl command and pick a target. The parser understands shell quotes and continuations plus request method, headers, data, JSON, multipart forms, Basic Auth, cookies, redirects, insecure TLS, query mode, and compression.

Warnings identify flags that cannot be represented safely. File uploads use placeholders or local paths in generated code, so connect them to real file handles before running the snippet. Credentials remain in memory and are never saved.

FAQ

Why is the generated request not identical to curl?

HTTP clients expose different controls. Browser Fetch cannot disable TLS verification, for example, while redirect and compression defaults also vary by runtime.

Are Authorization headers saved?

No. This tool deliberately keeps the curl input in React memory only and clears it when the page is closed or reloaded.

Related tools