Free cURL Command Generator Tool Online
Generate cURL commands with custom methods, URLs, headers, query parameters, and request bodies for API testing.
IN: Request details · OUT: curl command · RUNS: 100% in your browser
Headers
curl -X POST \
'https://api.example.com/v1/users' \
-H 'Content-Type: application/json' \
-d '{
"name": "Ada Lovelace"
}'Frequently asked questions
Why would I generate a curl command instead of just writing one?+
It's easy to get quoting, escaping, or header syntax wrong when writing curl commands by hand, especially with JSON bodies containing nested quotes — a generator produces a correctly escaped command every time.
Does this support all HTTP methods?+
GET, POST, PUT, PATCH, DELETE, and HEAD are supported via the method dropdown; the request body field only appears for methods that typically include one (POST, PUT, PATCH).
How are special characters in the request body escaped?+
Single quotes inside your body are escaped using the standard shell technique ('\'') so the resulting command runs correctly in bash, zsh, and most POSIX-compatible shells.
Can I add authentication headers?+
Yes, add a header row with a key like 'Authorization' and a value like 'Bearer your-token-here' — any custom header works the same way.
Will this command work on Windows?+
The generated command uses single-quote shell escaping, which works directly in bash, zsh, WSL, and Git Bash. Native Windows Command Prompt or PowerShell use different quoting rules, so you may need to adjust quotes there.
Is my request data (including headers and body) sent anywhere?+
No, the entire command is assembled locally in your browser from the fields you fill in — nothing is transmitted or logged.