URL Encoder / Decoder
Percent-encodes and decodes text for URLs.
Build a ready-to-run cURL command from a URL, method, headers, and body. Quoting is handled for Bash, Windows Command Prompt, and PowerShell.
The builder only writes text. It never sends the request, so it works for internal and localhost URLs too.
-X is added only when the method isn't implied: GET is the default, and a body implies POST.-H 'Name: value'. A JSON body adds Content-Type: application/json unless you set it yourself.--data-raw, so a leading @ isn't read as a file name. Form fields use --data-urlencode, one per field.-u user:password, and a Bearer token becomes an Authorization header."" escaping in CMD, and single quotes with '' escaping in PowerShell, which calls curl.exe so the built-in curl alias isn't used.POST https://api.example.com/users with a Bearer token and the JSON body {"name":"Ada"}, for Bash:
curl 'https://api.example.com/users' \
-H 'Authorization: Bearer TOKEN' \
-H 'Content-Type: application/json' \
--data-raw '{"name":"Ada"}'The same request for Windows Command Prompt:
curl "https://api.example.com/users" ^
-H "Authorization: Bearer TOKEN" ^
-H "Content-Type: application/json" ^
--data-raw "{""name"":""Ada""}"
| Option | What it does |
|---|---|
-L | Follow redirects |
-i | Show the response headers with the body |
-v | Verbose: show the full request and response exchange |
-s | Silent: hide the progress bar |
-k | Skip TLS certificate checks (testing only) |
--compressed | Ask for a compressed response and decode it |
-m 30 | Give up after 30 seconds |
-F [email protected]) are not built. Add them to the command by hand.No. It only writes the command. You run it yourself in a terminal, so tokens and passwords you type stay on your device.
In Windows PowerShell 5.1, curl is an alias for Invoke-WebRequest, which takes different arguments. Calling curl.exe runs the real cURL that ships with Windows 10 and 11.
Both send a request body. With -d, a value that starts with @ is read from a file. --data-raw always sends the text as it is.
Add -H 'Content-Type: application/json' and pass the JSON with --data-raw. Choose JSON as the body type and the builder does both.
Often used together with the cURL Command Builder.
Percent-encodes and decodes text for URLs.
Beautifies or minifies JSON.
Decodes JSON Web Tokens, explains the claims, and verifies HS, RS, PS, and ES signatures.