Input
Sample
Output

cURL Formatter

Ln : 1 Col 0
Size: 0 B
A+
A-
Ad blocking? It's okay.

Please share to support us:



Ln : 1 Col 0
Size: 0 B
A+
A-
Ad blocking? It's okay. Please share to support us:

How to format a curl command


  1. Paste a curl command, for example one copied from your browser's developer tools (Copy as cURL), Postman or an API document.
  2. Format cURL puts the URL, each header and each option on its own line, and pretty-prints a JSON request body.
  3. Minify cURL turns it back into one line; cURL to JSON lists the method, URL, headers and body as JSON.

Commands copied from bash, Windows cmd (^ line breaks) and PowerShell (` line breaks) are understood. Quotes are kept safe, so the formatted command still runs.

Before and after:

curl -X POST https://api.example.com/v1/orders -H 'Content-Type: application/json' --data-raw '{"sku":"A1","qty":2}'
curl \ https://api.example.com/v1/orders \ -H 'Content-Type: application/json' \ --data-raw '{ "sku": "A1", "qty": 2
}'

The command is formatted in your browser and never sent to our server, so tokens and passwords in it stay with you. Still, remove real secrets before you share a command with anyone.

Updated November 2026

FAQs


Paste it in the left editor. With Auto update on, the right side shows it with one option per line and a pretty-printed JSON body. Press Format cURL to run it by hand.

Yes. Line breaks end with a backslash and every value is quoted safely, so you can paste the result into a bash or zsh terminal.

Yes. cURL to JSON shows the method, URL, headers, body and other options as JSON, which is handy for writing the same request in code or Postman.

Yes. Use Copy as cURL in the Network tab (the bash version works best; the cmd and PowerShell versions are also understood).

No. Parsing and formatting happen in your browser. The tool never runs the request.