Ferramentas para desenvolvedores

cURL Converter

Turn any curl command into JavaScript fetch and Python requests code. Paste a command — from API documentation, a Stack Overflow answer or your browser's network tab — and the method, URL, headers, body, auth and cookies are parsed into clean, ready-to-paste snippets. Unlike most curl converters, this one runs entirely in your browser, so commands carrying API keys or session tokens never touch a server.

Última atualização: July 2026

A cURL converter turns a curl command into equivalent code in another language. Paste a curl command and this tool parses its method, headers, body and URL, then generates ready-to-use JavaScript (fetch) and Python (requests) snippets. It runs entirely in your browser, so commands containing tokens or keys are never uploaded.

cURL ConverterFunciona no seu navegador

Como usar cURL Converter

  1. Paste a cURL command (e.g. from your browser's network tab).
  2. Read the generated fetch and requests code.
  3. Copy the snippet you need.

Perguntas frequentes

How do I get a curl command from Chrome DevTools?

Open DevTools → Network tab, right-click the request you want, then Copy → Copy as cURL. Paste it here and the equivalent fetch and requests code is generated instantly.

Does it convert curl to Python requests?

Yes — every command is converted to both Python (requests) and JavaScript (fetch) at once, so you can copy whichever you need.

Which flags are supported?

Common ones: -X/--request, -H/--header, -d/--data (and variants), -u/--user and -b/--cookie. Unknown flags are skipped.

Is my command uploaded?

No — parsing and conversion happen entirely in your browser, so it's safe for commands with tokens.

ferramentas para desenvolvedores relacionadas