cURL Converter

Paste a curl command, pick a language, and copy ready-to-paste code.

cURL

JavaScript (fetch)

MethodPOST
URLhttps://api.example.com/v1/users
Headers2
Bodyjson
Optionsnone

Reference

PrivacyParsing and codegen run in your browser — curl commands with tokens never leave your machine. Drafts stay local until you Clear.
Copy as cURLIn Chrome, Firefox, or Safari DevTools → Network → right-click a request → Copy as cURL (bash), then paste here.
QuotesBlog posts often use curly smart quotes. We normalize them; if a paste fails, try the original shell command.
Insecure TLS-k / --insecure skips certificate checks — fine for local debugging, never ship it in production code.
FlagsSupports common flags: -X -H -d --data-raw -F -u -G -b -A -L -k --max-time and multipart file fields (@path).