DEVELOPER PRECISION ENGINE

JWT Decoder

Decode JWT (JSON Web Token) payload and header without verification — confirmed via testing, decoding is accurate for standard ASCII claims (sub, exp, iss, roles, IDs). A previously-confirmed bug is now fixed: non-ASCII characters in a claim (an accented name, non-English text, an emoji) now decode to the real character instead of garbled mojibake, since the base64url payload is now properly UTF-8-decoded before being parsed as JSON.

0 characters

How to Use This Tool

1

Paste your JWT token into the input area.

Paste your JWT token into the input area.

2

View the decoded header and payload as formatted JSON

reliable for standard ASCII claims, and now also for non-ASCII characters (accented letters, non-English scripts, emoji), which display correctly since the payload is properly UTF-8-decoded before parsing.

Pro Tip

This tool decodes a JWT's contents but never verifies its signature — anyone can craft a token with a fake payload, so decoding alone tells you nothing about authenticity. Never trust claims from a decoded-but-unverified token in application logic; verification against the correct key must happen server-side. Non-ASCII claim values (accented names, non-English text, emoji) now decode correctly, so you can trust exact spelling in the decoded output without needing to cross-check against the source system.

About This Tool

When to Use

  • Checking a JWT's exp claim to see exactly when a session token is set to expire during an auth bug investigation.
  • Inspecting the custom claims (role, permissions, user ID) embedded in a token issued by an auth provider, including claims containing names or text with accented or non-English characters, which now decode correctly.
  • Debugging why an API rejects a token by comparing its iss (issuer) and aud (audience) claims against expected values

Key Details

A JWT decoder splits a JSON Web Token into its three dot-separated parts — header, payload, and signature — and decodes the base64url-encoded header and payload into readable JSON, without verifying t...

Worked example

Pasting a token like eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.signature decodes the header to {"alg":"HS256"} and the payload to {"sub":"1234567890"} — verified exactly correct, since every character here is plain ASCII. A token carrying a name claim written as "José García" now decodes to that exact correct text (previously this rendered as "José García" due to the since-fixed encoding bug). The signature segment is always shown as-is either way, since verifying it would require the issuer's secret key, which this client-side tool never has access to.

Interpreting your result

Clean, correctly-spelled claim values confirm the token decoded successfully — reliable for standard ASCII JWT content and now also for claims containing accented letters, non-Latin scripts, and emoji, which decode to their real characters rather than garbled mojibake. If you still see odd character sequences like "é" where an accented letter should be, that indicates the source data itself may already be double-encoded or corrupted upstream, not a decoding gap in this tool.

JWT Decoder FAQ

What is a JWT (JSON Web Token)?

A JWT is a compact, URL-safe token format used for authentication and information exchange. It consists of three parts: a header (token type and signing algorithm), a payload (claims/data), and a signature (for verification). The three parts are Base64-encoded and separated by dots.

Does this tool verify the JWT signature?

No. This tool only decodes the header and payload, which are Base64-encoded JSON. Anyone can decode a JWT — the security comes from verifying the signature, which requires the signing key. We do not perform signature verification.

What information can I get from a decoded JWT?

The header shows the algorithm (alg) and token type (typ). The payload shows standard claims like: iss (issuer), sub (subject), aud (audience), exp (expiration time), iat (issued at). Custom claims depend on the application that issued the token.

Does this tool correctly display claims containing non-English characters or emoji?

Yes. The decoder converts the base64url-encoded payload's raw bytes through a proper TextDecoder step before parsing it as JSON, so a claim containing an accented name, non-Latin script, or emoji — all valid, common real-world JWT content — decodes to the exact real character (e.g. "José García" decodes correctly, not as "José García"). This was previously a confirmed bug (the decoder used the browser's atob() output directly, which is a byte-for-byte Latin-1 string, not properly-decoded UTF-8) and has since been fixed.

Is it safe to share my JWT token?

No. Even though we don't verify signatures, a decoded JWT reveals information about the user and session. Never share JWT tokens, especially in bug reports or support tickets. The token can be used to access the issuing service until it expires.

What does 'expired' mean in the token?

The exp (expiration) claim in a JWT contains a Unix timestamp. If this timestamp is in the past, the token has expired and should no longer be accepted by the server. This tool checks the current time against the exp claim to show expiration status.

What's the difference between access tokens and refresh tokens?

Access tokens are short-lived (typically 15 minutes to 1 hour) and are sent with each API request to authenticate. Refresh tokens are long-lived (days to months) and are used only to obtain new access tokens when the current one expires. Never store a refresh token in a JWT payload — it should be kept in a secure HTTP-only cookie. JWT is typically the access token; the refresh token is usually an opaque string stored server-side.

Master Your Entire Toolkit

Access 500+ specialized calculators and tools designed for precision. No sign-up required, 100% free.

Built and reviewed by the Toolzip Team · Based on RFC 7519 — JSON Web Token