JWT Decoder & Token Inspector
Decode, inspect, and debug JSON Web Tokens in real time. View headers, payload claims, signature structures, and live expiration dates 100% in your browser.
encoded_jwt.token
Segments:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c3JfOTQ4MjAiLCJuYW1lIjoiQWxleCBSaXZlcmEiLCJlbWFpbCI6ImFsZXhAZXhhbXBsZS5jb20iLCJyb2xlcyI6WyJhZG1pbiIsImRldmVsb3BlciJdLCJpYXQiOjE3NzQ1NjcyMDAsImV4cCI6MTk5NDU2NzIwMH0.dGVzdF9zaWduYXR1cmVfaGFzaF92YWx1ZV8xMjM0NQ
● Header: Algorithm & Token Type
{
"alg": "HS256",
"typ": "JWT"
}● Signature Hash
dGVzdF9zaWduYXR1cmVfaGFzaF92YWx1ZV8xMjM0NQCryptographic signature verified 100% in-browser with zero secret transmission.
● Payload Claims & User Data
{
"sub": "usr_94820",
"name": "Alex Rivera",
"email": "[email protected]",
"roles": [
"admin",
"developer"
],
"iat": 1774567200,
"exp": 1994567200
}exp: 3/16/2033, 6:26:40 AM
Active (in 2328d)How to Decode and Inspect JSON Web Tokens (JWT)
- Paste Your Encoded Token: Paste your JWT into the input field above, or test with a preloaded sample token.
- Inspect the Color-Coded Segments: A standard JWT is split into three parts: Header (rose), Payload (purple), and Signature (cyan).
- Verify Expiration Dates: The tool automatically converts Unix epoch timestamps into human-readable local dates and relative times (e.g. “Expires in 2 hours” or “Expired 4 days ago”). To calculate custom timestamps or compare global timezones, use our Unix and epoch timestamp converter.
- Review Claims: Inspect user identifiers (
sub), authorized roles, audience parameters (aud), and custom token claims. - One-Click Copy: Copy decoded JSON claims directly into your editor or API client.
Understanding the Three Components of a JWT
- 1. Header: Contains cryptographic metadata, primarily the signature algorithm used (e.g.
HS256orRS256) and the token type (JWT). - 2. Payload: Contains the claims - statements about the user and entity alongside metadata like issuance time (
iat) and expiration (exp). - 3. Signature: A cryptographic hash generated by combining the encoded header and payload with a secret key, ensuring the token was not tampered with in transit.
Critical JWT Security Best Practices
- JWTs Are Encoded, Not Encrypted: Anyone who intercepts a JWT can decode the Base64URL payload. Never store database passwords, API secrets, or credit card numbers in claims.
- Always Check Expiration on the Backend: Never rely exclusively on client-side expiration checks; API gateways must reject requests whose
exptimestamp has passed. - 100% Client-Side Inspection: Decoding occurs exclusively in your browser's JavaScript engine, ensuring production auth tokens are never stored or logged on an external server.