Skip to content

Menu

JWT Decoder

Decode and inspect JSON Web Tokens. View header, payload, and verify signature claims.

Runs entirely in your browserAuth & SecurityFree, no sign-up
Loading tool
What the decoder does with a tokenThe token is split on the dots and each part Base64URL-decoded; the signature is shown but not verified, which only your server can do.Paste tokenheader.payload.signature; Bearer prefix removedSplit on dots, Base64URL-decodefive parts → encrypted JWE, can't be readHeaderalg, typPayloadsub, iat,nbf, exp inUTCSignaturehex bytesExpired / not valid yet badgesNot done heresignature check, iss and aud checks
The token is split on the dots and each part Base64URL-decoded; the signature is shown but not verified, which only your server can do.

01What is JWT Decoder?

You copied a token out of a failing request and want to know what is inside it. JWT Decoder answers that in one paste. It takes a signed JSON Web Token, the compact JWS form from RFC 7515, splits it on the dots and Base64URL-decodes each part. The header and payload appear as formatted JSON. The signature appears as hex bytes, so you can see its length at a glance. A 32-byte signature fits HS256, for example. The header summary pulls out alg and typ. That tells you quickly whether a token claims HS256, RS256, ES256 or the unsigned none. The payload summary picks out sub and the three time claims defined in RFC 7519: iat (issued at), nbf (not before) and exp (expires). These are Unix seconds. The decoder prints them as UTC date-times and adds a relative distance, such as "in 3d 4h" or "2h 10m ago". An expired token gets a red badge. A token whose nbf is still ahead is marked not valid yet. Decoding is strict on purpose. Each segment may only use the Base64URL alphabet (A-Z, a-z, 0-9, - and _). The header and payload must be UTF-8 text that parses as a JSON object. When something is off, you get a specific message instead of a blank screen, such as "Payload is not valid JSON" or "Payload must be a JSON object". A leading Bearer prefix copied from an Authorization header is removed for you. A five-part token is recognised as an encrypted JWE, which nobody can read without the key. Here is a quick example. Paste the well-known sample token with payload sub 1234567890, iat 1516239022 and exp 1916239022. The tool shows HS256 in the header, issued at 2018-01-18 01:30:22 UTC and expiring at 2030-09-21 16:37:02 UTC. The signature shows as 64 hex characters, which is 32 bytes. Now the honest limit. This tool does not verify the signature. A token that decodes cleanly can still be forged or edited, and only your server, holding the secret or public key, can decide that. It also does not check iss or aud against anything. Everything runs in your browser. The token stays in memory and is not put in the page URL, so it does not land in browser history or analytics.

Backend and frontend developers debugging login flows, API developers checking why a request was rejected, and security reviewers checking which claims and algorithms an identity provider issues. The tool runs entirely in your browser, so your data never leaves your device.

02How to use JWT Decoder

  1. Paste the token (header.payload.signature) into the input box. A leading Bearer is fine.
  2. Read the header panel for alg and typ.
  3. Read the payload panel. sub, iat, nbf and exp are summarised above the full JSON, with times in UTC.
  4. Check the badge next to Expires (red when expired) and the Not valid yet badge if nbf is in the future.
  5. Copy the header, payload or signature (shown as Hex) from its panel, or use the toolbar Copy for header and payload together.

03Worked examples

Input: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyLCJleHAiOjE5MTYyMzkwMjIsInJvbGUiOiJhZG1pbiJ9.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
Result: Header: {"alg":"HS256","typ":"JWT"} Payload: {"sub":"1234567890","name":"John Doe","iat":1516239022,"exp":1916239022,"role":"admin"} iat = 2018-01-18 01:30:22 UTC, exp = 2030-09-21 16:37:02 UTC
A leading "Bearer " copied from an Authorization header is stripped, and the iat/exp seconds are shown as UTC dates.
Input: a.b.c.d.e
Result: This token has 5 parts, so it is an encrypted JWE. Its payload cannot be read without the decryption key.
A signed JWT has 3 dot-separated parts; an encrypted JWE has 5, and its payload is ciphertext.
Input: abc.def
Result: Expected 3 parts separated by dots, got 2
Input: eyJhbGciOiJub25lIn0.eyJzdWIiOiJ4In0.
Result: Header: {"alg":"none"} Payload: {"sub":"x"} Signature: (empty)
An unsecured token with alg "none" ends in a dot with an empty signature; it decodes fine, which is exactly why servers must not accept it.
Input: eyJhbGciOiJIUzI1NiJ9.e30+.abc
Result: Payload is not valid Base64URL (only A-Z, a-z, 0-9, - and _ are allowed)
JWTs use Base64URL, so a "+" (from standard Base64) is rejected.
Input: eyJhbGciOiJIUzI1NiJ9.WyJ4Il0.
Result: Payload must be a JSON object
The payload decodes to the JSON array ["x"]. RFC 7519 requires the claims set to be an object, so the decoder stops here.

04Common use cases

  • Reading the access or ID token an OAuth 2.0 or OpenID Connect provider returned, before wiring up your middleware
  • Checking whether exp has already passed when an API that worked an hour ago starts answering 401
  • Confirming that custom claims such as roles, scopes or a tenant ID were actually embedded by your auth service
  • Debugging an SSO failure by reading the iss and aud values the identity provider issued
  • Spotting clock skew, such as an nbf a few seconds ahead on a token your server just minted
  • Checking that a token from a staging environment is not quietly using alg none or an unexpected algorithm

05Tips

  • A JWS is signed, not encrypted. Anyone holding the token can read the payload, so never put secrets in it.
  • Decoding is not verification. Validate the signature, alg, iss, aud and exp on the server with a maintained JWT library.
  • If the header says alg none, the token is unsigned. A production API should reject it outright.
  • Count the hex signature: 64 characters means 32 bytes, which matches HS256 or ES256. A mismatch with alg hints the token was edited.
  • If you see a JSON error on a token from a URL, check whether a + or / slipped in from standard Base64. JWTs use - and _ instead.

06Related concepts

OAuth 2.0, OpenID Connect, JWS, JWE, RFC 7519.

Frequently Asked Questions

What is JWT Decoder?

JWT Decoder is a free, browser-based developer tool on AIDToolStack. Decode and inspect JSON Web Tokens. View header, payload, and verify signature claims. It requires no installation or sign-up and works entirely in your browser.

Is JWT Decoder free to use?

Yes. No sign-up, no fees and no usage cap.

Does JWT Decoder store my data?

No. It runs in your browser; nothing is uploaded.

Videos

From our YouTube channel. The player loads from YouTube only when you press play.

Cheat sheet

Related Tools

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe