Skip to content
OddsockLocal
Local
Source text

Formatting

1 wordsRuns in this browser. Nothing is uploaded.

How to use

  1. Paste the three-part token.
  2. Read claims, then expired and notYetValid.
  3. Add the HMAC secret only if the algorithm is HS256, HS384 or HS512 and you are ready to see valid or invalid.
  4. Treat not verified as unchecked. Do not send the token on the strength of the claims alone.

What is Token inspector?

Token inspector is the decode aimed at the question you should ask before a token goes into a request: is it expired, is it not yet valid, and was the signature checked? The same alice token, with the secret left blank, still shows sub alice and name Ada, and signatureStatus stays not verified. expired is null. null is not a yes. The token never named an expiry, so the page will not invent one.

Read more

Paste the HMAC secret and the status becomes valid or invalid for HS256, HS384 and HS512, same as the decoder. Public-key algorithms decode and do not verify here. A token that is not three Base64URL parts fails with a request for a three-part JWT. Header extensions that disable Base64 or set crit are rejected.

Use the decoder when you are reading the JSON. Use this page when the next step is to send the token, and not verified should stop you. The secret and the token stay in the tab.

Use cases

  • A token is about to be copied into an Authorization header and you have not checked whether exp is in the past.
  • The secret is not available, and you need the status to stay not verified so nobody treats the claims as authenticated.
  • nbf is in the future and notYetValid should be true before the client retries.
  • You want the same alice example as the decoder, read with the expiry fields in front of you.

Claims read, signature deliberately unchecked

The HS256 alice token, HMAC secret left empty.

claims sub alice, name Ada. signatureStatus not verified. expired null. notYetValid null.

Why use Oddsock

null expiry is not a pass. A token that never set exp has not been shown to be current.

Related tools

Using this tool

It means the signature was not checked. The claims can still be read. They are not authenticated.