API

cURL Builder

Build cURL commands and Fetch API code from structured HTTP requests.

Request

Choose an HTTP method and enter the target URL.

Query parameters

2 parameters

  • 1
  • 2

Headers

1 header

  • 1

Cookies

0 cookies

No cookies

Add cookies to generate cURL's --cookie option.

Authentication

Add Bearer or HTTP Basic authentication to the generated command.

Request body

Add JSON, form URL encoded or raw content to the generated request.

Generated cURL

Copy the command and run it in a compatible shell.

Shell command
curl \
  --request \
  GET \
  'https://api.example.com/users?page=1&limit=20' \
  --header \
  'Accept: application/json'

cURL commands are generated locally inside your browser. BigForgeKit does not send the request or upload URLs, headers, credentials or body content.

About this tool

What is cURL Builder?

cURL Builder creates ready-to-use cURL commands and Fetch API JavaScript from a structured HTTP request. Configure the method, URL, query parameters, headers, cookies, authentication and request body without manually escaping values.

Features

Built for fast developer workflows

  • Generate cURL commands for common HTTP methods.
  • Switch between multi-line and single-line cURL output.
  • Generate Fetch API JavaScript from the same request.
  • Add query parameters with automatic URL encoding.
  • Add, duplicate and remove HTTP headers.
  • Generate multiple cookies with cURL's --cookie option.
  • Generate Bearer token and HTTP Basic authentication.
  • Create JSON, raw and URL-encoded request bodies.
  • Automatically add a JSON Content-Type header when needed.
  • Copy generated code with one click.
  • Generate every result locally in your browser.

Frequently asked questions

Questions about cURL Builder

Does cURL Builder send the HTTP request?

No. It only generates cURL or Fetch code and never connects to the target URL.

Are headers, credentials or request bodies uploaded?

No. All request information remains inside your browser.

Can I generate a cURL command on one line?

Yes. Select Single-line under Command format to remove line continuations.

Can I add multiple cookies?

Yes. Multiple cookie entries are combined into one cURL --cookie argument separated by semicolons.

Does it generate Fetch API code?

Yes. Select Fetch API under Generated code to produce JavaScript from the same request settings.

Does it support Bearer and Basic authentication?

Yes. Bearer authentication creates an Authorization header, while Basic authentication uses cURL's --user option or a Basic Authorization value in Fetch code.

Is Content-Type added automatically for JSON?

Yes. When JSON body mode is selected, Content-Type: application/json is added unless an explicit Content-Type header already exists.

Related tools