katlab tools/curl support on Ko-fi

cURL · to Code

Paste a curl command and get the equivalent HTTP-request code in Python, fetch, Go, Rust and more — all in your browser.

Your curl is parsed locally. Auth tokens, keys and cookies never leave your device.
curl command
Generated code
Loading the converter…

How to convert a curl command to code (free)

  1. Paste your curl command into the left box — headers, -d data, -u auth and all.
  2. Pick a target language from the menu — Python, fetch, Go, Rust and more.
  3. Copy or download the generated code. Nothing is uploaded at any point.

curl to Python, fetch, Go and beyond

A curl command is the lingua franca for describing an HTTP request — most API docs and browser "Copy as cURL" menus give you one. This tool turns that command into ready-to-paste code: curl to Python (requests), curl to JavaScript fetch, curl to Go (net/http), plus Node (fetch and axios), Rust, PHP, Java, Ruby, C#, Swift, Kotlin, Dart, R, Elixir and PowerShell. It reads the method, URL, query string, request headers, form fields, JSON or raw bodies, and basic auth, and writes idiomatic code for the library you choose.

It runs entirely in your browser

Most "curl converter" sites POST your command to a backend. That is a problem, because a real curl command is usually copied straight from an API console and carries live secrets — an Authorization: Bearer … token, an API key header, a session cookie. This tool parses the command on your device with the curlconverter engine and a self-hosted tree-sitter Bash grammar compiled to WebAssembly. There is no server round-trip and no CDN call.

Does my auth token get sent anywhere?

No. This is the whole point of doing it client-side. Whatever is in your curl command — tokens, keys, cookies, passwords — is parsed locally and never transmitted. Open your browser's network tab while you convert and you will see no request carrying your data. Once the page has loaded, the converter works offline.

How faithful is the output?

The command is tokenised with the same Bash grammar curlconverter uses, so quoting, line continuations and the common flags round-trip well. Exotic shell constructs, or curl options that have no counterpart in the target library, may be simplified or dropped — so read the generated code before you run it, especially anything security-sensitive.