HTTP Request Builder

Headers
Request body
Basic auth

About this tool

Build an HTTP request the way you would in Postman — pick the method (GET, POST, PUT, PATCH or DELETE), type the URL, add as many headers as you need and paste a request body — and this tool instantly writes the equivalent code in the language you choose. No account, no desktop app: it is a single page that runs entirely in your browser.

Export targets include curl, JavaScript fetch, Node.js axios, Python requests, PHP cURL, Java 11+ HttpClient and Go net/http. JSON bodies are detected automatically and rendered as native literals per language, and optional HTTP basic-auth credentials are wired up correctly for each. Because nothing leaves your browser, it is safe to include tokens, cookies or credentials while you build the request.

Related tools

curl to CodeHTTP HeadersJSON Formatter