JWT Decoder: Decode Header, Payload & Signature Online
Decode JSON Web Tokens (JWT) locally in your browser. Inspect headers, payload claims, and expiration timestamps with zero data uploads.
Privacy First: 100% Client-Side Processing
Processed in your browser. Files are never uploaded.
How to Use the JWT Decoder: Decode JSON Web Tokens Online (Client-Side)
- 1Paste your encoded JWT string into the input textarea.
- 2The tool immediately validates the 3-part dot-separated format.
- 3Inspect the decoded algorithm header and claims payload in formatted JSON.
- 4Check token validity: active vs expired, issued-at (iat) date, and expiration (exp) timestamp.
Formula & How It Works
RFC 7519 Base64URL Decoding
Decodes URL-safe Base64URL encoded strings into UTF-8 JSON objects and converts UNIX epoch timestamps. Source: IETF RFC 7519 / RFC 7515.
Worked Examples
Standard User Authentication Token
Input: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTYiLCJuYW1lIjoiQWxpY2UiLCJpYXQiOjE1MTYyMzkwMjJ9.signature
Explanation: Decodes user ID and creation timestamp.
Checking Token Expiration
Input: Payload containing { exp: 1731000000 }
Explanation: Compares current UNIX time with token exp claim.
Decoded Role-Based Claims
Input: Payload with { roles: ['admin', 'billing'] }
Explanation: Enables instant verification of user authorization claims.
Frequently Asked Questions
Is it safe to paste production JWTs into this decoder?▼
Yes! Unlike other online decoders that send your token to an external server, our decoder runs 100% locally in your browser's JavaScript. Nothing is sent over the network.
Does this tool verify the signature of the token?▼
This tool decodes and parses the header and payload. Verifying cryptographic signatures requires your private key or shared secret, which should never be entered into any web tool.
What is a JWT made of?▼
A JWT consists of three parts separated by dots (.): Header (algorithm & token type), Payload (user claims and data), and Signature (cryptographic integrity hash).
Why does the tool show my token is expired?▼
If the 'exp' claim timestamp in the payload is less than the current time (Date.now() / 1000), the token has passed its expiration window.
What is Base64URL encoding?▼
Base64URL is a URL-safe variation of Base64 that replaces '+' with '-' and '/' with '_', and strips trailing '=' padding characters so tokens can be passed safely in URLs and headers.
Can I edit the token payload and re-sign it here?▼
No. Generating new signatures requires your backend application's private signing key.
Quick Reference & Conversion Table
| Standard Claim | Full Name | Type | Description |
|---|---|---|---|
| iss | Issuer | String | Identifies the principal that issued the JWT |
| sub | Subject | String | Identifies the subject of the JWT (e.g. user ID) |
| aud | Audience | String / Array | Identifies the recipients that the JWT is intended for |
| exp | Expiration Time | Number (Epoch) | Identifies expiration time on or after which token is invalid |
| nbf | Not Before | Number (Epoch) | Identifies the time before which the token must not be accepted |
| iat | Issued At | Number (Epoch) | Identifies the time at which the JWT was issued |
⚠️ Common Pitfalls to Avoid
- •Pasting tokens with trailing spaces, newlines, or missing third signature segments.
- •Confusing token decoding with cryptographic verification (decoding reads claims; signature verification requires the secret key).
- •Using online cloud decoders that log confidential production tokens on remote servers.
💡 Practical Real-World Uses
- •Debugging OAuth 2.0 and OpenID Connect (OIDC) authentication flows in web applications.
- •Verifying user roles, permissions, and scopes inside API authorization headers.
- •Checking exact expiration dates of session tokens to diagnose unexpected user logouts.
Related Online Tools
Explore complementary calculators and converters with instant client-side execution
JSON Formatter & Validator (Beautify, Minify & Repair)
Format, beautify, validate, and minify JSON strings with instant syntax error detection and customizable indentation.
SQL Formatter: Beautify & Format SQL Queries Online
Beautify, indent, and format messy SQL queries with uppercase keyword normalization and clean indentation.
Case Converter – UPPER, lower, camelCase, Title
Transform text casing into UPPER, lower, Title Case, Sentence case, camelCase, snake_case, and kebab-case instantly.
Sentence Counter – Words, Sentences & Readability
Count sentences, words, paragraphs, and characters with reading time and readability metrics.
Tiny Text Generator – Small Caps, Subscript, Bubbles
Generate stylish tiny Unicode text including small caps, superscript, subscript, and bubble letters for social media.
Number to Words Converter – Spell Numbers in English
Spell out numbers in plain English words, legal bank check formats, and ordinal rankings.
Explore Other Tool Categories
Browse our full collection of 50 free web utilities
Unit Converters
Exact metric & imperial conversions for weight, length, temperature & volume.
Math & Education
Percentage changes, fractions, square roots, geometry & statistics.
Date & Time
Calendar arithmetic, business day intervals, stopwatch & multi-counter.
Home & Construction
Paint coverage, pool volume, topsoil, roof pitch, square footage & materials.