cURL Generator
Build multi-line shell-escaped cURL commands from method, headers and body.
Code generation and parsing run locally in your browser. Clicking Send dispatches your URL, headers, and request body directly from your browser via fetch() to the target endpoint (never proxied through PufferKit).
How to use cURL Generator
Configure HTTP method, URL, headers, and payload on the Headers & body tab, or refine directly under Code → cURL.
Shell special characters and single quotes are safely POSIX-escaped automatically.
Copy the multi-line cURL command for terminal use.
Frequently asked questions
Can I preview or test the generated request directly?
Yes. Click Send to execute it via browser fetch whenever the target endpoint enables CORS.
Are single quotes inside JSON payloads escaped cleanly?
Yes. Embedded single quotes are shell-escaped safely so pasting into zsh/bash works cleanly.