India · Dubai · Delivering worldwide+91 86603 71224info@pyalm.com
Pyalm Labs logo
Free Tools

What Is a JWT? How to Read and Decode a JSON Web Token

A JWT is three Base64 chunks separated by dots — a header, a payload of claims, and a signature. Here's how to read one, what each part means, and why decoding is not the same as trusting.

Editorial disclosure: Pyalm publishes and maintains the products and free tools discussed on this site. Regulatory statements are linked to primary sources where applicable. No independent professional review is claimed unless a reviewer is explicitly named.

If you've worked with an API or a login system, you've seen a JWT — a long string like eyJhbGci... that shows up in an Authorization: Bearer header. JWT stands for JSON Web Token, and once you know its shape it's easy to read.

The three parts

A JWT is three Base64URL-encoded sections joined by dots:

header.payload.signature
  • Header — metadata: the token type and the signing algorithm (e.g. HS256, RS256).
  • Payload — the claims: the actual data, such as the user id (sub), who issued it (iss), and when it expires (exp). These are just JSON.
  • Signature — a cryptographic signature over the header and payload, created with a secret or private key.

Decoding is not the same as verifying

Here's the part that matters for security: the header and payload are only encoded, not encrypted. Anyone can Base64-decode them and read every claim — so never put secrets in a JWT payload.

The signature is what makes a JWT trustworthy. Decoding shows you the contents; verifying the signature against the issuer's key is what proves the token is authentic and unaltered. A server must always verify — reading the claims without checking the signature is how tokens get forged.

Reading expiry

The exp claim is a Unix timestamp (seconds since 1970). If it's in the past, the token is expired and should be rejected regardless of whether the signature is valid. iat (issued-at) and nbf (not-before) work the same way.

Inspect one safely

To read a token's header and payload, use the free JWT Decoder. It decodes entirely in your browser — the token never leaves your device, which matters because a real JWT is a live credential. Use it to debug auth flows, check what claims a token carries, and read its expiry.

JWT Decoder | Base64 Encoder / Decoder | Hash Generator | All free tools

Keep reading

More from Pyalm

Nov 27, 2026

Prescription Abbreviations: What OD, BD, TDS, SOS and 1-0-1 Mean

A plain-English list of prescription abbreviations: dose timing (OD, BD, TDS, QID), when to take (AC, PC, HS, SOS), routes, forms, the 1-0-1 dose grid and abbreviations to avoid.

Nov 27, 2026

Handwritten vs Typed Prescriptions: Which Is Safer?

Why legibility matters in prescribing, what changes when clinics move from handwritten to typed or electronic prescriptions, and how to keep a handwritten signature.

Nov 27, 2026

How to Write a Prescription in India: Format and Rules

A practical prescription format for doctors in India: required details, generic names in capitals, the 1-0-1 grid, Schedule H and controlled drugs, and keeping records.

Nov 27, 2026

Prescription Pad Design: Letterhead Template for Clinics

What a professional prescription letterhead should include, paper size, layout, bilingual Arabic and English pads, QR codes for verification and printing tips.

Nov 27, 2026

Prescription Errors: 10 Common Mistakes and How Clinics Prevent Them

The ten prescription mistakes that cause dispensing errors, from illegible names and decimal points to missing durations, and simple fixes for clinics.

Oct 16, 2026

How to Format and Validate JSON (and Fix the 6 Most Common Errors)

Why JSON breaks, how to read a validator's error message, and a quick routine for pretty-printing, minifying and fixing JSON from APIs, logs and config files.

Explore Pyalm Products & Tools

Practical software and technology services from India and Dubai — from websites and automation to WhatsApp, AI identity, and accounting products.

Services Free Tools Products