Bearer Token Builder
Wrap a token in an Authorization: Bearer header -- with JWT auto-detection, whitespace validation, and curl/fetch/axios/HTTPie/Python export.
What this tool does
Wraps an access token in a correctly formatted
Authorization: Bearer <token> header — the
standard way an API client proves it holds a valid token (RFC
6750) — and exports it ready to paste into
curl, fetch(),
axios, HTTPie, or
Python requests, as a QR code, or
as a downloadable text file. If the token looks like a
JWT (three dot-separated Base64URL segments), it's
automatically detected and its algorithm and expiry status are
shown inline, with a direct link to the full JWT Decoder for a
complete breakdown.
Why whitespace in the token matters
A Bearer token is a single HTTP header value — any stray whitespace, a trailing newline from copy-pasting, or a line break in the middle silently breaks the header (some HTTP clients reject it outright; others truncate or mangle it). This tool checks for exactly that and flags it before you paste a header that looks right but won't actually work.
Catching a Basic Auth token pasted here by mistake
A Basic Auth token and a Bearer token are both just strings, so
it's an easy mix-up to paste one into the wrong tool. This one
checks: if what you pasted isn't JWT-shaped and decodes cleanly as
Base64 into a printable something:something pair,
that's almost certainly a Basic Auth credential, not an opaque
Bearer token — the tool flags it and links straight to the Basic
Auth Generator instead of silently wrapping it in the wrong
header.
Masking, QR export, history, and comparing two tokens
The token field can be masked (blurred, and automatically revealed while you're actively typing or editing it) for screen-sharing or a shoulder-surfing-prone room. The built header can be shown as a QR code for moving it to another device, and a session-only history keeps the last 8 built. A separate compare section checks whether two tokens are exactly identical — useful for confirming a refreshed token actually changed, or that two environments are issuing the same value.
Bearer vs. Basic
Unlike Basic Auth, a Bearer token carries no username/password pair to decode — it's an opaque (or, for a JWT, self-describing) credential the server already knows how to validate, typically issued by an OAuth 2.0 authorization server or a similar token issuer. Anyone holding the token can use it exactly like the legitimate client until it's revoked or expires, so it must be treated as a secret and only ever sent over HTTPS.
Privacy
Everything — formatting, JWT detection, QR rendering, and export — runs locally in your browser. The session history lives only in this tab's memory. The token you enter is never sent to a server.