โก
Curl Command Builder
Build curl commands visually. Set method, URL, headers, auth, and request body โ get a ready-to-run curl command. Free online curl builder for developers and API testing.
About this tool
Build curl commands visually without memorizing flags and syntax. Select your HTTP method (GET, POST, PUT, PATCH, DELETE), enter the URL, add custom headers, set basic auth credentials, and paste a request body. The builder generates a properly formatted, ready-to-run curl command with correct escaping. Copy and paste directly into your terminal. Perfect for API testing, documentation, debugging, and sharing reproducible API requests with teammates.
Headers
Basic Auth (user:pass)
Generated curl command
curl \ -L \ -X GET \ -H 'Content-Type: application/json' \ 'https://api.example.com/endpoint'
How we calculate this
All calculations run entirely in your browser โ no data is sent to any server. Here is exactly how this tool works:
- Select the HTTP method โ GET, POST, PUT, PATCH, DELETE, HEAD, or OPTIONS
- Enter the full URL including protocol and any query parameters
- Add request headers one by one โ Content-Type, Authorization, Accept, and any custom headers
- For POST/PUT/PATCH, paste your request body JSON or form data
- Toggle flags โ verbose (-v), follow redirects (-L), insecure (-k), silent (-s)
- Copy the generated curl command and run it in your terminal
Frequently Asked Questions
Related Tools
๐100% Private โ runs in your browser
โกNo uploads โ instant results
๐Always free โ no sign-up
๐ฑWorks on mobile & desktop