cURL to JSON Parser

Decode any curl command into its components: URL, method, headers, and a clean, formatted JSON body.

Input

Waiting for input
1

Output

1

Instant

Runs entirely in your browser — no upload, no wait.

100% private

Your JSON never leaves the tab. Nothing is logged.

No signup

Free, unlimited, no account required.

Why parsing curl matters

Browser DevTools, Postman, and many APIs export curl commands. Reusing them in code requires extracting the body, escaping, and headers — a tedious manual job that this tool automates.

How parsing works

The parser tokenizes the command respecting bash quoting, identifies -X / --request, -H / --header, -d / --data variants (including --data-binary, --data-raw), and reassembles the request. Multi-line curl commands with backslash continuations are supported.

# Input
curl 'https://api.example.com/users' \
  -H 'Authorization: Bearer abc' \
  --data-raw '{"name":"Ada"}'

# Parsed
{
  "method": "POST",
  "url": "https://api.example.com/users",
  "headers": {"Authorization": "Bearer abc"},
  "body": {"name": "Ada"}
}

Use cases

Reproducing a DevTools "Copy as cURL" in code, importing examples from API docs into Postman, normalizing curl snippets before checking them into a repo.

Edge cases handled

URL-encoded form bodies are decoded into key/value pairs. JSON bodies are auto-formatted. Unknown flags are surfaced rather than silently dropped.

Privacy

All parsing is local. Your curl commands, including any tokens, stay in your browser.

Related tools

Frequently asked questions