← All tools
Tool 08 — Developer Tools

Base64 & JWT Decoder

Encode or decode Base64 strings, or inspect any JWT token — all in your browser, nothing sent to any server.

Base64 & JWT Decoder

Encode, decode Base64 or decode a JWT token instantly.

What is Base64 encoding?

Base64 is a binary-to-text encoding scheme that represents binary data using a set of 64 printable ASCII characters (A–Z, a–z, 0–9, +, /). It was designed to safely transmit binary data through systems that only handle text — email protocols (MIME), HTTP headers, data URLs, and API responses.

Base64 is an encoding, not encryption. It adds no security — anyone can decode a Base64 string instantly. It is purely a format transformation. A common beginner mistake is treating Base64-encoded data as "protected" when it is trivially reversible.

How Base64 encoding works

Base64 converts every 3 bytes of binary data into 4 ASCII characters. The process:

The result is always approximately 33% larger than the original input. A 3MB image encoded in Base64 becomes roughly 4MB as a string.

Common uses of Base64

What is a JWT (JSON Web Token)?

A JSON Web Token is a compact, self-contained way to represent claims between two parties. It is widely used for authentication and authorization in web APIs — instead of storing session state on the server, the server issues a signed JWT that the client stores and sends with each request.

Header

Specifies the token type (JWT) and the signing algorithm (HS256, RS256, etc.). Base64URL encoded.

Payload

Contains the claims — user ID, roles, expiry time, and any custom data. Base64URL encoded. Readable by anyone — never put secrets here.

Signature

HMAC or RSA signature over header + payload. Verifies the token hasn't been tampered with. Only parties with the secret/private key can create valid signatures.

A JWT looks like: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyIjoiYWxpY2UifQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

JWT security vulnerabilities to know

← Back to all tools
Copied!