Runs 100% in your browser
Your data never leaves your device. zero uploads.
Decode, Verify, and Generate JSON Web Tokens (JWT) fully securely within your browser.
JSON Web Tokens (JWT) are an open, industry standard (RFC 7519) method for representing claims securely between two parties. They are widely used for authentication and information exchange in modern web applications and APIs.
To Decode and Verify: Paste your JWT into the "Encoded" text area on the left. The decoded Header and Payload appear on the right, and the badge checks the signature against the secret or key in the "Verify Signature" section, which you can enter before or after pasting.
To Encode & Sign: Edit the JSON in the "Decoded" Header or Payload sections, then select your algorithm and enter your secret or private key in the "Verify Signature" section. The token on the left is rebuilt and signed as you type. RS, PS and ES algorithms need a PKCS#8 private key (BEGIN PRIVATE KEY), and the new token is verified with the public key derived from it.
A JWT consists of three parts separated by dots (.), which are the Header, Payload, and Signature. Because of this structure, a JWT usually looks like this: xxxxx.yyyyy.zzzzz.
To create the signature part you have to take the encoded header, the encoded payload, a secret, the algorithm specified in the header, and sign that combination. For example, if you want to use the HMAC SHA256 algorithm, the signature will be created in this way:HMACSHA256(base64UrlEncode(header) + "." + base64UrlEncode(payload), secret)
JWTs are most commonly used for Authorization and Information Exchange. Once the user is logged in, each subsequent request will include the JWT, allowing the user to access routes, services, and resources that are permitted with that token. Because tokens can be signed, you can be sure the senders are who they say they are.
Never put secret information in the payload or header elements of a JWT unless it is encrypted. JWTs are signed to protect against tampering, but they are generally base64-encoded, not encrypted, meaning anyone can decode them. Always use HTTPS to protect the token during transport.
JWT stands for JSON Web Token, a compact token format defined in RFC 7519 and often pronounced "jot". In JWT authentication, the server issues a signed token with claims such as the user ID and expiry after login, and the client sends it in the Authorization: Bearer header on every request. The server checks the signature and expiry instead of looking up a session, which makes JWTs stateless but hard to revoke early.
To create an HS256 JWT with this encoder, edit the JSON in the Payload editor, keep "alg": "HS256" in the header and type your secret in the Verify Signature box; the signed token updates in the Encoded panel as you type. RFC 7518 requires an HS256 key of at least 256 bits, so use a random secret of 32 or more characters, for example one generated with openssl rand -base64 32.
HS256 signs a JWT with HMAC-SHA256 and one shared secret, while RS256 signs with an RSA private key so anyone holding the matching public key can verify it. Use HS256 when the same service issues and verifies tokens, and RS256 or ES256 (which has shorter signatures) when other services must verify tokens without being able to create them. This tool supports HS, RS, PS and ES algorithms with SHA-256, SHA-384 and SHA-512.
A JWT shows "Invalid Signature" with the right secret when the secret or key is in a form the verifier cannot read. HS secrets are read as plain UTF-8 text, so decode a Base64 secret before entering it. RS, PS and ES tokens verify against a PEM public key (BEGIN PUBLIC KEY) or a PKCS#8 private key (BEGIN PRIVATE KEY), so convert BEGIN RSA PRIVATE KEY or BEGIN EC PRIVATE KEY files first with openssl pkcs8 -topk8 -nocrypt. An expired token with a correct signature is not reported as invalid: the badge reads "Signature Verified, Token Expired".
The exp, iat and nbf claims are registered JWT claims from RFC 7519 that control a token's lifetime: exp is the expiration time, iat is when the token was issued, and nbf is the time before which it must not be accepted. All three are NumericDate values in seconds, not milliseconds, since 1 January 1970 UTC, so 1767225600 means 1 January 2026 00:00 UTC. Setting exp from Date.now() without dividing by 1000 is a common bug.
Yes, a signed JWT can be decoded without the secret, because its header and payload are only Base64URL-encoded (RFC 4648), not encrypted; the secret is needed only to verify or create the signature. This decoder works entirely in your browser, so tokens are not sent to a server. Encrypted tokens (JWE, five dot-separated parts) cannot be read without the key, and this tool rejects them with "JWT must have 3 parts".
No registration, no tracking of your content, no server uploads. Don't just take our word for it:
Your files and text are processed entirely on your device. Nothing is ever sent to us.
Once loaded, this tool keeps working with your Wi-Fi turned off. Try it.
Open your browser's DevTools → Network tab. You'll see zero requests carrying your data.
More utilities for your next task.
A free open-and-type online notepad with no signup, plus named tabs, continuous autosave and syntax highlighting.
Notepad++ style tabbed editor that runs in the browser: syntax highlighting and autosave on macOS, Linux and ChromeOS, with nothing to install.
Free online notepad with multi-tab editing, autosave, and syntax highlighting. 100% client-side storage.