cURL command builder
Build cURL commands with method, headers, JSON body, authentication and options, and get the same request in JavaScript (fetch) and Python (requests).
How to useBuild the cURL command.
cURL command builder: what it is for
Pick the method, type the URL, headers and body, and the cURL command is built instantly, with the right quotes for the macOS and Linux terminal or for Windows cmd. It includes Bearer or Basic authentication, options such as follow redirects, show headers and ignore SSL, and the same request in JavaScript (fetch) and Python (requests).
How to use
- Choose the method and type the URL.
- Fill in headers, body and authentication.
- Copy the command in cURL, JavaScript or Python.
When to use it
- Test APIs from the terminal.
- Document API usage examples.
- Convert a request to code.
Frequently asked questions
What is cURL for?
It is the most used command-line tool to test APIs: it makes HTTP requests with any method, header and body, and comes installed on macOS, Linux and Windows 10 or newer.
How do I send JSON in the body?
Choose POST, PUT or PATCH, paste the JSON in the body and pick the JSON type. The tool adds the Content-Type: application/json header and uses --data-raw with single quotes, the way it works in the terminal.
Does it work on Windows?
The commands use single quotes, which work on macOS, Linux, Git Bash and WSL. In the Windows Command Prompt (cmd) you need double quotes; check the Windows (cmd) option for that.
Is it really free?
Yes, 100% free. No sign-up, no subscription and no usage limits. All Tools123 are free.