cURL Generator
cURL Generator
Generate cURL commands from method, URL, headers, and request body values.
Request Configuration
cURL Generator Result
About The cURL Generator
cURL Generator builds a terminal-ready cURL command from a request method, URL, optional headers, optional body, and common transport flags. It is meant for API testing, bug reports, and quickly sharing reproducible HTTP requests.
The command is generated locally in your browser. The page validates that the URL starts with HTTP or HTTPS, but it does not send the request for you.
How to Generate a cURL Command Online
- Choose the request Method.
- Enter the full URL, including
http://orhttps://. - Add one header per line in Headers, such as
Content-Type: application/json. - Add a request body when the endpoint expects one.
- Click Generate cURL and copy the generated command.
Choosing Options Correctly
--compressed:
Leave this on for normal API testing when you want cURL to request compressed responses. Turn it off if you need the simplest possible command.
--insecure:
Leave this off for normal requests. Turn it on only for local development or test systems with self-signed certificates.
Common Use Cases
- Creating a reproducible API request for debugging.
- Sharing a failing request with a teammate or vendor.
- Turning a browser or app request into a script-friendly command.
- Testing POST, PUT, PATCH, or DELETE endpoints with JSON bodies.
Quick FAQ
Does this tool execute the cURL command?
No. It only generates a command string for you to review and run elsewhere.
Why are my headers ignored?
Headers may be blank, malformed, missing a colon, duplicated, or entered in a format the parser does not recognize.
Should I paste real tokens here?
Avoid live Authorization headers, cookies, API keys, or signed URLs. Use placeholders in generated examples.
Can I include a body in a GET request?
Some clients allow it, but many servers and intermediaries do not expect GET bodies. Use the method your API documents.
Related Tools
URL Parser
Parse URL components including query parameters in one view.
HTTP Status Lookup
Find HTTP status codes quickly with meaning and category details.
MIME Type Lookup
Look up MIME types by extension or find common extensions from MIME values.
User Agent Parser
Parse user agent strings into browser, OS, device, and engine details.