Skip to main content

Free browser-based tool

JWT Decoder

Decode and inspect JSON Web Tokens (JWT). View header, payload, signature, and expiration time instantly.

Header

algHS256
typJWT

Payload Claims

sub1234567890
nameJohn Doe
iat1/18/2018, 1:30:22 AM (271613766s ago)

JWT Structure

A JSON Web Token consists of three Base64URL-encoded parts separated by dots:

header.payload.signature

Header

Contains the token type (JWT) and signing algorithm (HS256, RS256, etc.)

{ "alg": "HS256", "typ": "JWT" }

Payload

Contains claims (user data, expiration, issuer, etc.)

{ "sub": "1234567890", "name": "John Doe", "iat": 1516239022 }

Signature

Verifies the token hasn't been tampered with

HMACSHA256(base64UrlEncode(header) + "." + base64UrlEncode(payload), secret)

Standard JWT Claims

ClaimFull NameDescription
issIssuerWho created and signed the token
subSubjectWho the token is about (usually user ID)
audAudienceWho the token is intended for
expExpiration TimeWhen the token expires (Unix timestamp)
iatIssued AtWhen the token was issued
nbfNot BeforeTime before which the token is invalid

Frequently Asked Questions