Skip to tool
RichScriptsAll tools ↗

cURL to C# / JS Fetch

Turn cURL requests into C# HttpClient or JavaScript Fetch code.

DEVELOPER UTILITIES · FREE BROWSER TOOL

From cURL to ready-to-use code.

Turn an HTTP request into C# HttpClient or JavaScript Fetch. Paste, convert, copy.

✓ Runs locally in your browser✓ No requests sent✓ No account required

01 / Your cURL request

Use POSIX quotes and \ line continuations. Remove real credentials before sharing generated code.

02 / Generated code

.NET 6+ · Console application

Keep the request details

Convert methods, headers, inline request bodies, JSON, form data and Basic authentication. GET query parameters are supported with -G.

Private by design

Your command stays in this page. This tool does not execute cURL, contact the target URL or save your input.

Know the limits

File uploads, multipart forms, shell variables and unsupported flags produce an explicit error. Browser Fetch still follows CORS rules. Review the output before using it.

How do I use the generated code?

Choose a language and copy the result. C# output targets a .NET 6+ console app. Fetch output uses top-level await in a JavaScript module, or can be placed inside an async function.

Does this send my API request?

No. Conversion only produces text. Requests run when you execute the generated code in your own environment.