Skip to main content
KalkuNet

cURL Command Builder — Compose HTTP Requests Without Quoting Mistakes

Assemble GET/POST/PUT curl commands with custom headers & JSON bodies.

Runs in your browserDeveloper · Formatters, Minifiers & Code Builders
Method:
Query parameters
Headers
Request body:
Authentication:
  • Every part is single-quoted for POSIX shells (bash, zsh, sh), and a quote inside is written '\''. Query parameters and form values are percent-encoded, so spaces, & and non-ASCII characters are safe.

When to use the Shell-Escaped curl HTTP Request Builder

  • Fill in fields, copy the command

    Pick the method, type the URL, add query parameters and headers, then choose the body: JSON, urlencoded form, multipart or raw text. The curl command builds at once, ready to paste into a terminal or API docs.

  • Quoting that is always right

    Every part is single-quoted for bash and zsh, and a quote inside a value is written '\''. Names such as O'Brien or JSON holding quotes no longer break the command.

  • Automatic encoding

    Query parameters are percent-encoded in the URL, and form fields use --data-urlencode so spaces, & and non-ASCII characters are safe. JSON goes through --json, which sets Content-Type and Accept as well.

  • Tested with real curl

    Testing runs every command this tool builds through bash and curl against a test server and checks that the method, URL, headers, body and authentication received are exactly what was entered.

Frequently asked questions

Does it work on Windows?

The command is for POSIX shells such as bash, zsh, Git Bash and WSL. Command Prompt uses different quoting rules.

Why is -X not always written?

curl already uses GET without a body and POST with one, so -X is only written when the method differs from that.

What about uploading files?

This builder writes text fields. To send a file, add -F name=@filename to the command; curl reads that file from the folder where the command runs.

Can I turn it into code?

Yes. Paste the command into the cURL to fetch or cURL to Python and Go converter.

Is the request sent?

No. This tool only composes the command in your browser.

Learn more