- Paste the JWT string into the input textarea.
- The tool automatically decodes the JWT and displays the header and payload as formatted JSON.
- Review the decoded header and payload to understand the token's contents.
JWT Decoder
The JWT Decoder is a tool that decodes JSON Web Tokens (JWTs) to reveal their header an...
How to Use This Tool
Learn More About JWT Decoder
What is a JWT?
JSON Web Token (JWT) is a compact, URL-safe means of representing claims to be transferred between two parties. The claims in a JWT are encoded as a JSON object that is used as the payload of a JSON Web Signature (JWS) structure or as the payload of a JSON Web Encryption (JWE) structure.
JWT Structure
A JWT consists of three parts separated by dots:
- Header: Contains metadata about the token, such as the type of token and the hashing algorithm used.
- Payload: Contains the claims, which are statements about an entity (usually the user) and additional data.
- Signature: Used to verify that the sender of the JWT is who it says it is and to ensure that the message wasn't changed along the way.
About
Examples
Processing Sample Input with JWT Decoder
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
{
"sub": "1234567890",
"name": "John Doe",
"iat": 1516239022
}Use Cases
- Inspecting the contents of a JWT to verify its claims and structure.
- Debugging authentication and authorization issues in web applications.
- Understanding the information encoded within a JWT.