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 Build curl Commands

curl Builder

When to Build curl Commands

Generate reproducible curl commands from a URL, HTTP method, headers, and optional body. Useful when prototyping API calls, documenting integration steps, or sharing requests with teammates without pasting raw HTTP dumps.

How to Use the Builder

Enter the request URL in Input or Tool Settings, choose a method (GET, POST, PUT, PATCH, DELETE), and add headers one per line (Name: Value) plus an optional body. The tool validates the URL and shell-quotes special characters in the generated command.

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

Can I paste a raw HTTP request?

No. Use the URL, method, headers, and body fields. For pasted curl commands, use the curl to Code tab instead.

Does this execute the request?

No. This tool only builds a curl command string. Run the command separately in your terminal.