cURL Command Builder

Build a ready-to-run curl command for any HTTP request — headers, query params, JSON body, auth, and common flags. Everything runs locally in your browser.

Privacy: 100% client-side Shell: POSIX quoting Tip: try presets
Include any existing query string (e.g. ?page=2) or add params below.
Adds Authorization: Bearer …
Adds -u 'user:pass'
Uses -F 'field=@/path/to/file' (for local CLI use).
Uses --max-time (0 = omit).
Presets only fill the form in your browser — nothing is sent anywhere.
Want a deep dive? Read cURL: The Complete Guide and keep the cURL Commands Cheat Sheet open.

Frequently Asked Questions

How do I send JSON with curl?
Use -H 'Content-Type: application/json' and --data-raw. This builder can add the header automatically when you set Body Type to JSON.
How do I upload a file with curl?
For multipart uploads, use -F 'file=@/path/to/file'. Fill in the File upload fields to generate a matching command.
Why does curl output use single quotes?
Single quotes are the safest default in POSIX shells (bash/zsh). If your target shell is PowerShell or cmd.exe, you may need to adjust quoting.