Skip to content
TabKiwiTabKiwi

cURL Command Generator

Fill in a request form and get a correctly quoted cURL command, ready to paste into a terminal.

DeveloperRuns in your browser. Your files never leave this device.
Loading tool…

About this tool

Writing curl by hand means remembering flags and getting shell quoting right, especially for JSON bodies full of quotes. Enter the URL, method, query parameters, headers, authentication and body in a form, and the tool produces a tidy multi-line command with everything safely single-quoted. The same request can be switched to fetch, Axios, Python and other languages in one click. Nothing you type leaves your browser.

How to use cURL Command Generator

  1. Choose the method and enter the URL.
  2. Add query parameters, headers, authentication and a body as needed.
  3. Copy the generated cURL command.
  4. Switch the language menu if you also need the request in code.

Frequently asked questions

Why are values wrapped in single quotes?

Single quotes stop the shell from expanding $, ! and backslashes, so JSON and tokens reach the server exactly as written. A literal single quote is escaped as '\''.

Does the command work on Windows?

It is written for bash and zsh, which includes Git Bash and WSL. In cmd.exe, swap single quotes for double quotes and escape the inner double quotes.

When is -X added?

Only when needed. curl already uses GET without a body and POST when data is attached, so -X appears for other methods such as PUT, PATCH or DELETE.

More Developer tools

View all 91 →