ProviaTools

JWT Decoder

Decode JSON Web Token headers and payloads.

Loading tool...

Private by design

Your inputs stay in the browser session for this tool run.

Client-side utilities

JWT Decoder runs as a browser utility: Decode JSON Web Token headers and payloads.

Same-page workflow

Useful for quick checks while coding — no paste into an unknown third-party API.

Free to use

Use JWT Decoder without creating an account or installing software.

Before you rely on the result

Local helper for one task. Read the output before you commit it.

Spot an error? Tell us.

About JWT Decoder

What this tool does

The JWT Decoder splits a JSON Web Token into its parts and shows the header and payload as formatted JSON. Paste a token and read the algorithm, token type, and claims without writing any code.

JWTs are used for sign-in sessions and API access, and the header and payload are only Base64URL-encoded, not encrypted. This tool makes them readable so you can check issuer, subject, expiry fields, and custom claims while debugging.

How to use it

  1. Paste the token. Put the full header.payload.signature string in the JWT token box.
  2. Read the header. The Header panel shows fields like alg and typ as indented JSON.
  3. Read the payload. The Payload panel lists the claims, such as sub, iat, and exp.
  4. Copy either part. Use the copy button on the panel you need.

How it works

The token is split on dots. The first two segments are converted from Base64URL (swapping - and _ back, adding padding), decoded as UTF-8, parsed as JSON, and then displayed with two-space indentation. At least two segments are required; if either segment cannot be decoded or is not JSON, an invalid-segment message is shown.

The signature is not verified, since doing that requires your secret or public key, and timestamps such as exp are shown as raw numbers rather than dates. A decoded token only shows what it claims, not that it is genuine. Treat real tokens as credentials and avoid pasting live production tokens into any tool you do not trust.

A worked example

Paste a token whose header decodes to {"alg":"HS256","typ":"JWT"} and whose payload decodes to {"sub":"1234567890","name":"John Doe","iat":1516239022}.

The two panels show those objects indented and ready to copy, and the iat value appears as the number 1516239022.

What you get

  • Header and payload side by side. Two separate formatted panels.
  • Base64URL aware. Handles missing padding and URL-safe characters.
  • Per-panel copy. Copy only the part you need.
  • Clear error messages. Tells you when a segment is invalid.

Who it helps

  • API developers. Debug authentication flows.
  • Security reviewers. Inspect claims and algorithms.
  • QA engineers. Check token contents against expectations.
  • Students. Learn how JWTs are structured.

JWT Decoder FAQs

A JSON Web Token (JWT) is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object. It consists of three parts separated by dots: a header, a payload, and a signature.