HTTP Request Builder
Build an HTTP request (URL, method, headers, body) and generate snippets in cURL, fetch, axios, Python requests and Go net/http. Everything in your browser.
Build an HTTP request and generate the code
It happens all the time: you test an HTTP request in one language and then need it in another. Rewriting the code by hand, fiddling with headers and body, is a bore. Here you build the request just once and get the equivalent snippet in several languages.
Define the URL, the method, the headers and the body. The code comes out ready in cURL, JavaScript fetch, axios, Python requests and Go net/http. It's the shortcut for taking an API call out of a testing tool and dropping it straight into your code, already in your project's language.
Since everything is generated in the browser, the request's data never leaves your device. That makes it safe to build calls carrying tokens or sensitive information.
Frequently asked questions
Which languages does the page generate?
I typed a header and it never showed up in the code. Why?
Does the tool actually fire the request?
Related Tools
HTTP Status Code Lookup
Type any HTTP status code from 100 to 511 and read its official reason phrase, across the informational, success, redirect, client and server error ranges.
HAR Viewer
Read pasted HAR (HTTP Archive) and list requests with method, status, URL and time.
Retry-After Header Parser (HTTP 429 and 503)
Paste a Retry-After value in delay seconds or HTTP-date form to get the wait in seconds and minutes, or the exact instant to try again.
Focus-Visible CSS Snippet
Builds a ready-to-paste :focus-visible rule from an outline colour and a thickness in pixels, with 2px offset, for the WCAG 2.4.7 focus indicator.
Range Header Parser
Decompose a Range header (bytes=0-499, bytes=-100, etc.) into individual ranges with start, end and size.
Cache-Control max-age Explained
Convert the Cache-Control max-age value (in seconds) into a readable time in hours and days. Useful for understanding and debugging HTTP cache and CDNs.