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)

  1. Open DevTools with F12 or Cmd+Option+I (Mac).
  2. Go to the Network tab and trigger the request.
  3. Right-click the request row → CopyCopy as cURL (bash).
  4. Paste into Curl Cleaner to remove User-Agent, Sec-Fetch-*, and other browser noise.

Firefox — Copy as cURL

  1. Open DevTools with F12.
  2. Select the Network tab and reproduce the request.
  3. Right-click the request → CopyCopy as cURL.
  4. Firefox includes fewer sec-ch-ua headers than Chrome, but still adds User-Agent and Accept you may want to strip.

Microsoft Edge — Copy as cURL (bash)

  1. Edge uses Chromium DevTools — open with F12.
  2. Go to Network, find your request.
  3. Right-click → CopyCopy as cURL (bash) (same as Chrome).
  4. Edge curl exports look nearly identical to Chrome; Curl Cleaner handles both.

Safari — Copy as cURL

  1. Enable the Develop menu: Safari → Settings → Advanced → “Show features for web developers”.
  2. Open Web Inspector (Cmd+Option+I) → Network tab.
  3. Control-click the request → Copy as cURL.
  4. 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.

Open Curl Cleaner