Tools Viewer

JWT Decoder – Decode, Verify and Build JSON Web Tokens

To decode a JWT, paste the token into the decoder and read the header, payload and signature. To verify an HMAC-signed token, enter the secret. Decoding only reads the token, while verifying checks that the signature is valid. Everything runs in your browser.

What Is a JWT Decoder?

A JWT decoder shows what is inside a JSON Web Token. A JWT has three dot-separated parts: a header that describes the token, a payload that carries claims such as user ID and expiry, and a signature. The first two parts are Base64URL-encoded JSON, so anyone holding the token can read them.

ToolsViewer's online JWT decoder highlights each segment, shows the claims, reports timing status such as issued and expiry, and can verify and build HMAC-signed tokens. Your token and secret stay in your browser.

How to Decode a JWT

Step 1: Paste your token

Paste the full JWT into the input. You can load the sample token and secret to try the tool first.

Step 2: Read the segments

The header, payload and signature are shown with highlighting so you can see which part is which.

Step 3: Check claims and timing

Review claims such as iss, sub, aud, iat and exp, and see whether the token is issued, valid or expired.

Step 4: Verify the signature

Enter the secret to verify an HMAC signature.

Step 5: Build a token (optional)

Create a signed token by choosing an algorithm and entering your payload and secret.

JWT Decoder Features

  • Decode header, payload and signature segments with highlighting
  • Inspect claims and issued and expiry timing status
  • Verify HMAC signatures with a secret
  • Sign and build tokens with HS-family algorithms where supported
  • Sample token and secret for a quick try
  • Runs in your browser
  • Free to use, no signup required

Common Uses

  • Debug authentication: See exactly what your login service or API puts in a token.
  • Check expiry: Find out quickly whether a token has expired and when it was issued.
  • Inspect roles and scopes: Confirm user IDs, roles and permissions inside the claims.
  • Test signing: Build a token with a known secret to test your backend.
  • Learn how JWTs work: Explore a real token segment by segment.

Decode vs Verify

Decoding reads the contents of a token and works without any secret. Verifying checks the signature with the secret, which proves the token was not changed and was issued by someone who knows the secret. A token can be decoded and still be forged, so always verify on your server before trusting a token.

Encoding Is Not Encryption

A standard JWT is encoded, not encrypted. Anyone who has the token can read its payload, so never put passwords or private data in it.

Use Real Secrets Carefully

Do not paste production secrets into tools you do not trust. This decoder runs in your browser, but for live credentials it is still best practice to use test tokens or rotate secrets afterwards.

Supported Input

  • JSON Web Tokens in the three-part format
  • HMAC verification with a secret, and HS-family token building where supported

Frequently Asked Questions

How do I decode a JWT?
Paste the token into the decoder and the header, payload and signature are shown with their claims.
What is the difference between decoding and verifying a JWT?
Decoding reads the contents. Verifying checks the signature with the secret to confirm the token is genuine.
Is the JWT payload encrypted?
No. A standard JWT is only encoded, so anyone with the token can read the payload.
Is it safe to paste a JWT into this tool?
The decoder runs in your browser, but avoid pasting live production tokens or secrets into any online tool you do not control.
Can I create a JWT here?
Yes. You can build a signed token with a secret using the supported HS-family algorithms.

Explore related tools like JSON Formatter, JSON Validator, JSON Path Tester, and JSON Diff Checker to format, validate and inspect JSON online.