QA Toolbox logoQA Toolbox

cURL Formatter

Turn a one-line cURL into a readable command.

Paste a one-line cURL; get a readable multi-line version.

About cURL Formatter

The cURL Formatter takes a one-line cURL command — the kind you copy from browser DevTools, API docs or a teammate's Slack message — and breaks it into a readable multi-line command with each flag on its own line. Suddenly you can actually see the method, headers, auth and body instead of scanning a 600-character line.

Readable cURL is reviewable cURL: formatted commands make excellent bug-report reproductions and code-review artifacts, and editing one header no longer means hunting through the line.

How to use

  1. Paste the one-liner into "cURL command" — "Copy as cURL" from your browser's network tab is the typical source.
  2. Click "Format".
  3. Read or edit the structured command in "Formatted cURL" — one flag per line, with continuation characters.
  4. Copy it into your terminal, bug report or test documentation.

Frequently asked questions

How do I get a cURL command from my browser?

In DevTools → Network, right-click any request and choose "Copy as cURL". That captures method, headers, cookies and body exactly — and this formatter makes the result readable.

Will the formatted command still run?

Yes — line continuations (backslashes) make it functionally identical to the one-liner. On Windows, note that cmd.exe uses ^ instead; PowerShell and every Unix shell accept the backslash form.

Should I share cURL commands containing auth headers?

Formatted output makes Authorization headers and cookies easy to spot — redact them before pasting a command into a ticket or public channel. Treat a copied cURL as containing live credentials, because it usually does.

Related tools