Skip to content
IntegrateKit

cURL Formatter & HTTP Header Viewer

Turn a one-line cURL command into a readable multi-line command and see its method, URL, headers and body at a glance. Nothing is executed.

FreeRuns in your browser

cURL Formatter tool

Commands are parsed in your browser and never executed or sent anywhere.

About this tool

Turn a long one-line cURL command, such as one copied from browser developer tools, into a readable multi-line command, and see the method, URL, headers and body at a glance. JSON bodies can be pretty-printed.

Secrets in Authorization, Cookie and API-key headers and -u credentials can be masked before you share the command. You can also paste a raw block of HTTP headers to view it as a table. Nothing is ever executed.

How to use it

  1. Paste a cURL command or raw headers.
  2. Choose whether to mask secrets and pretty-print the JSON body.
  3. Copy the formatted command.

Limitations

  • Some rarely used curl options are kept as-is without interpretation.
  • Windows cmd escaping (^") is only partly supported.

Example

Input
curl 'https://api.example.com/v1/orders' -H 'authorization: Bearer abc.def' -H 'content-type: application/json' --data-raw '{"sku":"A-100"}'
Formatted (secrets masked)
curl https://api.example.com/v1/orders \
  -H 'authorization: Bearer ****' \
  -H 'content-type: application/json' \
  --data-raw '{
  "sku": "A-100"
}'

Common use cases

Sharing reproductions

Share a readable request in a ticket without exposing tokens.

Understanding browser requests

See exactly which headers and body a 'Copy as cURL' request sends.

Header inspection

Paste response headers from dev tools and spot cookies and caching headers.

Frequently asked questions