Skip to content
Jellykit

cURL Command Generator

Fill in a method, URL, headers, body and auth, and get a curl command with every argument quoted safely for bash or zsh.

  • Runs on your device
Loading tool

About cURL Command Generator

Build a curl command from a form instead of fighting shell quotes. Pick the method, enter the URL and headers, add a JSON, form or plain-text body, choose basic or bearer authentication, and set redirects, compression, certificate checks and a time limit. The command updates as you type, on one line and as a tidy multi-line version.

Every argument is quoted for POSIX shells such as bash, zsh and sh, so apostrophes, dollar signs, backslashes and line breaks in a body arrive exactly as you typed them. JSON bodies are checked before the command is written. Nothing is sent: the tool only writes the command.

How it works

  1. Any argument with more than letters, digits and plain punctuation is written in single quotes, which keep everything literal in a POSIX shell. A single quote inside is written as the four characters '\'' so the shell reads it correctly.
  2. Form bodies are passed with --data-urlencode, one field each, so curl encodes the values. JSON and text bodies are passed with --data-raw, which never reads a file even when the body starts with @.
  3. A Content-Type header is added for JSON, form and text bodies unless you set one, and -X is used only when the method differs from the one curl would choose.

Questions

Will the command work in Windows Command Prompt or PowerShell?

No. The quoting is for POSIX shells: bash, zsh and sh on Linux and macOS, and Git Bash or WSL on Windows. Command Prompt and PowerShell treat single quotes differently.

Is my token or password stored or sent anywhere?

No. Nothing is sent, and the options are not saved in the address bar or in the browser. They are gone when you close the page.

Why is there no -X POST in my command?

curl already sends POST when there is a body, and GET when there is not, so -X is added only for other methods. Leaving it out also keeps redirects working the way curl intends.

Can I send a body with GET or HEAD?

No. The body options appear only for methods that normally carry one. For an unusual request, edit the generated command by hand.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.