DEVELOPER TOOL
cURL Command Generator
Build a properly quoted curl command from a method, URL, headers, and body.
cURL command
—
About this tool
Build a properly quoted curl command from a method, URL, headers, and body — handy for turning an API request into something you can paste straight into a terminal, script, or bug report without worrying about shell escaping.
Frequently asked questions
- How are special characters in the body handled?
- The body is wrapped in single quotes, and any single quotes within it are escaped using the standard shell technique (
'\''), so the generated command is safe to run as-is in bash/zsh. - What does the "Insecure" flag do?
- Adds
-k, which tells curl to skip SSL certificate verification — useful for local development against self-signed certificates, but never recommended for production traffic. - Does a body get added automatically for GET requests?
- No — a body is only included in the generated command if you've entered one; the tool doesn't force curl's implicit method switch that happens when using
-dwithout-X.