Base64 Encoder and Decoder
Encode text or any file to Base64 and decode it back, with full UTF-8 support, URL-safe output, and data URIs.
Runs in your browser. Your input stays on your device.
Decode a JSON Web Token (JWT) to read its header, payload, and claims, right in your browser: the token never leaves your device. Expiry times show in your time zone and in UTC, risky tokens get clear warnings, and the signature is not verified.
Opens a file from your device. The file is read in your browser and is not uploaded.
Showing a large file in the editor can make the page slow or unresponsive for several seconds.
0 characters · 0 B
Decoded
Privacy: This tool runs in your browser. Your input is processed on your device and is never uploaded to a server.
An HS256 token and its decoded header and payload.
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL2F1dGguZXhhbXBsZS5jb20iLCJzdWIiOiJ1c2VyXzQ4MjEiLCJhdWQiOiJodHRwczovL2FwaS5leGFtcGxlLmNvbSIsIm5hbWUiOiJBeWVzaGEgS2hhbiIsInNjb3BlIjoib3JkZXJzOnJlYWQgb3JkZXJzOndyaXRlIiwiZXhwIjo0MTAyNDQ0ODAwLCJqdGkiOiIwYjlhNWYzZS03YzIxLTRkOGUtOWY2MC0yYTFiM2M0ZDVlNmYifQ.RUprgeXbt0BStQVT0BOOPrFFJXnIrw8pG8ssTzdrazwHeader
{
"alg": "HS256",
"typ": "JWT"
}
Payload
{
"iss": "https://auth.example.com",
"sub": "user_4821",
"aud": "https://api.example.com",
"name": "Ayesha Khan",
"scope": "orders:read orders:write",
"exp": 4102444800,
"jti": "0b9a5f3e-7c21-4d8e-9f60-2a1b3c4d5e6f"
}Yes. The token is decoded by JavaScript in your browser and is never sent to a server, logged, or stored. You can disconnect from the internet after the page loads and it still works. A JWT is still a credential, though: anyone who has it can use it until it expires, so do not paste live production tokens into tools you do not trust.
No. This tool decodes the token and explains it; it does not check the signature, so it cannot tell you whether the token is genuine. Verification needs the secret or the public key and should happen in your server code with a maintained JWT library.
The header and payload are only Base64URL encoded, not encrypted. The signature proves they were not changed, but it does not hide them. Never put passwords, API keys, or personal data in a JWT unless it is an encrypted JWT (JWE).
They are times in seconds since 1 January 1970 (UTC). exp is when the token expires, iat is when it was issued, and nbf ("not before") is when it starts to be valid. This tool shows each one as a date in your time zone and in UTC, with how long ago or how far ahead it is.
Many servers allow a little clock skew, often a minute or a few minutes, so a token can be accepted just after its exp. Your server or the issuer may also have a clock that is slightly off. The status here is calculated once, from your device’s clock, at the moment you decode.
It means the token has no signature, so anyone can change the payload, for example to raise their own permissions. Servers must never accept unsigned tokens. Some old libraries did by mistake, which is why this tool always warns about it.
It recognizes them (they have five parts instead of three) and shows the protected header, which is not encrypted. The payload itself is encrypted and cannot be read without the key, so this tool does not try.
A version of Base64 that is safe in URLs: it uses - and _ instead of + and /, and leaves out the = padding. JWTs must use it. If a token uses standard Base64 characters or padding, this tool still decodes it but warns you, because most JWT libraries will reject it.
Tutorial Published
Encode text or any file to Base64 and decode it back, with full UTF-8 support, URL-safe output, and data URIs.
Convert Unix timestamps in seconds, milliseconds, microseconds, or nanoseconds to dates in any time zone, and back.
Percent-encode text for URLs or decode it back, with clear errors and a breakdown of every URL part and query parameter.