JWT Decoder
JWT Decoder
Decode and inspect any JWT token instantly — header, payload, expiry and signature details, all in your browser.
JWT Decoder Tool
This is a made-up sample token. Paste your own over it.
🔒 Decoded in your browser. This page does not send your token anywhere, but a pasted token stays in the box and in the page's memory until you press Clear or close the tab, and your browser may restore it if you come back. Other scripts on the page share that space: ours, ads if you have accepted them, and any browser extensions you run.
alg: none — it is unsigned. Nothing binds the header or payload to an issuer, so anyone can rewrite any claim in it. RFC 7518 §3.6 defines none as the "Unsecured JWS"; RFC 8725 §3.2 says libraries should not accept such tokens unless the application explicitly requires them.
What the time claims say
This compares exp and nbf with the clock on your device, once a second, so a wrong clock gives a wrong answer, and a service may allow a few minutes of leeway.
No signature was checked. A token can be unexpired and still be
forged, unsigned, or issued by someone you do not trust.
Registered claims in this token
Not verified. Checking a signature needs the secret or public key, and this tool never asks for one.
How to Use the JWT Decoder
Paste your JWT token
Decoding happens as you paste. A Bearer prefix, quotes and line breaks are tidied for you. Use a test token where you can, and press Clear when you are done.
Read the header
The header shows which algorithm the token declares, such as RS256, HS256 or ES256, and that is what a verifier needs to know. It is only a claim: anyone who can edit the token can edit it too. The page flags none, a missing alg, a signature of the wrong length for that algorithm, and headers that point at a key.
Check the claims and the time status
The payload panel shows everything in the token. Below it, each registered claim is explained and checked against RFC 7519: a date sent as text or in milliseconds is named, not skipped. The status compares exp and nbf with your device's clock and updates while the token is on screen. Times are shown in Singapore Time, and in your own zone if it differs.
Remember that this tool only decodes
Nothing here checks the signature, so nothing here can tell you a token is genuine. Verify in your own code with your JWT library and the issuer's key. As RFC 7519 §11.1 puts it: "The contents of a JWT cannot be relied upon in a trust decision unless its contents have been cryptographically secured and bound to the context necessary for the trust decision."
JWT Tokens — The Authentication Standard Behind Modern APIs
What Is a JWT and How Does the Three-Part Structure Actually Work?
A JSON Web Token, defined by RFC 7519 in May 2015, is a compact, URL-safe way of representing claims between two parties.
A signed JWT, the JWS Compact Serialization form that almost everyone means by "JWT",
consists of three Base64URL-encoded segments separated by dots:
header.payload.signature. An encrypted JWT, JWE Compact Serialization,
has five segments instead. The header is a JSON object declaring the
signing algorithm (alg) and usually the token type (typ). The payload
is a JSON object containing the claims: statements about a user or other subject. The
signature is computed over the encoded header and payload with a secret
or private key.
A crucial point: Base64URL encoding is not encryption. Anyone holding a signed JWT can read its header and payload, so never put passwords or anything else sensitive in one. The signature is not secret either. It proves the token was made by someone holding the key: only they can create it, and anyone holding the matching key can check it.
The attraction is that a server can check a JWT without looking up a session in a database, which suits systems of many services. The cost is revocation: once issued, a token stays usable until it expires unless you add a blocklist or rotate the key.
RS256 vs HS256: Signing Algorithms Explained for ASEAN API Developers
The two most common JWT signing algorithms are HS256 and RS256, and choosing between them has significant security implications.
HS256 (HMAC-SHA256) uses a single shared secret for both signing and verification. It is simpler to implement and faster to compute, making it appropriate for internal services where both the issuer and consumer are controlled by the same organisation. The weakness: any system that can verify a HS256 JWT can also forge one, because they share the same secret key.
RS256 (RSA-SHA256) uses asymmetric keys: a private key for signing and a corresponding public key for verification. Only the issuer holds the private key; any consumer can download the public key and verify tokens without being able to forge them. This is why asymmetric algorithms are the norm for public-facing OAuth 2.0 and OpenID Connect providers: the public keys are discoverable via a JWKS (JSON Web Key Set) endpoint at a well-known URL, so any relying party can verify without ever holding a signing key. Check the provider's own developer documentation for the algorithm it actually issues — do not assume.
ES256 (ECDSA with P-256 and SHA-256) is an asymmetric algorithm like RS256 but produces much shorter signatures — a 64-byte ES256 signature compared to a 256-byte RSA signature. ES256 is increasingly preferred in mobile and IoT contexts where bandwidth and token size matter.
Why a Singpass ID token has five parts
A five-part token is not a broken one. Singpass is a Singapore example: its integration guide (“4. Parsing the ID Token”, Singpass Developer Docs) says the ID token is a JWS that is also encrypted as a JWE. Paste one here and you see only the outer header; the claims inside need your private key. Whatever provider you integrate with, take the signing algorithm, key rotation and claim set from its current documentation rather than from a decoded sample: the header of a token you were handed tells you what that token claims, not what the issuer actually signs with.
The Seven Registered Claims
All seven are optional under RFC 7519 §4.1; a profile such as OpenID Connect makes some of them mandatory.
| Claim | Type | What a verifier does with it |
|---|---|---|
iss | StringOrURI | Checks the token came from the issuer it expects |
sub | StringOrURI | Identifies the subject, usually a user |
aud | StringOrURI, or an array | Rejects the token if it does not list this recipient |
exp | NumericDate | Rejects it at or after this time; the current time must be before it |
nbf | NumericDate | Rejects it before this time; the current time must be at or after it |
iat | NumericDate | Records when it was issued, and can be used to work out its age |
jti | String | Gives it a unique ID, which can be used to stop replay |
A NumericDate is a count of seconds since 1970 in UTC, not milliseconds. It may hold a fraction. A StringOrURI containing a colon must be a URI.
Frequently Asked Questions
-
A JWT (JSON Web Token) is a compact, URL-safe string carrying claims as JSON. A signed one has three Base64URL-encoded parts, header, payload and signature, separated by dots. JWTs are mostly used for API authentication and authorisation.
-
No. It means the clock on your device is before the token's
expand not before itsnbf. It says nothing about who made the token. Only checking the signature with the right key, and the issuer and audience, can do that, and this tool does neither. -
This page decodes in your browser and does not send your token anywhere. That is not the same as safe: the token stays in the box and in memory until you clear it or close the tab, and other scripts on the page, including ads if you have accepted them, and your browser extensions run alongside it. We advise against pasting a live token containing real user data into any web page, this one included. Use a test token. If you pasted a live one, revoke it if your provider allows that.
-
Standard JWTs (JWS) are encoded, not encrypted. Anyone can reverse Base64URL without a key. Encrypted JWTs (JWE) do hide the payload, have five parts, and need the recipient's key to read; this tool shows only their header.
-
Your device's. It is compared with
expandnbfonce a second. If your clock is wrong the status is wrong, and a real service uses its own clock and may allow a few minutes of leeway, as RFC 7519 permits. JWT times are Unix seconds in UTC; we display them in Singapore Time, because RECATOOLS is based there, and in your own zone if that differs. -
It declares RSA signatures with SHA-256: the issuer signs with a private key, and anyone with the public key can verify, without being able to forge. HS256 uses one shared secret for both, and ES256 uses elliptic-curve keys. The value is just a field in the token, so a verifier must fix the algorithm it expects rather than believe the header.
-
In your own code, with your JWT library (for example
jsonwebtokenin Node.js,firebase/php-jwtin PHP orPyJWTin Python), the signing secret or public key, and the algorithm you expect. OAuth and OpenID Connect providers usually publish their public keys at a JWKS URL. This tool does not verify, and never asks for a key. -
It is encrypted (JWE). Some providers, including Singpass for its ID token, sign a JWT and then encrypt it. Only the outer header is readable without the private key.
-
A service that checks
exprejects it, normally with a 401 for an HTTP API, and the client has to get a new token, often with a refresh token. Short-lived access tokens limit the damage of a leak. -
OWASP advises against keeping session identifiers in local storage, because any JavaScript on the page can read it. An
HttpOnlycookie is out of reach of scripts, but cookies are sent automatically, so pair them withSameSiteand CSRF protection. On mobile, use the platform's secure storage.
Related News
You may be interested in these recent stories from our newsroom.
-
NSM: Azure API Management Attack Affected Equinor, Skagerak; Rotate All Secrets
NSM says the flaw should now be closed, but every API Management secret should be treated as exposed.
-
Forged Admin Tokens Are Hitting WSO2 API Gateways Patched Five Months Ago
A token signed with an algorithm the gateway does not support is accepted anyway. WSO2 scored it 10.0 and shipped the fix in April; the forg...
-
One in Ten Exposed LiteLLM Gateways Answers to the Key in the Documentation
Wiz found 9.6 per cent of 3,074 public LiteLLM proxies accepting sk-1234 or no key at all — which is why LiteLLM scoring a post-authenticati...
Method & sources
How it computes
Tidies a pasted token, then decodes the header and payload as strict base64url, UTF-8 and JSON objects. Each registered claim is checked against RFC 7519 §2 and §4.1: a date in text or milliseconds is named. exp and nbf are compared with the device clock once a second, with exp expired at its exact second. Header notes cover alg, signature length and key pointers. It never verifies a signature, so it cannot say a token is genuine. A 5-part JWE shows its header only.
What this tool implements
- Decoding is not verifying. RFC 7519 §11.1: the contents "cannot be relied upon in a trust decision" until cryptographically secured. No signature is checked, no key is asked for, and nothing on the page calls a token valid.
- Boundaries from RFC 7519. §4.1.4: "the current date/time MUST be before" exp, so a token is expired at its exp second; §4.1.5: the current time must be "after or equal to" nbf. Both are compared with the device clock, re-read every second, and §4.1.4 lets a service allow "a few minutes" of leeway, so a wrong clock or a lenient service changes the answer. The page says so.
- Well-formedness from the RFCs: base64url with no padding (RFC 7515 §2); a UTF-8 JSON object for header and claims (RFC 7519 §7.2); unique claim names (§4); NumericDate as a number of seconds (§2); StringOrURI (§2); alg required (RFC 7515 §4.1.1); an empty signature with alg none (RFC 7518 §3.6); HMAC and ECDSA signature sizes (RFC 7518 §3.2 and §3.4). A wrong signature length says a token may be cut short; a right one says nothing about whether it is genuine.
- Measured in Chrome 156 on 2026-11-02 with a marked token: of 40 requests the page made, none carried it, and neither localStorage nor sessionStorage held it; consented ad scripts were not loaded in that run. A pasted token stays in the text box and page memory until cleared, and page scripts and browser extensions share that space, which the page now says beside the box, with a Clear button.
- Corrected 2026-11-02: exp live at its exact second; a string exp shown as "No expiry claim"; "Token never expires" (exp is optional; a service may limit a token some other way); "Only the signature is secret" (the key is; the signature travels in the token); "only the key-holder can verify" (anyone with the public key can); the header "tells you how the token was signed" (it declares it, and is itself attacker-editable); "securely transmit"; a "Bearer" prefix and a wrapped token failing as not a JWT; invalid UTF-8 silently replaced; 13-digit dates shown as a year near 50000 with no comment. Removed as unsourced: "most widely used format", "hundreds of millions of applications", "15-60 minutes" as best practice, MyInfo payload details, and the ten fact cards.
Sources
- Jones M, Bradley J, Sakimura N. RFC 7519: JSON Web Token (JWT). 2015. https://www.rfc-editor.org/rfc/rfc7519.html
- Jones M, Bradley J, Sakimura N. RFC 7515: JSON Web Signature (JWS). 2015. https://www.rfc-editor.org/rfc/rfc7515.html
- Jones M, Hildebrand J. RFC 7516: JSON Web Encryption (JWE). 2015. https://www.rfc-editor.org/rfc/rfc7516.html
- Jones M. RFC 7518: JSON Web Algorithms (JWA). 2015. https://www.rfc-editor.org/rfc/rfc7518.html
- Sheffer Y, Hardt D, Jones M. RFC 8725: JSON Web Token Best Current Practices. 2020. https://www.rfc-editor.org/rfc/rfc8725.html
- Singpass Developer Docs. Parsing the ID Token — the ID token is a JWS, also encrypted as a JWE. docs.developer.singpass.gov.sg
- OWASP. HTML5 Security Cheat Sheet, Local Storage — do not store session identifiers in local storage. https://raw.githubusercontent.com/OWASP/CheatSheetSeries/master/c…
What can make this go out of date
- None at runtime: the token is decoded in your browser and this page does not send it anywhere. It stays in the page until cleared, and other scripts and extensions on the page share that space.