Processed entirely in your browser. Your input is not uploaded.

JWT Decoder

Inspect a JSON Web Token: decode the header and payload, review standard claims with dates, and check whether it has expired.

Last updated November 12, 2026

Loading tool workspace…

Overview

Inspect, debug, and decode JSON Web Tokens (JWTs) adhering to RFC 7519 directly in your browser. This tool splits and Base64URL-decodes the three token segments (Header, Payload, and Signature), formats the nested JSON data, parses standard registered claims (exp, nbf, iat, iss, sub), converts Unix timestamps into human-readable local and UTC dates, and evaluates live expiration status.

All parsing occurs client-side with zero network calls, preserving the confidentiality of development credentials and identity tokens.

How it works

A signed JSON Web Token (JWS) consists of three ASCII strings separated by periods (.):

[Header].[Payload].[Signature]

1. Header: A JSON object specifying the token type (typ: "JWT") and cryptographic signing algorithm (alg, such as HS256, RS256, or ES256). 2. Payload: The claims set carrying application data and identity attributes. Standard registered claims include: • exp (Expiration Time): Unix epoch seconds after which the token must be rejected. • iat (Issued At): When the token was originally generated. • nbf (Not Before): Time before which the token must not be accepted. • iss (Issuer): Principal that issued the JWT. • sub (Subject): Principal that is the subject of the JWT (e.g. User ID). • aud (Audience): Intended recipient systems. 3. Signature: A cryptographic hash (HMAC or digital signature) computed over the Base64URL-encoded header and payload using the issuer's secret or private key.

CRITICAL SECURITY DISTINCTION: Decoding vs. Verifying Decoding a JWT is simply Base64URL string decoding and JSON parsing — it requires no secret key and can be performed by anyone who possesses the token string. Verifying a JWT means recomputing and mathematically validating the cryptographic signature against the issuer's public key or shared secret. Only verification proves the token was not tampered with and was genuinely created by the claimed issuer.

How to use the JWT Decoder

1

Paste the Token

Drop in the full header.payload.signature string, or load a sample.

2

Review the Parts

The decoded header and payload are shown as formatted JSON.

3

Check Claims

Standard claims are labelled, timestamps converted to ISO dates, and expiry status shown.

When to use it

  • Debugging authentication and authorization tokens generated by OAuth 2.0 / OpenID Connect identity providers (e.g. Auth0, Firebase, Keycloak, Supabase).
  • Checking whether an authentication session token has expired without waiting for an API 401 Unauthorized response.
  • Verifying that custom scopes, roles, organization IDs, and user claims are correctly populated in the payload.
  • Inspecting the token header to check whether modern asymmetric algorithms (RS256, ES256) or symmetric HMAC (HS256) are employed.

Examples

Decoded Header Structure

Input
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9
Output
{
  "alg": "HS256",
  "typ": "JWT"
}

Specifies that the token is signed with HMAC-SHA256.

Decoded Payload with Registered Claims

Input
eyJzdWIiOiJ1c3ItOTk4MiIsIm5hbWUiOiJBZGEgTG92ZWxhY2UiLCJpYXQiOjE3MDAwMDAwMDAsImV4cCI6MjEwMDAwMDAwMH0
Output
{
  "sub": "usr-9982",
  "name": "Ada Lovelace",
  "iat": 1700000000,
  "exp": 2100000000
}

Decodes the subject ID, human name, issued-at timestamp, and future expiration date.

Expired Token Detection

Input
Token with exp: 1609459200 (1 January 2021)
Output
Status: Expired
Message: Token expired on 2021-01-01T00:00:00.000Z

The tool immediately surfaces an amber alert when the current wall-clock time surpasses the exp timestamp.

Key Features & Accuracy

Claim Explanations

iss, sub, aud, exp, nbf, iat and jti are labelled so the payload is readable.

Expiry Status

Instantly see whether a token is still valid, expired, or has no expiry at all.

Unicode Safe

Decodes non-ASCII payloads correctly, unlike naive atob-only implementations.

Honest About Security

States clearly that decoding is not signature verification.

Limitations & important notes

This tool ONLY decodes and inspects tokens; it DOES NOT and CANNOT verify the cryptographic signature because signature verification requires the issuer's private key or secret passphrase.
Never rely on client-side decoding for backend authentication or authorization decisions; an attacker can easily forge an unsigned or modified payload with elevated permissions.
Encrypted tokens (JWE - JSON Web Encryption, which have 5 dot-separated segments) cannot be decoded without the decryption private key.
Never paste production JWTs containing sensitive personal data or administrative API secrets into untrusted computers or third-party web tools.

Frequently Asked Questions

No. Decoding is just base64url plus JSON parsing. Verifying a signature needs the issuer's secret or public key, which this tool does not have and should not receive.