Developer

What Is a JWT? Header, Payload and Signature Explained

JSON Web Tokens (JWTs) are everywhere in modern authentication, from OAuth flows to API keys. A JSON Web Token has three parts. Learn what the header, payload and signature contain, how to read the claims, and why decoding is not verifying.

Awais 2 min readPublished
What Is a JWT? Header, Payload and Signature Explained

JSON Web Tokens (JWTs) are everywhere in modern authentication, from OAuth flows to API keys. When something goes wrong, you often just need to see what is inside the token. The ToolOrbit JWT Decoder splits a token into its parts and shows you the header and payload in readable JSON, entirely within your browser.

The three parts of a JWT

A JWT is three Base64URL-encoded sections joined by dots: the header, the payload, and the signature. The header describes the signing algorithm, the payload carries the claims, and the signature lets a server confirm the token has not been tampered with.

header.payload.signature

eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjMiLCJleHAiOjE3...}.SflKxw...

Reading the claims

  • sub: the subject, usually the user or account the token represents
  • exp: expiry as a Unix timestamp; the token is invalid after this moment
  • iat: issued-at time, useful for spotting clock skew or stale tokens
  • iss and aud: the issuer and intended audience, which a verifier should check
  • Custom claims: roles, scopes, tenant IDs, and other app-specific data

The decoder highlights the expiry so you can immediately tell whether a token is still valid, which is one of the most common debugging questions.

Warning: Decoding only reads the token; it does not verify the signature. Never trust a JWT's contents in your backend without verifying the signature with the correct key.

Using the JWT Decoder safely

Paste a token to see its header and payload instantly. Because decoding happens locally and the payload of a JWT is not encrypted, anyone holding the token can read it. Treat tokens like passwords: do not paste production tokens into untrusted online tools. ToolOrbit keeps everything in your browser, but the habit matters everywhere.

Best practices

Keep payloads small and avoid putting sensitive personal data in claims, since they are merely encoded, not hidden. Set short expiries, validate iss and aud on the server, and remember that the only thing standing between a forged token and your API is a proper signature check.

Decoding is not verifying

The three segments of a JWT are only Base64url-encoded JSON — anyone can decode them, and the signature check is what makes a token trustworthy. A decoder that shows you the payload is doing data inspection, not security validation. To actually accept a token you validate the signature against the issuer’s keys, check exp and nbf, and confirm the audience. Troubleshoot with the decoder; never build trust decisions on a decoded-but-unverified token.

Claims worth knowing
ClaimMeaningCheck it with
expExpiry time (seconds since epoch)Compare to now
iatIssued atSpot age
nbfNot valid beforeCompare to now
iss / audIssuer / audienceMatch against your config

Tools mentioned

More reading

View all guides
Free Developer Tools Online: 2026 Developer Toolkit & Guides
Developer

Free Developer Tools Online: 2026 Developer Toolkit & Guides

Explore 30+ free browser-based developer tools: JSON formatters, Base64 converters, cron generators, regex testers, SQL formatters, and hash generators.

3 min readPublished
CSS Border Radius: 15 Copy-Paste Examples
Developer

CSS Border Radius: 15 Copy-Paste Examples

15 modern CSS border radius examples: rounded cards, pills, circle avatars, asymmetrical organic blobs, and fancy 8-value border radius shapes.

3 min readPublished
Percent Encoding Reference Table (Every Character)
Developer

Percent Encoding Reference Table (Every Character)

Complete percent encoding ASCII reference table: quick lookup for spaces, slashes, ampersands, punctuation, and UTF-8 special characters in URLs.

3 min readPublished
URL Encoding Explained: %20 vs +, Reserved Characters & Rules
Developer

URL Encoding Explained: %20 vs +, Reserved Characters & Rules

Complete guide to percent encoding in URLs: learn when to use %20 vs +, how reserved characters like & and ? work, and how to avoid encoding bugs.

3 min readPublished
Cron Every Hour, Day & Midnight: All Daily Schedules
Developer

Cron Every Hour, Day & Midnight: All Daily Schedules

Master standard daily cron schedules: cron every hour, every day at midnight, twice a day, and custom hourly intervals with copy-paste examples.

4 min readPublished
Cron Expression Cheat Sheet — Copy-Paste Schedule Examples
Developer

Cron Expression Cheat Sheet — Copy-Paste Schedule Examples

Free cron expression cheat sheet with copy-paste examples for every 5 minutes, hourly, daily at midnight, weekdays only, and more.

5 min readPublished
Cron Every 10 Minutes — Syntax, Examples and Best Practices
Developer

Cron Every 10 Minutes — Syntax, Examples and Best Practices

Use the cron expression */10 * * * * to run jobs every 10 minutes, plus examples for common schedules and troubleshooting tips.

3 min readPublished
Why CSV Is Tricky to Parse: Delimiters, Quotes and Headers
Developer

Why CSV Is Tricky to Parse: Delimiters, Quotes and Headers

Why CSV files are harder to read correctly than they look, how to choose the right JSON shape, and the mistakes to avoid.

2 min readPublished