Curl Cleaner v0.2.0

Paste a curl command from Chrome DevTools. Get a minimal version you can share or paste into an agent.

Cleaned curl
# cleaned curl appears here

How to clean a curl command from Chrome DevTools

  1. Open Chrome DevTools → Network, right-click a request, and choose Copy → Copy as cURL (bash).
  2. Paste the command into the Raw curl panel above.
  3. Copy the cleaned curl from the right — ready to share, replay, or paste into an agent.

Headers removed by default

Accept, Accept-Language, Origin, Referer, User-Agent, sec-ch-ua*, Sec-Fetch-*, and most custom X-* headers.

What stays

URL, method, Authorization, Cookie, Content-Type, other useful headers, request body, and auth or upload flags.

Frequently asked questions

What is Curl Cleaner?
Curl Cleaner is a free online tool that strips browser-specific noise from curl commands copied out of Chrome DevTools. It keeps the URL, method, auth, content type, body, and useful headers while removing values like User-Agent, Accept, Sec-Fetch-*, and Origin.
How do I copy a curl command from Chrome DevTools?
Open Chrome DevTools, go to the Network tab, right-click a request, and choose Copy → Copy as cURL (bash). Paste that command into Curl Cleaner to get a minimal version.
What headers does Curl Cleaner remove?
By default it removes common browser headers such as Accept, Accept-Language, Origin, Referer, User-Agent, sec-ch-ua*, Sec-Fetch-*, and most custom X-* headers. You can tune keep and strip lists in Settings.
What does Curl Cleaner keep?
It keeps the request URL, non-GET methods, Authorization, Cookie (optional), Content-Type, other non-browser headers, the request body, and flags like -u or -F when present.
Is my curl command sent to a server?
No. Cleaning runs entirely in your browser. Nothing you paste is uploaded or stored.
Why remove browser headers from a curl command?
DevTools curl commands include headers your script or API client does not need. Removing them makes commands shorter, easier to share, cheaper to paste into LLM prompts, and less likely to break when replayed outside the browser.

Settings

Defaults