Build a shell-safe curl command from a method, URL, headers, and body, in your browser.
Updated
/ 5 - Be the first to rate this tool Thanks for rating!
Verification failed - please try again.
Quick check
Please verify you're not a robot to submit your rating.
Give feedback
Tell us what you think about Build a curl command online.
- Runs entirely in your browser — your request data is never sent to a server
- Every value is shell-escaped, so special characters won't break the command
- Free, no account required
How it works
-
1
Choose the method and enter the URL.
-
2
Add any headers.
-
3
Type the request body if there is one.
-
4
Copy the curl command.
About the cURL Builder
curl is the common language for sharing an HTTP request, in documentation, bug reports and support chats, but getting the quoting right for headers and JSON bodies is fiddly. This builder lets you fill in the method, URL, headers and body in a form and produces a ready-to-paste curl command, with every value wrapped safely in single quotes for Unix shells.
What you can do
- Choose GET, POST, PUT, PATCH or DELETE.
- Add as many headers as you need, and remove any you no longer want.
- Write a request body, sent with --data.
- Get each value quoted for the shell, including single quotes inside your text.
- Copy the finished command.
When it works best
- Writing a reproducible request to attach to an API bug report.
- Adding an example call to a README or API documentation.
- Testing an endpoint from a terminal on a server without Postman or another client.
Things to know
- The command is assembled in your browser and the request is never sent.
- Quoting follows bash and zsh rules. Windows Command Prompt handles single quotes differently, so adjust the command there.
- There are no fields for query parameters, file uploads or authentication options; put query strings in the URL and tokens in an Authorization header.
- Remember to add a Content-Type header for JSON bodies. To read response headers, paste them into the HTTP Header Viewer.
Frequently asked questions
No, it only builds the command for you to copy.
Quoting follows bash and zsh, so adjust it for Command Prompt.
Put tokens in an Authorization header and query strings in the URL. File uploads are not supported.
GET, POST, PUT, PATCH and DELETE.