JWT Examples

Sample JWT tokens for learning and testing.

Sample JWT Token

Copy this token to test the decoder:

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

Decoded Header

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

Decoded Payload

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

Common JWT Claims

sub (Subject)

The subject of the token, usually a user ID.

iat (Issued At)

Unix timestamp when the token was issued.

exp (Expiration)

Unix timestamp when the token expires.

iss (Issuer)

The issuer of the token.