Skip to content
Local Only Dev Tools
6 min read

How to Decode a JWT and Inspect Its Expiration

Decode a real token, read sub, iat and exp, and understand why decoding is not verification.

Quick answer

Paste the token into a local decoder, read sub, iat and exp, then verify the signature separately on a trusted server.

Split the token

A JWT has three dot-separated parts. The header describes the algorithm, the payload carries claims, and the signature protects the first two parts when verified correctly.

Paste the token into a local decoder to read the header and payload as formatted JSON.

Read the claims that matter

sub identifies the subject, iat is the issued-at time and exp is the expiration time. Both timestamps are seconds since 1970-01-01 UTC; a readable ISO value makes them much easier to check.

  • •sub — who the token is about
  • •iat — when it was issued
  • •exp — when it stops being valid

Decoding is not verification

Anyone can decode a JWT. Only signature verification with the correct key proves who issued it. Never treat decoded claims as trusted input.

Common mistakes

  • •Trusting unverified claims
  • •Misreading epoch seconds
  • •Confusing decode with verify

When to use this

  • •Authentication debugging
  • •Checking token expiry
  • •Inspecting claim structure

Try it yourself

Decode a JSON Web Token and inspect its header, payload and signature without verification. Runs locally in your browser.

Open JWT Decoder