BRev Free Tools
At BRev Digital, essentials should be a right — free, forever.
Open in workspacekeep several tools open at once
All tools
cURL converter

curl to PHP (Guzzle)

The literal PHP translation of a curl command is a dozen curl_setopt lines that nobody enjoys maintaining. This converter targets Guzzle instead: one $client->request() call with a readable options array — headers as an array, JSON bodies under json (serialized for you), form bodies under form_params.

Everything the curl command carried comes across: method, query parameters, cookies, Basic and Bearer auth, redirects. Chrome’s Copy as cURL output — bash or the Windows cmd form — parses directly, so a request captured in DevTools becomes PHP in one paste.

Conversion runs locally in your browser. The tokens and session cookies inside a copied production request are never uploaded anywhere.

curl commandbash or Windows cmd — multi-line is fine
Private by design: curl commands often carry auth tokens, cookies and API keys — everything here runs in your browser and nothing leaves this page.
Converted codepick a target — conversion runs locally
Paste a curl command above — the converted code appears here.
Code → curlpaste a fetch(…) call and get the equivalent curl command back
fetch source
curl
Paste a fetch call to convert it.
Import from a HAR fileexport a .har from the DevTools Network tab — the file is read locally
Drop a .har file here, or click to choosePick a request, get its curl and code.
Powered by curlconverter (MIT) running in your browser — commands, tokens and HAR files never leave your device.