API Request Converter
Convert a supported cURL request to JavaScript, Python or an n8n node, with credential placeholders instead of copied secrets.
Input
Output
How to use it
- Paste one cURL command using a literal HTTP(S) URL, explicit headers and an optional literal body.
- Choose server-side JavaScript fetch, Python requests or an n8n HTTP Request node template.
- Replace credential placeholders through your runtime or credential store. Review body and custom fields for sensitive data before copying. Nothing is executed by this tool.
Supported formats & limits
Supports --request/-X, --header/-H, --url, one --data/--data-raw/--data-binary option, and quiet/fail flags. Unsupported flags fail explicitly rather than being ignored. No file uploads, basic-auth conversion, shell pipelines, redirects, cookie jars or multiple requests. n8n templates require version and credential review before import.
Data handling
Input is processed in your browser, not uploaded or included in analytics events. Copying or downloading creates a separate copy. The site can load hosting analytics; it is not an offline application.
Common questions
Does the converter call my API?
No. It parses a supported request and produces text locally. Executing the generated code can make a real request, including writes, so inspect it first.
Will it remove every secret?
No. Recognized sensitive headers, query parameters and JSON keys get placeholders, but arbitrary secrets in paths or unstructured bodies cannot be detected reliably. Review the complete output.
Documentation
- cURL option reference (opens in a new tab)
- n8n HTTP Request node (opens in a new tab)
- Python requests (opens in a new tab)