Generate HTTP Basic Auth, Bearer, and API key headers with ready-to-use code snippets.
Thie is a free online HTTP auth header generator for developers. It builds Basic Auth, Bearer tokens with a built in JWT decoder, and API key headers. You get copy paste ready snippets for cURL, Fetch, Axios, Python, PHP, Java, Angular, and Go. Everything runs locally in your browser. No server calls.
Authorization header for HTTP requestsGET, POST, PUT, PATCH, DELETEAuthorization headers during third party API integrationCreds and tokens never leave your machine. Encoding and decoding happen right in the browser.
Pure HTML, CSS, and vanilla JS. No frameworks, no CDN calls, no build step.
Headers and snippets update as you type. No submit buttons.
Save the HTML file locally and use it without an internet connection. Perfect for air gapped environments.
Touch optimized interface with large tap targets. 16px inputs prevent iOS auto zoom.
Output strictly follows standards for Basic and Bearer authentication.
username:password sent as Authorization: Basic <credentials>Token or MACX-API-Key or as a URL query parameter with proper encodingRFC 7617 is an HTTP scheme where credentials are sent as a Base64 encoded string in the format username:password. The resulting header looks like Authorization: Basic dXNlcjpwYXNz. Base64 is encoding, not encryption. Always use HTTPS with Basic Auth. Check MDN for more details.
header.payload.signature. This tool decodes both the header (algorithm, type, key ID) and the payload (claims like exp, iat, sub) locally in your browser. The signature is not verified. This is a decoder, not a validator. See jwt.io for a good intro.
RFC 6750 is typically a short lived signed token like JWT used in OAuth 2.0 flows. It goes in the Authorization header as Bearer <token>. An API key is a long lived secret string, usually sent as a custom header or a URL query parameter. API keys identify the client. Bearer tokens authorize a specific session.
GET, POST, PUT, PATCH, and DELETE. Code snippets automatically adapt to the selected method, including correct cURL flags, Fetch and Axios method parameters, and Python or PHP request types.
exp claim, Basic Auth is stateless and persistent. If you need time limited access, use Bearer tokens with JWT instead.
Authorization headers are whitelisted in CORS (Access-Control-Allow-Headers) and proxy settings. Some frameworks also strip custom headers by default.