cURL / Wget Command Converter
cURL and wget are the two most common command-line tools for making HTTP requests. Both are available on Linux, macOS, and Windows, and their commands appear everywhere — in API documentation, Stack Overflow answers, CI scripts, and shell history. This converter parses either format and translates it into production-ready code in the language of your choice.
Supported output languages
- cURL — Re-format the command with clean line breaks and consistent quoting.
- wget — Convert a cURL command to the equivalent wget syntax, or vice versa.
- Python (requests) — The de-facto HTTP library for Python. Output uses keyword arguments and is compatible with Python 3.x.
- JavaScript (fetch) — Uses the native Fetch API, which is built into all modern browsers and Node.js 18+. No dependencies required.
- JavaScript (axios) — Uses the axios library, which is common in React, Vue, and Node.js projects for its cleaner API and built-in error handling.
- Go — Uses the standard library net/http package. The output is a complete, runnable main() function.
- PHP — Uses the libcurl binding via the cURL extension, which is available by default in most PHP installations.
- C# — Uses HttpClient from System.Net.Http, the recommended HTTP client for .NET 6 and later.
What gets converted
The converter handles the most common cURL and wget options:
- HTTP method (-X / --request, --method)
- Request headers (-H / --header)
- Request body (--data, --data-raw, --data-binary, --post-data)
- Basic authentication (-u / --user)
- Follow redirects (-L / default in wget)
- Skip TLS verification (-k / --no-check-certificate)
How to use
Paste any cURL or wget command into the editor. The tool automatically detects which format it is and converts it as you type. Select the target language from the panel on the right. Click any example to load a sample command and see the output immediately.
Conversion runs in the browser
All parsing and code generation happens entirely in your browser. No data is sent to a server and nothing is logged or stored. You can safely paste commands that contain API keys or authorization tokens.