🌐 EN

πŸŒ€ cURL Command Builder

Enter an HTTP method, URL, headers, request body and options to generate a copy-ready cURL command. Every value is safely escaped per POSIX shell rules.


        
GUIDE

Learn more

01

1. Anatomy of a cURL command

A cURL command is curl followed by options and a URL. -X sets the method, -H adds headers, and --data-raw or --data-urlencode sends a body. This tool takes each piece from a form and produces a neatly multi-line command that you can copy to the clipboard in one click.

02

2. Safe value escaping

When a header value or JSON body contains a single quote ('), spaces, or special characters, an unescaped command can break in the shell. This tool wraps every value in single quotes and replaces any inner single quote with the exact '\'' sequence (close, escaped-quote, reopen). It also strips newlines to prevent header injection.

03

3. Beware the -k option

-k (--insecure) skips server TLS certificate verification. It is convenient for local testing but dangerous over real networks, where it exposes you to man-in-the-middle attacks. This tool shows a warning whenever -k is enabled. In production, use valid certificates and avoid this flag.

Frequently asked questions

Is it safe to paste and run the generated command?
Values are escaped per shell rules, so special characters won't cause syntax errors. Still, review security-affecting flags like -k and the target URL before running.
Are values with single quotes handled?
Yes. Inner single quotes are replaced with the standard POSIX shell sequence ('\'') so they pass through exactly.
Are my inputs sent to a server?
No. The command is built entirely in your browser and no value is ever sent to a server.
Will the command work on Windows?
This tool escapes for POSIX shells (bash/zsh). Windows cmd.exe uses different quoting rules and may not work as-is; use PowerShell, WSL, or Git Bash.