developers.do

cURL Converter & Parser

Parse cURL commands locally and convert them to fetch, axios, Python, Go, Rust, or formatted cURL.

Samples:
Credentials detected: Header: Authorization (Authorization credential).Everything runs locally in your browser and is never sent to a server. Enable redaction before sharing generated snippets.
1const params = new URLSearchParams({
2  'env': 'production',
3});
4
5const options = {
6  method: 'POST',
7  headers: {
8    'Accept': 'application/json',
9    'Content-Type': 'application/json',
10    'Authorization': 'Bearer example-token-not-real',
11  },
12  body: JSON.stringify({
13    "name": "developers-do",
14    "visibility": "private",
15    "tags": [
16      "networking",
17      "devtools"
18    ]
19  }),
20};
21
22const response = await fetch(`https://api.example.com/v1/projects?${params.toString()}`, options);
23if (!response.ok) {
24  throw new Error(`HTTP ${response.status}: ${response.statusText}`);
25}
26const data = await response.json();
27console.log(data);
Parsed Request
POSThttps://api.example.com/v1/projects
Query Parameters (1)
envproduction
Headers (3)
Acceptapplication/json
Content-Typeapplication/json
AuthorizationBearer example-token-not-real
Body (json)
{
  "name": "developers-do",
  "visibility": "private",
  "tags": [
    "networking",
    "devtools"
  ]
}
100% Local Only: This tool parses your cURL command and generates code entirely in your browser. It never executes the request or transmits headers, cookies, tokens, or payloads to any server.

Guide

About this curl converter & parser

Paste any cURL command from API documentation or Chrome DevTools ("Copy as cURL") to inspect the parsed HTTP method, base URL, query parameters, headers, cookies, basic auth, and body payload. Convert the command into clean, copy-ready code for JavaScript fetch, TypeScript, Node Axios, Python requests or httpx, Go net/http, Rust reqwest, or formatted multiline cURL. Everything runs 100% locally in your browser without executing the request or sending credentials to any server.

How to use the curl converter & parser

  1. 1.Paste a cURL command into the input area or load one of the built-in samples.
  2. 2.Review the Parsed Request inspector on the right to verify the method, query parameters, headers, cookies, and body.
  3. 3.Choose a target language tab on the left (JS fetch, TS fetch, Axios, Python, Go, Rust, or Formatted cURL).
  4. 4.Optionally enable "Redact secrets in output" to replace tokens, API keys, cookies, and passwords with <REDACTED> before copying.

Important details

Supported shell dialects and flags

The tokenizer supports Bash/Zsh single quotes, double quotes, ANSI-C $'...' escapes used by Chrome DevTools, PowerShell backtick continuations, and Windows cmd caret (^) escaping. Common cURL flags including -X/--request, -H/--header, -d/--data/--data-raw/--data-urlencode, --json, -F/--form, -G/--get, -I/--head, -u/--user, -b/--cookie, -A/--user-agent, -L, -k, --compressed, and --max-time are parsed automatically.

100% local and never executes requests

Unlike an HTTP client that fires live network calls, this converter only parses the command text in-memory and generates source code. Authorization headers, bearer tokens, session cookies, and request bodies stay on your device.

Automatic credential detection and redaction

When Authorization headers, API keys, cookies, basic auth credentials, or common token patterns are detected, the tool highlights them and lets you toggle redaction so you can share generated snippets safely in issues or chat.

Frequently asked questions

Does this tool execute the cURL request or send my API keys anywhere?

No. Parsing and code generation happen entirely in your browser tab. No HTTP requests are sent and no input is uploaded to a server.

Does it work with Chrome DevTools "Copy as cURL"?

Yes. Both "Copy as cURL (bash)" (including $'...' ANSI-C escapes) and "Copy as cURL (cmd)" are supported.

How does -G / --get affect -d / --data flags?

Matching curl behavior, when -G or --get is present, data arguments are appended to the URL query parameters rather than sent in the request body.

References: curl manpage, MDN: Using the Fetch API