JWT Decoder & Inspector

Decode, inspect, and locally verify RFC 7519 JSON Web Tokens in your browser.

No uploadsNo sign-upInstant results
RFC 7519 Claims & DatesHS256 / HS384 / HS512 Verify100% Local • Zero Uploads
Decode JWT
Offline engine ready100% private in-browser workspace • Zero cloud uploads
100% Private • Zero Server File Uploads

Why Use Utiliome's Free JWT Decoder & Inspector?

Built from the ground up for strict privacy, instant execution, and zero friction. No subscriptions, paywalls, or account registrations required.

100% Client-Side Token Inspection

Production OAuth2 access tokens, OIDC ID tokens, and shared signing secrets are parsed exclusively in browser memory with zero network transmission.

Web Crypto HS256, HS384 & HS512 Verification

Recomputes and validates RFC 7515 JWS HMAC-SHA2 signatures locally via SubtleCrypto using raw UTF-8 or Base64URL-encoded secret keys.

Live exp, nbf & iat Timestamp Auditing

Translates RFC 7519 Unix epoch NumericDate fields into UTC and local ISO 8601 timestamps with real-time expiration and activation countdowns.

Strict RFC 7519 & Base64URL Compliance

Decodes unpadded Base64URL segments with full multi-byte UTF-8 support, strips Authorization Bearer prefixes, and flags unverified alg:none headers.

Utiliome vs Traditional Cloud Alternatives

Compare our local-first WebAssembly engine against legacy cloud tools.

Feature Utiliome (Local Browser) Legacy Cloud Converters
RFC 7519 Inspection Depth Decodes JOSE Header, Payload claims, and formats exp, iat & nbf timestamps Dumps raw JSON without translating Unix epoch claims into human dates
Live Expiration & Security Audit Flags expired tokens, not-yet-valid nbf skews, and insecure alg: "none" headers No expiration countdown or cryptographic algorithm vulnerability warnings
Optional Local HMAC Signature Check Verify HS256/HS384/HS512 signatures in-browser via Web Crypto SubtleCrypto Cannot verify signatures or transmits your signing secret to a backend
Zero Token Leakage Guarantee 100% client-side Base64URL decoding — production bearer tokens stay in RAM Analytics scripts and server logs can capture pasted OAuth/OIDC access tokens
How it works

How to Use JWT Decoder & Inspector in 3 Easy Steps

No software installation required. Everything runs directly inside your web browser.

1

Paste or Upload Your JSON Web Token

Paste a three-part dot-separated JWT string (with or without an Authorization Bearer prefix) or drop a local .jwt or .txt file into the inspector.

2

Inspect JOSE Header, Claims & Lifecycle

Review the formatted JSON header and payload alongside decoded UTC and local timestamps for exp, nbf, and iat claims to diagnose clock-skew or expiry issues.

3

Verify the HMAC Signature Locally

Enter your HS256, HS384, or HS512 shared secret key to validate token integrity directly in your browser using the Web Crypto API.

How to Decode and Verify a JSON Web Token Step by Step

Quick Answer: Split the compact JWT on its two period delimiters into Base64URL header, payload, and signature segments. Decode the first two segments as UTF-8 JSON to inspect claims and NumericDate timestamps, then recompute the HMAC digest over the raw ASCII header.payload string using your secret key to confirm authenticity.

An RFC 7519 JSON Web Token transmitted in JWS Compact Serialization consists of three unpadded Base64URL strings joined by periods: <header>.<payload>.<signature>. If you copy an HTTP header value such as Authorization: Bearer <token>, the decoder strips the leading Bearer scheme prefix before splitting on ..

Consider this standard HS256-signed compact token:

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

1. Decoded JOSE Protected Header

Base64URL-decoding the first segment (eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9) yields 27 UTF-8 bytes describing the cryptographic algorithm and media type:

{
  "alg": "HS256",
  "typ": "JWT"
}

2. Decoded Claims Payload & NumericDate Timestamps

Base64URL-decoding the second segment (eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ) reveals the JSON claims set:

{
  "sub": "1234567890",
  "name": "John Doe",
  "iat": 1516239022
}

Here iat (1516239022) resolves to 2018-01-18T01:30:22Z in UTC. When inspecting a production access token that includes full lifecycle bounds, the inspector evaluates each NumericDate claim against your current system clock:

{
  "iss": "https://auth.example.com",
  "sub": "usr_9481",
  "iat": 1735689600,
  "nbf": 1735689600,
  "exp": 1735693200
}
  • iat (1735689600): Issued at 2025-01-01T00:00:00Z.
  • nbf (1735689600): Not valid before 2025-01-01T00:00:00Z.
  • exp (1735693200): Expires at 2025-01-01T01:00:00Z (exact 3,600-second TTL).

3. Local HMAC-SHA256 Signature Verification

Decoding proves only that the first two segments are valid Base64URL-encoded JSON; it does not prove the claims are untampered. When you supply the shared secret your-256-bit-secret for the first example above, the verifier passes the exact ASCII signing input (eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ) and the 43-character Base64URL signature (SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c) to crypto.subtle.verify("HMAC", key, signatureBytes, signingInputBytes). Any single-bit edit to the decoded JSON payload changes the expected 32-byte MAC tag and triggers an immediate signature mismatch.

RFC 7519 Structure, Base64URL Encoding, and JWS Security Nuances

Quick Answer: An RFC 7519 JWT in JWS Compact Serialization consists of three unpadded Base64URL segments separated by periods. Decoding only reverses Base64URL encoding into readable UTF-8 JSON; integrity and authenticity depend strictly on verifying the cryptographic signature against an explicit algorithm allowlist.

Understanding how JOSE specifications (RFC 7515 JWS, RFC 7518 JWA, RFC 7519 JWT, and RFC 8725 JWT Best Current Practices) interact prevents subtle authentication bugs and security vulnerabilities.

Base64URL vs Standard Base64 (RFC 4648 Section 5)

Standard Base64 uses +, /, and = padding characters that collide with URL query delimiters, path segments, and cookie parsers. JWS mandates unpadded Base64URL encoding:

  • Index 62 maps to - (hyphen-minus) instead of +.
  • Index 63 maps to _ (underscore) instead of /.
  • Trailing = padding characters are omitted when serializing and restored during decoding via (4 - (segment.length % 4)) % 4.
  • Decoded bytes must be interpreted as UTF-8 via TextDecoder("utf-8"), not browser atob() Latin-1 strings, which corrupt multi-byte Unicode characters in names or localized claims. For standalone non-JWT payloads, use the Base64 Encoder & Decoder.

JWA HMAC-SHA2 Algorithm Specifications (RFC 7518 Section 3.2)

  • HS256 (HMAC with SHA-256): Produces a 256-bit (32-byte) authentication tag encoded as 43 Base64URL characters. Requires a secret key of at least 256 bits (32 bytes).
  • HS384 (HMAC with SHA-384): Produces a 384-bit (48-byte) authentication tag encoded as 64 Base64URL characters. Requires a secret key of at least 384 bits (48 bytes).
  • HS512 (HMAC with SHA-512): Produces a 512-bit (64-byte) authentication tag encoded as 86 Base64URL characters. Requires a secret key of at least 512 bits (64 bytes).

NumericDate Precision and Clock-Skew Leeway

RFC 7519 Section 2 defines NumericDate as a JSON numeric value representing seconds (not milliseconds) from 1970-01-01T00:00:00Z UTC, ignoring leap seconds. Compliant verifiers reject a token unless current_time < exp + leeway (token has not expired) and current_time >= nbf - leeway (token is active), where leeway is typically 30 to 60 seconds to absorb NTP drift across distributed hosts.

Critical Verification Vulnerabilities (RFC 8725)

  1. Unsecured alg: "none" Downgrade: Never trust the header's alg field dynamically. If a backend accepts {"alg":"none","typ":"JWT"} with an empty signature segment (header.payload.), an attacker can forge arbitrary admin claims without a key.
  2. Algorithm Confusion (RS256 to HS256): If a server expects an asymmetric RS256 token verified with a public RSA key, but its JWT library dispatches purely on the incoming alg header, an attacker can switch alg to HS256 and sign the token symmetrically using the publicly available RSA public key bytes as the HMAC secret.
  3. Unverified decode() Calls in Production: Calling helper methods such as jwt.decode(token) instead of jwt.verify(token, secret, { algorithms: ["HS256"] }) parses untrusted user input without checking the signature.

JWT Decoder vs JWT Generator: Which Tool Do You Need?

Quick Answer: Use JWT Decoder & Inspector to parse, audit timestamps, and verify the signature of an existing token captured from an API request or identity provider. Use JWT Token Generator when you need to author custom claims and cryptographically sign a brand-new HS256, HS384, or HS512 token for testing.

Both tools execute 100% locally in your browser using the Web Crypto API, but they serve opposite sides of the authentication debugging lifecycle. Use JWT Decoder & Inspector when inspecting an opaque token you already have; switch to JWT Token Generator when minting new signed test tokens from scratch.

Feature JWT Decoder & Inspector (This Tool) JWT Token Generator
Primary Workflow Parse, audit, and verify an existing JWT Construct claims and sign a new JWT
Input Format Compact token (<header>.<payload>.<signature>) + optional secret JOSE header options + JSON claims + HMAC secret key
Output Produced Formatted header/payload JSON, timestamp audit, signature validity Signed compact three-part Base64URL Bearer token
Web Crypto Operation SubtleCrypto.verify() (HMAC-SHA256/384/512) SubtleCrypto.sign() (HMAC-SHA256/384/512)
Timestamp Handling Converts exp, nbf, and iat into UTC/local dates & countdowns Populates Unix epoch NumericDate seconds for custom TTLs
Best Engineering Use Case Debugging 401 Unauthorized responses, OIDC tokens, and clock skew Generating local API auth fixtures, RBAC tests, and expired-token tests

If you are working with raw Base64 or Base64URL strings that are not three-part JOSE tokens (such as HTTP Basic Auth credentials or binary data blobs), use the Base64 Encoder & Decoder.

FAQ

JWT Decoder & Inspector FAQ and Technical Guide

Everything you need to know about using Utiliome's free online jwt decoder.

Is it safe to paste production JWTs into an online decoder?

Pasting active bearer tokens into server-backed websites risks leaking live session credentials into remote access logs, analytics payloads, or browser history sync. This decoder parses Base64URL segments and runs Web Crypto HMAC verification entirely inside your local browser tab with zero network requests. Even so, follow least-privilege hygiene: redact or rotate shared secrets if they were ever exposed outside trusted environments.

Why can anyone decode my JWT payload without knowing my secret key?

A standard three-part JWT is a JSON Web Signature (JWS, RFC 7515), not a JSON Web Encryption token (JWE, RFC 7516). In a JWS, the header and payload are merely Base64URL-encoded UTF-8 JSON for URL-safe transport. The secret key protects integrity and authenticity via the signature so nobody can modify claims undetected, but it provides zero confidentiality. Never store plaintext passwords, API secrets, or unencrypted sensitive PII inside JWS claims.

Why does signature verification fail even when my secret key looks correct?

Four issues cause almost all false-negative HMAC failures: (1) key encoding mismatch, where the issuer signed with raw binary bytes decoded from a Base64/Base64URL secret string while you verified with the literal UTF-8 characters (or vice versa); (2) accidental leading or trailing whitespace or newlines copied with the secret or token; (3) re-encoding pretty-printed JSON instead of verifying against the exact original Base64URL ASCII segments; or (4) attempting to verify an asymmetric RS256 or ES256 token using an HMAC shared secret instead of the issuer's public key.

Why does my JWT exp timestamp show a date tens of thousands of years in the future?

RFC 7519 Section 2 defines NumericDate in Unix epoch seconds (10 digits, such as 1767225600), whereas JavaScript Date.now() returns Unix epoch milliseconds (13 digits, such as 1767225600000). Passing milliseconds directly into exp or iat multiplies the epoch offset by 1000, pushing a 2026 timestamp past the year 58000 and preventing normal token expiration.

How can I tell whether a JWT is signed (JWS) or encrypted (JWE)?

Count the period delimiters and inspect the decoded JOSE header. A signed JWS has two periods separating three Base64URL parts (header, payload, signature) and features an alg parameter such as HS256, RS256, or ES256. An encrypted RFC 7516 JWE has four periods separating five Base64URL parts (header, encrypted key, initialization vector, ciphertext, authentication tag) and includes an enc content-encryption parameter such as A256GCM.