RankHush Tools
developer tools

JWT Decoder for Headers, Payloads and Claims

Inspect a JWT header, payload and signature text online for free, with no sign up. Paste a three-part token to view its JSON and recognized time claims in your browser. This JWT decoder helps explain token contents; it does not verify a signature or establish that the claims are trustworthy.

Made for a smoother workflow

Tool features

Everything you need to get the job done, without the extra steps.

  • Decode JWT header and payload segments
  • Validate token segment and JSON formatting
  • Inspect common fields such as algorithm, type, and expiry
  • Check the exp claim against your device clock
  • Copy the token, header, or payload
  • Process tokens locally in your browser

Simple from start to finish

How to use this tool

4 steps
  1. 01Paste a JSON Web Token into the input field.
  2. 02Review the decoded header, payload, and available token details.
  3. 03Copy the token, header, or payload if needed.
  4. 04Remember that decoding does not verify the token signature or trust its claims.

Practical guide to JWT Decoder

By RankHush Tools · Updated

What JWT decoding reveals

A common signed JSON Web Token has three dot-separated parts: a Base64URL header, a Base64URL payload and a signature. The header describes the token format and declared algorithm. The payload contains claims, such as a subject identifier or expiration time. Encoding those JSON objects does not hide their contents.

This JWT online decoder displays the header and payload as readable JSON and shows the signature segment as text. A token’s contents may contain personal data or credentials. Prefer a sample token when learning, and avoid sharing a live bearer token in screenshots, issue reports or copied examples.

JWT decode versus verify

JWT decode vs verify is an essential distinction. Decoding reads the representation; verification checks the cryptographic signature with a trusted key and an allowed algorithm. Authentication also requires application checks such as issuer, audience and permitted time range. A token that decodes correctly can still be forged or inappropriate for an application.

This page accepts no verification secret or public key and does not report a verified signature. A declared algorithm in the header is untrusted input, not an instruction a server should blindly follow. Verify tokens in the application that relies on them, using its configured keys and validation rules.

Inspect time claims and malformed input

The decoder can show human-readable dates for recognized numeric time claims. Such values use seconds since the Unix epoch. Displayed dates depend on your device’s clock and locale; they are an aid to inspection rather than an authoritative authorization decision. An expired token may still be decoded because decoding and accepting a token are different operations.

Input must contain three segments, with valid Base64URL and UTF-8 JSON objects for the header and payload. Extra copied punctuation, truncated segments and invalid characters cause errors. An encrypted five-part token or a token with appended selective-disclosure material is not the three-part format this interface expects.

A local JWT decoding workflow

Paste a test token, inspect the JSON and copy only the fields needed for debugging. Compare the expected claim names and data types with your application’s configuration. The page processes the token on your device, although the website still loads its ordinary resources and consent manager. Local processing does not replace careful handling of real credentials.

This is a browser tool, not an installable CLI, editor extension or language package. For a JWT decoder in Java, a mobile app or another development environment, use a maintained library that fits that environment and explicitly choose decoding or verification. Use the related JWT encoder only when you need an HS256 test token.

Use decoding to inspect a development token

Decoding helps answer questions such as which subject a test token names, whether its audience matches a development API and what expiry value it carries. Begin with the sample token when learning the layout. Observe that the encoded string contains three segments separated by periods. The first two segments become the header and payload objects, while the last segment is displayed as the signature value.

For a real debugging task, use a non-production token containing only the information needed to reproduce the issue. Copy the token itself rather than an entire HTTP request or a log entry surrounding it. A small, clearly identified example makes it easier to distinguish malformed input from an application configuration problem. The decoder presents the token's contents; it does not contact your identity provider to confirm them.

Read the header without trusting its claims

The header commonly identifies an algorithm through alg and may identify a token type or key through other fields. Those values are data supplied inside the token. Seeing HS256, RS256 or another label does not establish that the signature was created by a trusted service. The receiving application must choose allowed algorithms and trusted verification keys through its own configuration.

A key identifier can help a server select a key from a configured trusted set, but an arbitrary header should not become permission to fetch and trust any address it names. This page does not perform that selection or validation. Use the decoded header to compare what was issued with what your application expects, then inspect the application's actual verification result separately.

Understand common payload fields

The sub claim commonly identifies a subject, iss identifies an issuer and aud identifies the intended audience. Their exact accepted values belong to your application's protocol and configuration. A subject can be an internal opaque identifier rather than a visible username. An audience may name an API, and a token intended for one API may be unsuitable for another even if both systems use the same identity provider.

Other claims can represent roles, permissions or application-specific information. A decoded value such as "role":"admin" does not make the person who supplied the string an administrator. Check how the trusted issuer populates that field and how the server authorizes a request. A decoder is useful for inspection precisely because reading a field and accepting it are different operations.

Interpret dates as seconds rather than milliseconds

Registered time claims such as exp, nbf and iat use a NumericDate representation measured in seconds since the Unix epoch. Many JavaScript date APIs instead accept milliseconds, which creates a common factor-of-one-thousand mistake. The date display in this tool converts numeric values for readability. A string containing digits is still a string, and the page does not silently treat every textual date as a valid numeric claim.

An expiry value describes when a token should stop being accepted under the receiving system's rules. The not-before value describes an earlier boundary, while issued-at describes issuance timing. A readable date alone does not validate issuer, audience, signature or current authorization. The server may also apply a documented clock tolerance. Compare time-related failures with the server's clock and validation configuration instead of merely editing a token in the browser.

Distinguish malformed input from a rejected token

A structurally malformed token can fail to decode because it has the wrong number of segments, invalid Base64URL characters or data that is not a JSON object. By contrast, a structurally readable token can still be rejected by an application because its signature is invalid, it has expired or it belongs to another audience. These are different debugging paths and should produce different questions.

If decoding fails, first check for copied quotation marks, a truncated log line or the Authorization header's Bearer prefix. Keep only the token string. Check that its first two segments contain complete encoded JSON rather than a partial capture. If decoding succeeds but your API rejects it, inspect the API's verification logs and expected claims. This page does not override the receiving server's decision.

Know which token formats fit this interface

This decoder expects a three-segment compact token with JSON header and payload objects. An encrypted compact JWE normally has five segments and requires decryption rather than ordinary payload decoding. An opaque access token may not expose readable JSON at all. A string called an access token by an application is therefore not automatically compatible with this interface.

This version also does not fetch a JWKS document, accept a public key for signature verification or check whether a token has been revoked. It can display a token using different declared algorithms because inspecting the first two encoded segments does not require signing with that algorithm. Use a maintained verification library in the receiving application for the full protocol-specific validation workflow.

Compare two tokens during a controlled test

If one development token works and another fails, compare their issuer, audience, subject and relevant time claims. Check for a change in environment, such as a staging issuer used against a local API configuration. Also compare the algorithm and key identifier when the issuer has rotated keys. Use a written checklist so you do not miss a small but meaningful difference in a long payload.

Avoid sharing whole tokens in issue trackers just to show those differences. Copy a redacted header and the few non-sensitive claims needed to explain the failure. A bearer token may grant access to whoever obtains it until the receiving system stops accepting it. A screenshot of an encoded token can reveal it as effectively as a text copy, so review the entire screenshot before sending it.

Test the full lifecycle in your application

After inspecting a token, run the request through the intended development server with its normal validation enabled. Check success for an acceptable token and rejection for expired, wrong-audience and deliberately altered test tokens. These tests demonstrate the behavior of the application rather than merely the readability of a token. Do not disable signature verification as a workaround for a decoding or configuration problem.

The local decoder is useful for understanding the data being exchanged and preparing an accurate bug report. It does not create a login session, authenticate the person using the page or maintain a record of token validity. Clear inputs when finished on a shared device and retain only the redacted evidence needed for the development task.

Helpful answers

Frequently asked questions

What is JWT decode?

JWT decode reads the Base64URL header and payload of a compatible token and displays their JSON. It does not decrypt a secret payload or verify a signature. This decoder is free online and requires no sign up.

Do I need a secret to decode a JWT?

No. The header and payload of a standard signed three-part JWT are encoded, not encrypted. A secret or public key is needed for appropriate signature verification, which this tool does not perform.

What is the difference between JWT decode and verify?

Decoding reveals data. Verification checks the signature against a trusted key and an allowed algorithm. A relying application must also check relevant claims. Never treat the readable output of this decoder as proof that a user is authenticated.

Can this JWT decoder verify a signature with a secret?

No. It displays the signature segment but has no secret-key or public-key verification feature. Use the verification process in your application to establish authenticity.

Can I decode an expired JWT?

Yes, if the token’s structure is supported. Expiration affects whether an application should accept a token, not whether its encoded JSON can be read. Date displays use your device’s clock and locale.

Does it support encrypted or SD-JWT tokens?

This interface expects a three-part signed JWT. It does not decrypt five-part encrypted tokens or process appended selective-disclosure material. Use tooling that explicitly supports the token format you have.

Does this tool also encode a JWT?

Encoding is provided on the separate JWT encoder page, which supports HS256 signing with a secret. Decoding on this page does not create a new token or validate the original signature.

Keep exploring

Related tools

A few more handy tools that may fit your workflow.

Developer Tools

JWT Encoder

Create and sign HS256 JSON Web Tokens locally with custom headers and claims.

Open Tool
Developer Tools

Base64 Encoder & Decoder

Encode Unicode text to Base64 or decode Base64 into readable text instantly.

Open Tool
Developer Tools

JSON Formatter & Validator

Format, minify and validate JSON with readable output and syntax feedback.

Open Tool
Developer Tools

UUID Generator

Generate secure random UUID v4 identifiers in bulk and copy them in one click.

Open Tool

Found this useful?

Share this tool with someone who might find it handy.