PlayWithJSON

JWT Parser & Decoder

Header, Payload & Expiry

Decode JWT header, payload and signature. View claims, timestamps and expiration details.

100% Client-side Your data never leaves your browser Fast & Secure

Enter JWT Token

Your data stays in your browser

All JWT decoding is done locally in your browser. We do not send your token to any server.

JWT Parser & Decoder — Decode JSON Web Tokens Online

A JSON Web Token (JWT) is a compact, URL-safe token made of three Base64URL parts: header, payload and signature. This tool decodes each part instantly so you can inspect claims, algorithms and expiry details.

Decoding happens entirely in your browser. Your token is never uploaded, logged or sent to any server. Note that decoding is not verification — the signature is not validated.

{}

Why Use PlayWithJSON?

  • Decode header, payload and signature instantly
  • Human-readable iat, exp and nbf timestamps in UTC
  • Clear valid / expired / not-yet-active token status
  • One-click copy for each section
  • 100% client-side — your token never leaves the browser

Key Capabilities of Our JWT Decoder

Pretty-printed Header & Payload

View decoded JSON with readable indentation and labeled standard claims.

Expiry Detection

Instantly see if the token is valid, expired, or not yet active.

Timestamp Conversion

Converts Unix iat, exp and nbf claims to UTC dates with relative time.

One-Click Copy

Copy the header, payload or signature to your clipboard.

How to Decode a JWT Online

1

Paste Your Token

Paste the JWT (header.payload.signature) into the input box or click Load Example.

2

Inspect Claims

Review the decoded header, payload and claims table.

3

Check Token Status

See whether the token is valid, expired or not yet active.

JWT Decoding Example

Encoded Header
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9
Decoded Header
1{
2 "alg": "HS256",
3 "typ": "JWT"
4}

Valid vs Invalid JWT Structure

Invalid: Missing Segment
1eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjM0NSJ9
Invalid JWT format: expected 3 dot-separated parts, found 2.
Valid: Three Parts
1eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjM0NSJ9.signature

Core Capabilities

Base64URL decoding with UTF-8 support
Header, payload and signature panels
Standard claims labels (iss, sub, aud, exp, nbf, iat, jti)
UTC date conversion for time claims
Expired / not-yet-active detection
Accepts tokens prefixed with "Bearer"
Clear error messages for malformed tokens
100% private in-browser decoding
Frequently Asked Questions

Frequently Asked Questions about JWT Decoder

A JSON Web Token (RFC 7519) is a compact token used to transmit claims between parties. It has three Base64URL-encoded parts separated by dots: header, payload and signature.

More JSON Developer Tools

View All Tools

JSON Formatter

Format, validate and inspect JSON data

JSON5 Formatter

Format and validate JSON5 with comments

JSON ↔ JSON5

Convert between JSON and modern JSON5

JSON to TypeScript

Generate TypeScript interfaces from JSON

JSON to Zod

Generate Zod schemas from JSON

Text to JSON

Convert text and schemas into structured JSON

JSON Sorter Online

Sort JSON keys alphabetically and order arrays

JWT Decoder Online

Decode JWT header, payload and expiration

JSON Stringify Online

Escape quotes and stringify or unescape JSON

Mock JSON Generator

Generate realistic mock data for APIs and testing

JSON to CSV

Export structured JSON arrays into CSV spreadsheets

JSONPath Tester

Query and filter JSON data with path expressions

JSON Schema Generator

Generate JSON Schema from sample JSON

JSON Diff & Compare

Compare two JSON objects and find differences

JSON ↔ YAML

Convert JSON/JSON5 to YAML and back with comments

JSON ↔ XML

Convert JSON to XML and XML to JSON with attributes

YAML to CSV

Convert YAML lists and objects into spreadsheets

CSV to JSON / JSON5

Convert CSV/TSV to JSON or JSON5 with type parsing

JSON to BigQuery

Generate BigQuery Schema JSON and CREATE TABLE DDL

JSON to GraphQL

Generate GraphQL SDL types, queries, and inputs

JSON to MySQL

Generate MySQL CREATE TABLE DDL and INSERT queries

JSON to PostgreSQL

Generate PostgreSQL CREATE TABLE DDL, JSONB and INSERTs

JSON Flattener

Flatten nested JSON to dot notation or unflatten back

JSON Tree Visualizer

Interactive SVG mindmap graph and collapsible node tree

JSON Minifier Online

Compact and compress JSON by stripping whitespace

JSON Token Counter

Calculate LLM tokens (GPT-4o, Claude) and API costs

Broken JSON Repair

Automatically heal broken and truncated AI/LLM JSON