Convertisseur cURL en code
Transformez une commande curl en code JavaScript fetch, Node.js, Python requests ou PHP cURL.
Comment utiliser
Using the generated code
Paste any curl command, including multi-line commands with backslashes, then choose the target language. Headers, the HTTP method and the request body are preserved.
- Copy a curl command from an API's documentation.
- Paste it and pick a language.
- Copy the snippet into your project.
Questions fréquentes
Which curl options are supported?
Requests, headers, data, user credentials, cookies and common flags. Options that do not change the request, such as -s or -L, are ignored.
Is my command sent anywhere?
No, the parsing and code generation run entirely in the browser.
Outils associés
Analyseur d'URL
Décomposez une URL en protocole, hôte, port, chemin, requête et fragment, et inspectez chaque paramètre.
Référence des codes HTTP
Recherchez chaque code de statut HTTP avec son nom et une courte explication de son usage.
Testeur JSONPath
Interrogez des données JSON avec des expressions JSONPath et affichez instantanément les valeurs correspondantes.
Formateur HTML
Embellit le HTML avec une indentation cohérente tout en respectant les éléments en ligne et vides.
Formateur CSS
Embellit le CSS avec une propriété par ligne et une indentation cohérente.
Formateur JavaScript
Embellit le JavaScript avec une indentation, des espaces et des sauts de ligne corrects.