Developer · Free tool

cURL Executor: Run cURL Commands Online

Run cURL commands in your browser. Import .http files or fetch(), inspect JSON, headers and timing, and convert cURL to Python, Java, JavaScript, Go and more.

Instant resultsPrivate by defaultNo sign-up
cURL command bash, cmd, PowerShell, raw HTTP, .http or fetch()

Response Paste a cURL command, a raw HTTP request or a fetch() call and select Send, or press Ctrl/⌘ + Enter. Requests go straight from your browser to the API.

About this tool

Run cURL commands online without opening a terminal. Paste any curl command, including "Copy as cURL" output from Chrome, Firefox, Edge or Safari DevTools, a raw HTTP request, a JetBrains or VS Code .http file, or a fetch() call, and send it with one click. The executor shows the status code, response time, size, headers and a timing breakdown, pretty-prints JSON with syntax highlighting, and previews HTML, images and PDFs. Every part of the request can be edited in tabs for query parameters, headers, body, authentication and variables, and the cURL command updates as you edit. Keep separate environments for local, staging and production, save the requests you use often, decode JWT bearer tokens, filter JSON responses with JSONPath, and repeat a request to measure latency. Convert any request to 18 targets, including JavaScript fetch, axios, Python requests, Java HttpClient, Spring RestClient, Kotlin, Go, Rust, PHP, Ruby, C#, Swift and .http files. Requests go straight from your browser to the API: TheVanTool never sees your URLs, tokens or responses.

Features

Paste any cURL command

Reads single, double and $'…' quotes, backslash line breaks, combined flags such as -sSL, and the Windows cmd (^) and PowerShell (`) formats that DevTools "Copy as cURL" produces.

60+ cURL options understood

-X, -H, -d, --data-raw, --data-urlencode, --json, -F, -u, -b, -A, -e, -G, -I, -L, -m, --oauth2-bearer, --url-query and more. Options a browser cannot honor, such as --proxy or -k, are explained instead of silently ignored.

Two-way request editor

Edit query parameters, headers, body and auth in tabs and the cURL command is rewritten to match. Edit the command and the tabs update. Disable a header with one click, or bulk-edit headers as text.

Rich response viewer

Status, time, size and protocol at a glance. Pretty JSON with syntax highlighting that keeps big numbers exact, raw text, sandboxed HTML preview, image and PDF preview, and a hex view for binary data.

Timing breakdown

See DNS, connection, TLS, waiting (time to first byte) and download phases when the server allows it, plus transferred size and compression savings.

Clear CORS diagnostics

Know before you send whether the browser will make an OPTIONS preflight and why. When a request is blocked, a reachability check tells you whether CORS or the network is the problem.

Convert cURL to code

Generate JavaScript fetch, Node.js axios, Python requests, Java HttpClient, Spring RestClient, Kotlin OkHttp, Go net/http, Rust reqwest, PHP cURL, Ruby Net::HTTP, C# HttpClient, Swift URLSession, HTTPie, Wget, PowerShell, .http files and one-line or multi-line cURL.

Import .http, raw HTTP and fetch()

Paste or open JetBrains HTTP Client and VS Code REST Client .http files, raw HTTP requests, or fetch() calls from DevTools. Multi-request files become saved requests, and @variables become environment values.

Environments and variables

Use {{baseUrl}} or {{token}} anywhere in a request and keep one environment per stage, such as local, staging and production. $TOKEN and TOKEN=abc lines in pasted commands become variables automatically.

Saved requests and collections

Star requests (Ctrl/⌘ + S) to keep them, name them, and export saved requests and environments as a collection file to back up or move to another computer.

JWT inspector

Bearer tokens that are JSON Web Tokens are decoded in the Auth tab: algorithm, subject, issuer, audience, roles and scopes, with a warning before you send an expired token.

JSONPath response filter

Filter large JSON responses with expressions such as $.items[*].id or $..email, see the match count and copy just the matches.

Repeat and measure latency

Send a request up to 50 times in a row and compare minimum, median, mean, p95 and maximum response times, with a chart of every run and a count of each status code.

Status and header explanations

Every non-200 status comes with a plain-language meaning and next step, and common response headers such as Cache-Control, ETag, RateLimit and CORS headers are explained inline.

Uploads and forms

Send JSON, XML, text, URL-encoded forms or multipart forms with real files chosen from your device. Format and validate JSON bodies before you send them.

History

The last 30 requests are kept in this browser with their status and time, so you can re-run or compare them. Turn saving off on a shared computer.

Shareable links

Share a request as a link that stores everything after the #, so it never reaches a server. Credentials are masked by default, and opening a link never sends the request.

Private by design

No proxy, no account and no server logs: your browser sends the request directly, so tokens and responses stay between you and the API.

Run .http files from IntelliJ IDEA and VS Code

The .http file format, used by the JetBrains HTTP Client in IntelliJ IDEA and by the VS Code REST Client extension, keeps requests as plain text next to your code. Each request is a method and URL line, header lines, a blank line and an optional body, and requests are separated by ### lines. The executor reads these files directly: paste one or select Open, and every request is converted to cURL and added to Saved, ready to run.

Both tools use {{variable}} placeholders, the same syntax the executor uses, so requests keep working unchanged. File variables written as @baseUrl = https://api.example.com are added to the active environment. Response handler scripts (> {% … %}) are skipped and file references (< ./body.json) are reported instead of read, because nothing on your device is accessed unless you choose it.

@baseUrl = http://localhost:8080

### List orders
GET {{baseUrl}}/api/orders?status=OPEN
Accept: application/json

### Create order
POST {{baseUrl}}/api/orders
Content-Type: application/json
Authorization: Bearer {{token}}

{
  "sku": "A-100",
  "quantity": 2
}
A .http file with a file variable and two named requests.

Use environments for local, staging and production

An environment is a named set of variables. Create one per stage with the same variable names, for example baseUrl and token, then write requests once as {{baseUrl}}/api/orders with Authorization: Bearer {{token}}. Switching the environment in the Variables tab, or from the toolbar, sends the same request to a different server with different credentials.

New copies the variable names of the current environment with empty values, and Duplicate copies the values too. Environments and saved requests are kept in this browser; Export writes them to a collection file you can import on another computer. Variable values are included in the export, so keep the file private if it holds tokens.

How to run a cURL command online

cURL is the standard command-line tool for making HTTP requests, and most API documentation shows its examples as curl commands. This executor lets you run those commands from a web page. Paste the command, select Send, and the request is sent by your browser with the same method, URL, headers and body.

The command and the request editor stay in sync. Change a header value in the Headers tab and the curl command is rewritten; edit the command and the tabs update. Values that should not be typed into every request, such as a base URL or token, can live in Variables as {{name}}. Use Explain to see a plain-language description of each option before you send anything.

  • Press Ctrl/⌘ + Enter from anywhere in the tool to send, and Esc to cancel a slow request.
  • Without -L, redirects are not followed, just like cURL. Turn on Follow redirects to follow them.
  • With -m (or Timeout in Options) a request stops after that many seconds.
  • Responses up to 50 MB are read; Download saves the body with a sensible file name.

Copy as cURL from browser DevTools

Every major browser can export a network request as a curl command. Open DevTools (F12), go to the Network tab, right-click a request and choose Copy → Copy as cURL. Chrome and Edge offer both bash and cmd formats on Windows; either works here. Paste the command to replay the request, then change one thing at a time to find out what the server really needs.

DevTools commands include many headers the browser sets automatically, such as sec-ch-ua, sec-fetch-* and cookie. Browsers do not let web pages set those headers, so the executor marks them in amber and explains why they are skipped. Usually the request works without them; if it depends on cookies, turn on Send cookies so the browser attaches the cookies it already holds for that site.

Why a request works in the terminal but fails here: CORS

cURL in a terminal can call any server. A web page cannot: browsers enforce Cross-Origin Resource Sharing (CORS), so a page on one origin may only read a response from another origin if that server allows it with an Access-Control-Allow-Origin header. Many public APIs, including GitHub's, send this header. Many private and internal APIs do not, and the browser then reports only a generic network error.

Requests that use methods other than GET, HEAD and POST, custom headers such as Authorization or X-API-Key, or a Content-Type like application/json are not "simple" requests. The browser first sends an OPTIONS preflight, and the server must answer it with matching Access-Control-Allow-Methods and Access-Control-Allow-Headers. The Explain tab tells you whether your request will be preflighted and which part causes it. After a failure, Check if the server is reachable tells you whether the server answered (so CORS is the blocker) or could not be reached at all.

If you own the API, allow your development origin. In Spring Boot, a WebMvcConfigurer bean is enough for local testing:

@Bean
WebMvcConfigurer corsConfigurer() {
  return new WebMvcConfigurer() {
    @Override
    public void addCorsMappings(CorsRegistry registry) {
      registry.addMapping("/**")
          .allowedOrigins("https://thevantool.com", "http://localhost:3000")
          .allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")
          .allowedHeaders("*")
          .exposedHeaders("*");
    }
  };
}
Allow CORS for local testing in a Spring Boot application. Restrict allowed origins in production.

Common cURL options and what they do

These are the options you will meet most often in API documentation. All of them are supported by the executor; open Explain to see the meaning of every option in your own command.

  • -X, --request METHOD: use a method such as POST, PUT, PATCH or DELETE instead of GET.
  • -H, --header 'Name: value': add a request header. 'Name:' removes a header and 'Name;' sends it empty.
  • -d, --data, --data-raw, --data-binary: send a request body. With -d and no Content-Type, cURL sends application/x-www-form-urlencoded.
  • --json '{…}': send JSON and set Content-Type and Accept to application/json (cURL 7.82+).
  • --data-urlencode 'name=value': URL-encode the value; with -G the data goes into the query string instead of the body.
  • -F, --form 'name=value' or 'file=@path': send a multipart form, including file uploads.
  • -u, --user user:password: Basic authentication. --oauth2-bearer TOKEN: a Bearer token.
  • -b, --cookie 'a=1; b=2', -A, --user-agent, -e, --referer: set cookies, the user agent and the referer.
  • -L, --location: follow redirects. -I, --head: fetch headers only. -m, --max-time: time limit in seconds.
  • -s, -S, -v, -i, -o, --compressed, -k: output and transport options. They change what cURL prints or how it connects, not the request itself.
curl -X POST https://api.example.com/v1/orders \
  -H "Authorization: Bearer $TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"sku": "A-100", "quantity": 2}' \
  -L -m 10
A typical API call: POST JSON with a bearer token, follow redirects, and stop after 10 seconds.

Convert cURL to Java, Python, JavaScript and more

Once a request works, open the Code tab to turn it into code for your project. JSON bodies become native objects where the language supports them, such as a dict for Python requests or JSON.stringify for fetch; Basic auth uses each library's own auth option where it has one; multipart forms use the language's form or multipart API with placeholders for file paths.

Java developers get two versions: the built-in java.net.http.HttpClient (Java 11+) with no dependencies, and Spring's fluent RestClient (Spring Framework 6.1, Spring Boot 3.2+) for applications that already use Spring. Turn off Fill in variables to keep {{placeholders}} in the generated code.

What a browser can and cannot send

Because requests run in your browser, a few cURL features cannot be reproduced exactly. These limits come from web security rules that protect you, and the executor points them out instead of failing silently.

  • Headers such as Cookie, Host, Origin, Referer, Content-Length and Sec-* are controlled by the browser. User-Agent is replaced by most browsers.
  • A GET or HEAD request cannot carry a body. Switch to POST or move the data into the query string with -G.
  • This page is served over HTTPS, so plain http:// URLs are blocked as mixed content, except localhost.
  • Proxies, client certificates, custom DNS (--resolve), disabling certificate checks (-k) and Unix sockets are not available to web pages.
  • Only CORS-exposed response headers are visible, and Set-Cookie never is. Run the command with -i in a terminal to see every header.
  • Local files referenced with -d @file or -T are never read. Paste the content into the body, or choose the file in a multipart field.

How to use it

  1. Paste a cURL command, raw HTTP request or fetch() call into the box, open a .http file, pick one of the examples, or type a method and URL in the request bar. Bash, zsh, Windows cmd and PowerShell quoting are all understood.
  2. Check the Headers, Body, Auth and Variables tabs. Fill in any {{variables}}, choose files for upload fields, and read Explain to see what each cURL option does.
  3. Select Send (Ctrl/⌘ + Enter). Review the status, body, headers and timing, then copy the response, download it, or convert the request to code in the Code tab.

Common uses

  • Test a REST API endpoint or webhook on a computer where you cannot install cURL or Postman
  • Turn a cURL example from API documentation into working Java, Python, JavaScript or Go code
  • Run the requests in a .http file from IntelliJ IDEA or VS Code against local, staging and production environments

Common questions

Can I run a .http file or a raw HTTP request?

Yes. Paste the text or select Open and choose the .http or .rest file. Requests from the JetBrains HTTP Client and the VS Code REST Client are converted to cURL, multi-request files are added to Saved, and @name = value lines become variables.

Can I import a fetch() call from Chrome DevTools?

Yes. In the Network tab, right-click a request and choose Copy → Copy as fetch, then paste it into the command box. The URL, method, headers, body and credentials setting are imported. The code is read as data and never run.

How do environments work?

Each environment is a named set of {{variables}}, such as baseUrl and token. Keep one per stage, switch between them in the Variables tab or the toolbar, and the same request goes to a different server. Environments are stored only in this browser unless you export them.

Does the tool check if my JWT has expired?

Yes. When the Authorization header holds a Bearer JSON Web Token, the Auth tab decodes its claims and the tool warns you before sending if the token has expired or is not valid yet. The signature is not verified, and the token only leaves your browser in the request you send.

Can I run cURL commands online for free?

Yes. Paste a cURL command and select Send. There is no sign-up, no request limit and no install. The command is parsed in your browser and the request is sent by your browser's fetch API.

Does TheVanTool see my requests, tokens or responses?

No. There is no proxy: the request travels directly from your browser to the API you call. Commands, variables and history are stored only in this browser's local storage, and you can turn saving off in Options.

Why does my request fail with a network or CORS error?

The API does not allow requests from web pages on other sites, or the browser cannot reach it. Browsers require an Access-Control-Allow-Origin header for cross-origin responses, which a terminal does not. Use Check if the server is reachable to tell the two apart, enable CORS on your own API, or copy the command and run it in a terminal.

Can I call localhost or my local Spring Boot or Node.js API?

Yes. Browsers allow requests from HTTPS pages to http://localhost. Your local server must allow this site in its CORS configuration, and some browsers ask for permission to access devices on your local network.

Which cURL options are supported?

The options used for building requests: method, headers, all data and form variants, --json, -G, --url-query, Basic and Bearer auth, cookies, user agent, referer, redirects, timeouts and HEAD. Output options such as -s, -v, -i and -o are accepted and ignored. Options browsers cannot honor, such as --proxy, --cert or -k, are listed with an explanation.

How do I convert a cURL command to Python, Java or JavaScript?

Paste the command, open the Code tab and choose a language. The tool generates JavaScript fetch, axios, Python requests, Java HttpClient, Spring RestClient, Go, PHP, C#, HTTPie, Wget, PowerShell or cURL, ready to copy or download.

Can I upload files?

Yes. Use a multipart form in the Body tab, switch a field to File and choose a file from your device. Commands with -F 'file=@path' create the field for you; choose the file before sending, since local paths in a command are never read.

Why are some headers marked as not sent?

Browsers do not let web pages set certain headers, including Cookie, Host, Origin, Referer, Content-Length and Sec-*. They are set by the browser itself. To send cookies the browser already has for the site, turn on Send cookies.

Is it safe to share a request link?

Share links keep the request after the # in the URL, which browsers never send to a server. Credentials such as Authorization headers, cookies, API keys and passwords are masked by default. Opening a shared link fills in the request but never sends it until you select Send.

Can’t find the tool you need?

Tell us what you’d like it to do. We’ll review your suggestion for a future tool.

Suggest a toolOpens your email app. You can also write to [email protected].