Skip to content

Convert cURL Commands to JSON

Paste a cURL command and get a structured JSON representation of the request.

OUTPUT FORMATSHTMLJSONMarkdown

This is useful when you want to inspect the URL and method in a machine-readable form, or reuse the request details in another tool.

Paste your cURL command

Enter the command in the cURL command field. The example placeholder is curl example.com. The converter reads the request target and method and presents them as JSON fields.

Review the JSON output

The output area shows the converted request as JSON. In the supplied example, the fields are url, raw_url, and method, with values http://example.com, http://example.com, and get. Use Copy to clipboard to take the result into your editor or script. Check the output before use: confirm the URL matches the intended target and that the method reflects the original command, especially if you edited the pasted text.

Get a command from your browser first

Start in Chrome, Safari, or Firefox, open the network panel, select the request, and copy it as cURL. Then paste that copied command into the converter above. This workflow avoids retyping headers, query strings, and URLs by hand.

Need a different target format?

If JSON is not the format you need, the same starting command can be converted for other languages and libraries, including CFML, Dart, Elixir, Go, Java, JavaScript Fetch, MATLAB, NodeJS with Axios, NodeJS with fetch, NodeJS with Request, PHP, Python, R, and Rust. Choose the target that matches the codebase you are working in.

Frequently asked questions

How do I get a cURL command from a browser request?

Open your browser's developer tools, find the network request you need, and use the browser's copy-as-cURL option. The exact steps differ by browser, so use the Chrome, Safari, or Firefox guide linked below for the browser you use.

What happens after I paste a cURL command?

Paste the command into the input area on this page. The converted JSON appears in the JSON code area, where you can copy it to your clipboard for use in your own code or configuration.