Nifty / Tools / Convert

cURL to .http

Paste a curl command, for example from your browser's Copy as cURL, and get a request you can save in a .http file.

curl-to-http
curl commandDrop a file here
.http request
Loading…

Runs in your browser. Nothing you paste is uploaded or stored.

How to use the cURL to .http

  1. Paste one or more curl commands on the left. Multi-line commands with \ at the line ends are fine.
  2. The .http request appears on the right. Several commands are separated by ###.
  3. Save it as a .http file and send it from your editor.

Questions

Is my data uploaded anywhere?

No. The tool runs entirely in your browser. Nothing you paste or drop is sent to a server, logged or stored, so it's safe for API responses, config files and other private data.

Which curl options are converted?

The method (-X), headers (-H), body (-d, --data-raw, --json), basic auth (-u), user agent and cookies. Options that only affect curl itself, like -o or --retry, are dropped.

How do I send the request?

Nifty REST Client sends requests from .http files in VS Code, with variables, environments and a response viewer. Its Paste cURL as Request command does this conversion inside the editor.

Related tools