Developer Tool

CURL to Code — convert cURL commands to PHP or fetch.

Paste a cURL command and instantly get the equivalent PHP (cURL or file_get_contents) or JavaScript fetch() code. Great for converting API docs to real code.

Free · Client-side · PHP & JS output
CURL to PHP / Fetch Converter