Developer Tools

cURL Command Generator

Build a correctly quoted curl command (Bash, PowerShell or Windows cmd) and the matching JavaScript fetch() code for any HTTP request.

In the browser

About this tool

Build a correctly quoted curl command (Bash, PowerShell or Windows cmd) and the matching JavaScript fetch() code for any HTTP request.

The method, URL, headers, body and authentication you enter are assembled into curl options and quoted for the shell you pick, so spaces, quotes and $ signs survive. JSON bodies are validated and get a Content-Type header automatically.

Example: Method = GET, URL = https://api.example.com/items?page=2, Headers (one per line, Name: value) = Accept: application/json, Authentication = None, Follow redirects (-L) = 1, Shell = Bash / zsh (Linux, macOS) → Single line = curl 'https://api.example.com/items?page=2' -H 'Accept: application/json' -L.

The command is built in your browser and nothing is sent. Be careful when sharing commands that contain passwords or tokens.

Quick steps

  1. Fill in the fields you need — empty optional fields are left out.
  2. Press Generate (or Try an example to see how it works).
  3. Copy or download the result and paste it into your site.

Everything runs in your browser. Nothing you type is sent to 1CLIK.

FAQ

How does the cURL Command Generator work?

The method, URL, headers, body and authentication you enter are assembled into curl options and quoted for the shell you pick, so spaces, quotes and $ signs survive. JSON bodies are validated and get a Content-Type header automatically.

What should I keep in mind?

The command is built in your browser and nothing is sent. Be careful when sharing commands that contain passwords or tokens.

Is my data sent anywhere?

No. What you type stays on your device; the page only shows the result.

A useful next step

Site policies: Privacy · Terms