.http file to cURL & code converter

Paste a .http or .rest file in the REST Client / JetBrains format. Every request becomes a snippet for cURL, JavaScript fetch, Node.js, Python requests, Go, HTTPie, PowerShell, wget, C#, PHP or Java. File variables (@host = …) are resolved, and you can add environment values below. GraphQL requests are sent as JSON and Basic auth is encoded, exactly as when the request is sent.

Runs in this page with the same code as Plainwire’s Copy as Code command. Nothing you paste is uploaded or stored.

What is resolved

Do it inside VS Code

With Plainwire installed, every request in a .http file gets a Copy as Code… link above it, using your selected environment and values from earlier responses. To go from cURL to a .http file instead, use the cURL, Postman and Thunder Client to .http converter.

More: cURL flags and their .http equivalents, .http file syntax reference, GraphQL in .http files.