How to copy as cURL in every browser
Every major browser can export a network request as a curl command. The exact menu label varies — here is how to find it in Chrome, Firefox, Edge, and Safari, then clean the output with Curl Cleaner.
Chrome — Copy as cURL (bash)
- Open DevTools with F12 or Cmd+Option+I (Mac).
- Go to the Network tab and trigger the request.
- Right-click the request row → Copy → Copy as cURL (bash).
- Paste into Curl Cleaner to remove
User-Agent,Sec-Fetch-*, and other browser noise.
Firefox — Copy as cURL
- Open DevTools with F12.
- Select the Network tab and reproduce the request.
- Right-click the request → Copy → Copy as cURL.
- Firefox includes fewer
sec-ch-uaheaders than Chrome, but still addsUser-AgentandAcceptyou may want to strip.
Microsoft Edge — Copy as cURL (bash)
- Edge uses Chromium DevTools — open with F12.
- Go to Network, find your request.
- Right-click → Copy → Copy as cURL (bash) (same as Chrome).
- Edge curl exports look nearly identical to Chrome; Curl Cleaner handles both.
Safari — Copy as cURL
- Enable the Develop menu: Safari → Settings → Advanced → “Show features for web developers”.
- Open Web Inspector (Cmd+Option+I) → Network tab.
- Control-click the request → Copy as cURL.
- Safari exports are often shorter but still include browser headers worth removing before sharing.
What to do after copying
DevTools curl commands are verbose — they include headers your script or API client does not
need. Paste the command into Curl Cleaner to keep Authorization, Content-Type, and your request body while dropping browser metadata.