Development and data

How to read a sample JWT without verifying its signature

A compact JWT can carry sample data in encoded segments. Decoding the data does not establish that the issuer is legitimate.

Before you start

Text is processed in the browser. Consider the content before using it and read the privacy policy.

Privacy

How to use it

  1. Build the fictional token by joining eyJhbGciOiJub25lIn0 and eyJzdWIiOiJleGFtcGxlIn0 with a dot and adding another dot at the end, without spaces.

  2. Enter it in JWT Inspector and decode it.

  3. Check the header and payload and the warning that the signature was not verified.

JWT Inspector

Worked example

The first segment represents {"alg":"none"} and the second {"sub":"example"}. The third segment is empty: this example has no signature.

Result: header alg = none; payload sub = example; signature not verified.

RFC 7519: JWT

Limits and checks

The tool decodes the two objects but does not validate the signature, issuer, audience, expiration or authorization; it also does not decode encrypted JWE. Do not paste real tokens into examples or shared devices, and do not trust data merely because it was decoded.

Next step

For a related text representation, see the Base64 guide.

Base64 is not encryption: how to encode sample text
Back to the blog