JWT parser

Parse and decode your JSON Web Token (jwt) and display its content.

Enable JavaScript to use the interactive tool. The guide below explains how it works.

jwt-parser: Professional JWT Analysis & Decoding Tool

jwt-parser is a specialized developer utility designed to decompose JSON Web Tokens (JWTs) into human-readable components. Unlike generic base64 decoders, it provides semantic context for standard JWT claims and cryptographic algorithms, enabling rapid debugging of authentication and authorization flows.

1. What the tool does

The tool performs a non-cryptographic decode of a JWT string. It strips the signature and parses the Base64Url-encoded Header and Payload.

Key capabilities include:

2. Why someone uses it

Developers and sysadmins use jwt-parser to eliminate the "black box" nature of tokens during the following scenarios:

3. Step-by-Step Instructions

Basic Decoding

  1. Obtain Token: Copy the JWT string from your application's HTTP headers (usually Authorization: Bearer <token>) or browser local storage.
  2. Input: Paste the raw JWT string into the parser input field.
  3. Analyze: View the parsed Header and Payload sections.
  4. Verify: Check the "Friendly Value" column for date-time conversions and algorithm descriptions.

Advanced Usage: Troubleshooting Token Lifecycle

  1. Check iat (Issued At): Determine when the token was created to calculate the token's age.
  2. Check exp (Expiration): Compare the converted date-time against the current system time to determine the exact second the token becomes invalid.
  3. Inspect Custom Claims: Look for non-standard claims (those not in the IANA list) to verify application-specific business logic (e.g., tenant_id or subscription_level).

4. Examples

Example: Standard OIDC ID Token

Input: eyJhbGciOiJSUzI1NiIs... Parsed Header:

Parsed Payload:

5. FAQs

Q: Does this tool verify the signature of the JWT? A: No. This is a parser, not a validator. It decodes the content. To verify a signature, you must provide the public key or secret to a cryptographic library (like jsonwebtoken or jose).

Q: Is it safe to paste production tokens here? A: The tool performs client-side decoding. However, as a general security practice, avoid pasting sensitive production tokens into any tool unless you are certain the data does not leave your controlled environment.

Q: Why does my date look wrong? A: JWT timestamps are in Unix Epoch seconds. The tool converts these to your local system time. If the token was issued in a different timezone, the local conversion is correct for your viewing context.

6. Common mistakes

7. Use cases (Professional/Industrial)

8. Related Resources

All tools

Guides and articles