cURL Command Builder
Assemble a cURL command from method, URL, headers and body.
curl command
Frequently asked questions
What is curl?
curl is a widely used command-line tool for making HTTP requests from a terminal or script. This builder assembles the correct curl command for you from your inputs.
How do I set the request method?
Choose the HTTP method such as GET, POST, PUT or DELETE, and the builder adds the appropriate flag to the command. GET is the default when no body is needed.
How do I add headers and a request body?
Enter each header as a name and value, and paste any body content, and the tool adds the matching header and data flags to the curl command. The assembled command reflects everything you enter.
Is my data uploaded when I build the command?
No. The command is assembled entirely in your browser as text, and the tool does not actually run the request. Nothing you type is sent anywhere.
Does the tool execute the curl command?
No. It only produces the command text for you to copy and run yourself in a terminal. It never makes the request on your behalf.
How do I send JSON with curl?
Add a Content-Type header of application/json and put your JSON in the body, and the builder includes both in the command. That tells the server the payload is JSON.
Can I include authentication in the command?
Yes. You can add an Authorization header or other auth-related headers, and they will appear in the generated command. The header travels with the request when you run it.