What is the cURL Command Builder?
cURL is a command-line tool for making HTTP requests, available on macOS, Linux and Windows. Its syntax can be complex — this builder lets you fill in the URL, method, headers and body through a form and generates the complete curl command ready to copy and run in your terminal.
How to Use It
Open the tool
Go to JSON & API and scroll to the cURL Command Builder.
Enter the URL
Type the full API endpoint URL, e.g. https://api.example.com/users.
Set method and headers
Select GET, POST, PUT, DELETE or PATCH. Add headers like Content-Type: application/json or Authorization: Bearer token.
Add body and copy
For POST/PUT, add the JSON request body. Copy the generated curl command and run it in your terminal.
Key cURL Flags Explained
-X POST — Sets the HTTP method. -H "Header: Value" — Adds a request header. -d '{"key":"val"}' — Sets the request body. -s — Silent mode (no progress output). -v — Verbose mode (shows request and response headers). -o file.json — Saves the response to a file.
Pro Tips
| python3 -m json.tool at the end to pretty-print JSON responses directly in the terminal.TOKEN="abc123") and reference with $TOKEN in your curl command for better security in shell history.-s -o /dev/null -w "%{http_code}" to check only the HTTP status code without showing the response body.Frequently Asked Questions
-X POST do?-X, cURL defaults to GET. Other methods: -X PUT, -X DELETE, -X PATCH.-H do?-H flags for multiple headers: -H "Content-Type: application/json" -H "Authorization: Bearer token".-d do?-d is used, cURL automatically uses POST unless -X specifies a different method.Build your cURL command now
Open the cURL Builder and generate any HTTP request command without memorising flags.
Open cURL Builder →