TOOLZOIC guide

How to decode and inspect JSON Web Tokens (JWT) securely

Understand JWT structure, parse Base64URL claims, inspect expiration timestamps, and debug OAuth2 and OpenID Connect tokens in your browser.

By TOOLZOIC · Published · Last updated · 3 min read

Open JWT Decoder and Inspector →

🔒 100% In-Browser · No File Uploads · Free & Private

Anatomy of a JSON Web Token

A JSON Web Token (RFC 7519) is an open standard compact string used to transmit verifiable identity claims across web APIs and microservices. Every standard JWT contains three distinct sections separated by dot periods: the Header, the Payload, and the Signature.

The Header identifies the token type and cryptographic algorithm used to generate the signature (such as HMAC SHA-256 or RSA SHA-256). The Payload contains the claims—statements about an entity (typically the authenticated user) along with supplemental metadata. The Signature provides the mathematical proof that the message has not been modified since issuance.

Decoding workflow and claims inspection

Open JWT Decoder and paste your encoded token string into the input editor. Standard tokens follow the pattern: eyJhbG... . eyJzdWI... . signature.

Select your preferred view mode: full breakdown (displaying status, formatted header, payload, and signature), payload claims only, or header only.

Click Decode & inspect JWT. The tool parses each Base64URL-encoded JSON block and pretty-prints the decoded claims into readable, syntax-highlighted JSON.

Review the token status banner to confirm whether the token is currently active or expired according to the embedded Unix timestamp.

Standard registered claims explained

While application developers can define custom claims inside the payload, several reserved claims are standardized across authentication protocols. The 'sub' (subject) claim identifies the principal user or service account. The 'iss' (issuer) claim indicates which authorization authority minted the token, while 'aud' (audience) specifies the recipient API for which the token is intended.

Timing claims are critical for session security: 'iat' (issued at) records the creation timestamp, 'nbf' (not before) specifies the earliest time the token may be accepted, and 'exp' (expiration time) defines the exact Unix second after which the token must be rejected.

Diagnosing common authentication failures

When an API endpoint unexpectedly returns 401 Unauthorized or 403 Forbidden, decoding the client token is the fastest diagnostic step. Often, token expiration is the culprit: inspecting the 'exp' claim reveals whether the client's token refresh cycle failed.

Another frequent issue is missing or improperly scoped permissions. By viewing the decoded claims, engineers can verify whether expected role arrays, tenant identifiers, or OAuth2 scopes were correctly attached during token minting.

Security risks of online JWT decoders

Because JSON Web Tokens often represent active production sessions, bearer authorizations, and private user identifiers, pasting them into third-party web tools poses severe security hazards. Unvetted online decoders can log raw tokens to remote web servers, exposing live session credentials to data leaks and unauthorized API access.

TOOLZOIC parses, validates, and renders JSON Web Tokens entirely within your browser's local sandbox memory. Zero token segments, claims, or header values are ever transmitted across the network, ensuring complete confidentiality for your development and production credentials.

Put this workflow to use

Inputs stay in your browser. Open the workspace, check the actual result and download only when you are satisfied.

Use JWT Decoder and Inspector

No account or file upload needed. Operates in local device memory.

Advertising helps keep TOOLZOIC free.

Checking advertising availability…

Find your next tool

Quick picks

↑↓ to navigate Enter to open