Skip to content
TabKiwiTabKiwi

cURL Converter

Paste a cURL command and get the same request as fetch, Axios, Python, Go, PHP or HTTPie code.

DeveloperRuns in your browser. Your files never leave this device.
Loading tool…

About this tool

Browser dev tools and API docs hand you requests as cURL commands, but your code needs them in another language. Paste the command, including multi-line versions copied from Chrome or Firefox, and the converter reads the method, headers, cookies, authentication, JSON, form and multipart bodies, then writes equivalent code. Options it cannot translate are listed instead of silently dropped. The command is parsed in your browser and is never sent anywhere, which matters because copied requests often contain tokens.

How to use cURL Converter

  1. Copy a request as cURL, for example from the Network tab of your browser's dev tools.
  2. Paste it into the command box.
  3. Pick the target language above the code.
  4. Review any notes about options that could not be converted, then copy the code.

Frequently asked questions

Which curl options are understood?

Methods, headers, every -d/--data variant, --data-urlencode, --json, -F multipart fields and files, -u basic auth, --oauth2-bearer, cookies, user agent, referer, -G, -I, -L, -k and --compressed. Output-only flags such as -s or -v are ignored quietly.

Does it handle commands copied on Windows?

Yes. Commands copied with cmd-style ^ escapes or PowerShell backtick line breaks are unwrapped before parsing.

What happens to files referenced with @?

Multipart file uploads keep the file path in the generated code. Bodies read from a file with -d @file become a placeholder that you replace with the real content.

More Developer tools

View all 91 →