Report

Help us improve this tool

Querystring to cURL

Build a cURL GET or POST command from a URL, query string, headers, and optional JSON body.

O M T

Turn URLs and query strings into cURL commands

API debugging often starts with a query string and a few headers. This generator merges a base URL with parameters, adds optional JSON bodies for POST-style calls, and formats a multi-line cURL command you can run in a terminal.

Also try the HTTPie to cURL converter or build query strings from JSON with JSON to Query String.

Frequently Asked Questions

Are values shell-escaped?

Yes. Arguments that need quoting are wrapped for POSIX shells.

Can I add a request body on GET?

Bodies are only appended for methods other than GET and HEAD.