cURL to Code Converter

Convert cURL commands to Fetch, Axios, Python Requests, and Go.

About cURL conversion

This tool reads a cURL command and writes the same request as code: Fetch, Axios, Python Requests, or Go. It keeps the method, the headers, the body, and the query values.

A browser gives you a cURL command through Copy as cURL in the network panel. Paste it here to turn a request that you captured into working code.

Check the command before you paste it. A captured request often holds a session cookie or an authorization header. Remove the secret, and never commit it.