cURL Analyzer

Paste a cURL command to see its method, URL, headers, cookies, body and auth, and convert it to JavaScript fetch() code. Free online tool.

About this tool

Paste a cURL command to see the request it sends: method, URL, query parameters, headers, cookies, body and authentication. It also converts the command to JavaScript fetch() code.

How to use

  1. Paste a cURL command, for example from your browser's "Copy as cURL".
  2. Review the request parts and notes.
  3. Copy the generated fetch() code.

Frequently asked questions

Which options are supported?

Common ones such as -X, -H, -d and its variants, --json, -F, -u, -b, -A, -e, -G, -I, -L and -k. Unsupported options are listed as notes.

Is the request actually sent?

No. The command is only parsed.

Why is -k not in the fetch code?

Browsers cannot skip TLS certificate checks, so the option is noted as a comment.

Related tools