curl Command Generator
Build a properly-escaped curl command from an HTTP method, URL, headers and request body, without memorizing curl's flags.
Headers
curl command
curl \ 'https://api.example.com/users' \ -H 'Content-Type: application/json'
Processing happens locally in your browser. Nothing you enter is uploaded.
How It Works
Choose a method, enter the URL, add any headers and a request body if needed — the curl command updates live below.
Example
A POST to https://api.example.com/users with a JSON body generates: curl -X POST 'https://api.example.com/users' -H 'Content-Type: application/json' -d '{...}'
Frequently Asked Questions
- Does this send the request?
- No — it only builds the command text for you to copy and run yourself.
- Is my data uploaded anywhere?
- No — the command is built entirely in your browser.
Related Tools
URL Encoder / Decoder
Editor's pickEncode text for safe use in a URL, or decode a URL-encoded string.
REST API Client
Editor's pickSend GET, POST, PUT, PATCH and DELETE requests to any REST API and inspect the response, right in your browser.
JSON Formatter
Editor's pickFormat, validate, and beautify JSON with proper indentation.
Fake Data Generator
Similar toolGenerate rows of realistic synthetic test data (names, emails, dates, numbers…) as JSON, CSV, XML, Python, SQL or YAML.
UUID Generator
Similar toolGenerate random, version-4 UUIDs for use in code or databases.
Base64 Encoder / Decoder
Related toolEncode text to Base64, or decode Base64 back to plain text.