Free online cURL to JSON extractor. Paste a cURL command and extract the JSON request body as formatted JSON. Supports -d and --data flags. Runs locally in your browser.
100% Local
How to Use the cURL to JSON
Paste a cURL command into the input box. Click Extract JSON and the tool finds the -d or --data flag, extracts the JSON body, and formats it with 2-space indentation. Use Clear to reset.
What the extractor supports
Single-quoted data: -d '{"key":"value"}'
Double-quoted data: -d "{\"key\":\"value\"}"
The --data long flag variant
Escaped single quotes within single-quoted strings
Features
Handles the most common cURL quoting patterns
Validates extracted body is valid JSON
Formats output with 2-space indentation
All processing runs locally in your browser. Your data is not uploaded to any server.