Upload a file
  1. base64hub
  2. Web & token tools

Base64 Web, Token and Payload Tools

Tokens, headers, encoded payloads and escaped strings from APIs, logs and config files. Find the matching tool below by what the string looks like; none of them sends your data anywhere.

Free no sign-up, no limits Local nothing uploaded Updated Oct 27, 2026
JWTJWT decoderHeader, payload, expiry and signature check -_Base64URL encoderURL-safe Base64, no padding AUTHBasic Auth headeruser:password to Authorization header URIData URI generatordata: links for HTML and CSS -_Base64URL decoderDecode tokens from URLs JWTJWT encoderBuild and sign tokens (HS, RS, ES, EdDSA) URIData URI parserInspect and decode data: URLs AUTHBasic Auth decoderAuthorization header to user and password K8SKubernetes Secret decoderDecode every data: value at once DKR.dockerconfigjson decoderRegistry auths to user and password SAMLSAML decoderSAMLResponse and SAMLRequest to XML PSPowerShell -EncodedCommandUTF-16LE Base64 both ways EMLEmail decoderBodies and attachments from raw email GZgzip + Base64Compress, then encode GZGzip Base64 decoderBase64, then gunzip or inflate ZLzlib + Base64Deflate, zlib and raw deflate {}Base64 in JSONFind and decode Base64 fields QPQuoted-printableThe other email encoding -_Base64 to Base64URLSwap + / for - _ and trim = -_Base64URL to Base64Restore + / and padding %20URL encodePercent-encode text for URLs %20URL decodeTurn %20 and friends back into text &HTML entitiesEscape and unescape < & '

Which web tool do I need

What you haveLooks likeTool
A JSON Web TokeneyJhbGci….eyJzdWIi….sigJWT decoder, JWT encoder
An Authorization headerBasic dXNlcjpwYXNzBasic Auth decoder, Basic Auth header
Base64 with - and _, no =SGVsbG8_d29ybGQBase64URL decoder, Base64URL encoder
Convert between the two alphabetsBase64 to Base64URL, Base64URL to Base64
A data URIdata:image/png;base64,…Data URI parser, Data URI generator
A SAML messageSAMLResponse=PHNhbWxwOl…SAML decoder
A Kubernetes Secretdata: values in YAMLKubernetes Secret decoder
An image pull secreteyJhdXRocyI6….dockerconfigjson decoder
Compressed Base64H4sI… or eJ…Gzip Base64 decoder; to create: gzip, zlib
A JSON document with encoded fields"body": "eyJ…"Base64 in JSON
An encoded PowerShell commandpowershell -enc JABzAD0A…PowerShell -EncodedCommand
Raw email sourceContent-Transfer-Encoding: base64Email decoder, Quoted-printable
URL-encoded textq=caf%C3%A9%20menuURL decode, URL encode
HTML-escaped text<p>Café</p>HTML entities

Layers on top of layers

Web payloads are often wrapped several times, and each layer needs its own tool. A few common stacks:

  • Pull secrets: Kubernetes Base64 around Docker JSON around a Base64 user:password. The .dockerconfigjson decoder unwraps all three.
  • SAML Redirect: XML, raw deflate, Base64, URL encoding. The SAML decoder reverses the whole chain.
  • Helm releases: JSON, gzip, Base64, and Kubernetes Base64 again.
  • Redirect URLs: a URL-encoded URL inside a query parameter, sometimes encoded twice. The URL decoder’s Decode repeatedly option handles that.
  • Flask session cookies: JSON, optionally zlib-compressed (a leading . marks that), Base64URL, then a timestamp and a signature, joined with dots.

When a decoded result still looks encoded, check its first characters against the table above and continue with the matching tool.

Encoding is not protection

None of these formats hide anything. A JWT payload, a Basic Auth header, a Kubernetes Secret and a SAML assertion can all be read by anyone who sees them; only a signature or real encryption adds security. The decoders here are useful precisely because of that, and the same reason makes it worth keeping such strings out of logs, screenshots and tickets. More in encoding vs encryption.

For certificates, SSH keys and hashes, see keys and certificates. For plain strings and charsets, the text tools.

FAQ

How can I tell what kind of encoded string I have?

By its shape: three dot-separated parts starting eyJ are a JWT, % with two hex digits is URL encoding, & is HTML escaping, H4sI is gzip, and - or _ in Base64 mean Base64URL. The table on this page lists more patterns and where each one goes.

Are these tools safe for production tokens and secrets?

They run in your browser, and the page’s Content Security Policy blocks every network request except Cloudflare’s page-view count, so pasted data cannot be sent anywhere. Treat live tokens with care anyway and rotate any secret that was exposed elsewhere.

What is the difference between URL encoding and Base64URL?

URL encoding escapes individual characters as %XX and keeps the rest readable. Base64URL turns arbitrary bytes into letters, digits, - and _. Use URL encoding for text values, Base64URL for binary data and tokens.