Karve app icon

Karve

Free tool

.http → code converter

Paste a .http request and get ready-to-paste code — C# HttpClient, JavaScript fetch, or PowerShell Invoke-RestMethod. File-level @variables are resolved first. It all happens in your browser: nothing is uploaded.

Converts automatically as you type — nothing leaves your browser.

Your code snippet will appear here.
Next step

You already have the .http files.

Karve is the native Windows workspace for them — gather the files scattered across your repos into one tree, run any request from the editor, and read the response without leaving the app. The files never move.

How to run .http files on Windows

Run .http files natively on Windows.

What it does

  • Resolves file-level @variables and {{refs}} before generating
  • Emits one snippet per request in a ###-separated file
  • C# uses HttpRequestMessage + StringContent (raw string literals, .NET 8+)
  • fetch emits JSON.stringify for JSON bodies, template literals otherwise
  • PowerShell maps Content-Type to -ContentType and bodies to here-strings
  • Unresolved {{refs}} are kept and flagged, never invented

Next steps

Paste the snippet into your app or script — and keep the source of truth as a .http file beside your code. New to the format? Read the .http guide.

Need a shell one-liner instead? .http → cURL

Common questions

How do I turn a .http request into code?

Paste the request above and pick a target language — it's parsed in your browser into a ready-to-paste snippet (one per request), which you copy into your app or script.

Which languages does it generate?

C# (HttpClient), JavaScript (fetch), and PowerShell (Invoke-RestMethod). Choose from the dropdown and the output updates instantly.

Does it resolve variables?

Yes. File-level @name declarations are substituted before generating. Anything it can't resolve is kept and flagged, never invented.

Is my request uploaded anywhere?

No. Conversion runs entirely in your browser — nothing you paste leaves your machine.

One-time purchase

The request stays a .http file.

Generate code when you need it — and keep debugging in Karve, the native Windows workspace for .http files.

15-day free trial · No account · No subscription · No metered requests

25% off until Sep 1