Curl to C# Converter

HttpClient code from curl

Paste curl and get C# using HttpClient and HttpRequestMessage with appropriate content types.

From the blog
Cursor Skills: How to Create and Use Agent Skills

A practical guide to Cursor Agent Skills: write your first SKILL.md, scope it with paths, add scripts, and ship reusable workflows your AI agent runs on demand

Read

Developer tools Latest posts Explainers

Supports multi-line commands with \ line continuations. Conversion runs as you type.

Convert to:

Example curl commands

Supported output targets

LanguageLibraryLanding page
Python requests or httpx curl to Python
PHP curl extension or Guzzle curl to PHP
Go net/http curl to Go
JavaScript axios curl to Axios
Java OkHttp curl to Java
C# HttpClient curl to C#
PowerShell Invoke-RestMethod curl to PowerShell

curl to C# FAQ

.NET version?

Uses modern HttpClient async patterns compatible with .NET 5+ and .NET Framework with HttpClient.