API

cURL Command Builder

Fill in method, URL, headers, and body to generate a ready-to-paste cURL command no need to remember flag syntax.

Did this tool save you some time? A quick testimonial helps a lot.

Share your experience

About this cURL Command Builder

Fill in method, URL, headers, and body to generate a ready-to-paste cURL command no need to remember flag syntax.

Usage and privacy

How to use it

Add your input to the workspace above, review the result, then copy or download it when it's ready. No account or installation is required.

Private by design

cURL Command Builder runs in your browser, so the information you enter stays on your device instead of being uploaded to a server.

cURL Command Builder examples

A few worked examples so you know what to expect before you paste in your own input.

POST request with a JSON body

Input

Method: POST
URL: https://api.example.com/users
Header: Content-Type: application/json
Body: {"name":"Ada"}

Output

curl -X POST https://api.example.com/users \
  -H "Content-Type: application/json" \
  -d '{"name":"Ada"}'
GET with an auth header

Input

Method: GET
URL: https://api.example.com/me
Header: Authorization: Bearer abc123

Output

curl https://api.example.com/me \
  -H "Authorization: Bearer abc123"
DELETE request

Input

Method: DELETE
URL: https://api.example.com/users/42

Output

curl -X DELETE https://api.example.com/users/42

Frequently Asked Questions

Related Tools