JWT Encoder & Decoder

A fully bidirectional client-side tool to encode, decode, and verify JSON Web Tokens (JWT) instantly. Paste your encoded token on the left to inspect its header, payload claims, and signature, or edit the JSON values and select a signing algorithm on the right to build and encode a new token in real time.

Encoded (Token / Output)

Header: Metadata
Payload: Claims
Signature

What is a JSON Web Token (JWT)?

JSON Web Token (JWT) is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object. This information can be verified and trusted because it is digitally signed. JWTs can be signed using a secret (with the HMAC algorithm) or a public/private key pair using RSA or ECDSA.

Bidirectional Encoding & Decoding

This tool operates as a fully bidirectional utility, letting you perform both actions seamlessly:

Structure of a JWT

In its compact form, JSON Web Tokens consist of three parts separated by dots (.), which are:

Common Registered Claims

Standard registered claims provide useful metadata about the lifetime and scope of the token:

  1. iss (Issuer): The entity that issued the token.
  2. sub (Subject): The unique identifier of the subject (user ID, client ID).
  3. aud (Audience): The intended recipient of the token.
  4. exp (Expiration Time): The timestamp identifying when the token expires.
  5. iat (Issued At): The timestamp identifying when the token was created.