Pular para o conteúdo

🌀 conversão cURL ⇄ fetch / axios / wget

Converte comandos cURL em código de requisição HTTP para várias linguagens e bibliotecas. Preserva headers, cookies e corpo da requisição.

100% Free No signup Browser-only 5 languages Dark mode

Opções <code>cURL</code> suportadas

-X, --request
-H, --header
-d, --data
--data-raw
--data-binary
--data-urlencode
-u, --user
-b, --cookie
-A, --user-agent
-e, --referer
-F, --form
--compressed
-k, --insecure
-L, --location
-I, --head

🔗 Ferramentas relacionadas

📖 Como usar

  1. 1
    Copy from DevTools
    In Chrome/Firefox DevTools Network tab, right-click any request → Copy as cURL.
  2. 2
    Paste the cURL
    Paste the cURL command. Multi-line backslash-continued commands are handled.
  3. 3
    Pick target language
    Choose from 13 targets: fetch, axios, Python requests, Go net/http, etc. Headers, cookies, body are preserved.

❓ Perguntas frequentes

Is it fully compatible with DevTools Copy as cURL?
Yes. We support -X / -H / -d / --data-raw / --data-binary / --data-urlencode / -u / -b / -A / -e / -F / --compressed / -k / -L / -I and ANSI-C quoting. Chrome and Firefox output works as-is.
I want urllib instead of requests for Python
Pick "Python (urllib)" for a pure stdlib output — useful when you want to avoid extra dependencies (e.g., CI scripts).
How is multipart/form-data (-F) handled?
Each language gets its idiomatic form: JavaScript fetch → FormData, Python requests → files=, PHP cURL → CURLOPT_POSTFIELDS array.
How should I manage the Authorization token?
In production, store tokens in environment variables or a Secrets Manager — never commit them. Replace the token in our output with a placeholder before committing.
🐛 Você encontrou um problema com esta ferramenta?

Completamente gratuito e sem registro. Até as etapas de reprodução são suficientes. Os relatos recebidos chegam diretamente aos operadores e servem como referência para correções.

※ Para reproduzir problemas, informações do navegador (UA / tamanho de tela / idioma / URL) são enviadas automaticamente