curl Command Builder

Enter a URL and optional method, headers, and body in Tool Settings to generate a curl command.

  • Runs entirely in your browser
  • No data stored or sent to a server
  • Free forever — no signup
  • Instant conversion

Input and Output

Use the interactive encoder and decoder on this page to process your text.

Learn more about HTTP

How to Convert HTTP Requests to cURL

HTTP to cURL

When to Generate cURL Commands

Convert raw HTTP requests from browser DevTools, Postman exports, or server logs into copy-paste cURL commands. Share reproducible API calls with teammates, document integration steps, or replay requests from the terminal during debugging.

Supported Input

Paste a raw HTTP request including the request line, headers, and optional body. The converter produces a cURL command with method, URL, headers, and data flags. Useful when copying from the Network tab "Copy as cURL" alternative workflows.

Developer Tips

  • Redact Authorization headers and cookies before sharing generated commands
  • Add -v for verbose output when debugging TLS or redirect chains
  • Test generated cURL in terminal before adding to runbooks or CI scripts

Frequently asked questions

Are cookies and auth headers included?

Yes, if present in the pasted request. Remove sensitive headers before sharing the generated command.

Does this execute the request?

No. This tool only converts text to a cURL command. Run the command separately in your terminal.