cURL Generator
Runs locally in your browser. Your input is not uploaded.Free, no sign-up
Headers
Body
Authentication
cURL command
Build cURL commands from a method, URL, headers, body and authentication.
How to use the cURL Generator
- Fill in the method, URL, headers, body and authentication, or click Sample.
- Pick your shell; quoting differs between bash, PowerShell and Windows CMD.
- Copy the command. To change an existing one, use Import cURL to load it into the form.
Quoting in each shell
- Bash and zsh: single quotes, with
'\''for a quote inside, and\to continue a line. - PowerShell: single quotes with
''inside,`to continue, andcurl.exe, becausecurlis an alias forInvoke-WebRequestin Windows PowerShell. - Windows CMD: double quotes with
""inside, and^to continue a line.
Frequently asked questions
Does this send the request?
No. It only writes the command; nothing is sent, and tokens you type stay in your browser.
What does --data-raw do?
It sends the body exactly as written. Plain -d treats a leading @ as a file name and strips line breaks, which can corrupt JSON.
Related tools
All tools- cURL → JavaConvert cURL commands to Java HttpClient, Spring RestClient or WebClient code.
- cURL → JavaScriptConvert cURL commands to JavaScript fetch() code.
- cURL → PythonConvert cURL commands to Python requests code.
- HTTP Request BuilderBuild an HTTP request and generate the raw message plus cURL, Java, JavaScript and Python code.
- HTTP Status Code LookupLook up HTTP status codes with clear descriptions and typical causes.