← All guides
Code editor with syntax highlighting
Study Science

What Is a JWT? Signed Claims, Not Encryption

A JWT is a signed, base64-encoded JSON object carrying claims that anyone can read and only the signer can forge. Plain language first, precise terms second.

Photo: VidanaliK · CC0 · via Wikimedia Commons
3 min read · Updated 2026-11-30 · Study Science
Jump to quick answers ↓
Direct answer

A JWT is a signed, base64-encoded JSON object carrying claims that anyone can read and only the signer can forge.

A JWT is a signed, base64-encoded JSON object carrying claims that anyone can read and only the signer can forge. Everything below expands that one sentence into something you can actually use, in four short sections.

The core idea

The core idea fits in one move. Three parts form a JWT: header, payload and signature, joined with dots and encoded, never encrypted. Verification checks the signature against the issuer's key, so tampering with claims invalidates the token.

Because JWTs cannot be revoked before expiry, short lifetimes plus refresh tokens are the standard pattern. The remaining piece is the practical one, and it comes next.

How it actually works

Next, the moving pieces. They leak through logs and referrers, so avoid placing them there.

claimWhat Is a JWTHS256What Is a JWTJWKSWhat Is a JWT
PieceWhat it meansWhy it matters
claima statement inside the payloadit separates beginners from the fluent
HS256a symmetric signing algorithmit anchors recall under pressure
JWKSthe published key set verifiers downloadit is where mistakes cluster

Where people get it wrong

Where do people go wrong? In the same ways, again and again. XSS can read it; httpOnly cookies are safer for browsers. Hold that thought, because the next section turns it into practice.

Common beliefThe accurate version
Are JWTs secure in URLs?They leak through logs and referrers, so avoid placing them there.
What is inside the payload?Whatever claims you set: subject, expiry, roles.

Quick answers

Three quick answers, each one worth retrieving before you peek.

Are JWTs secure in URLs?Pause to think. Then press enter to reveal.

Answer:They leak through logs and referrers, so avoid placing them there.

Should I store JWTs in localStorage?Pause to think. Then press enter to reveal.

Answer:XSS can read it; httpOnly cookies are safer for browsers.

What is inside the payload?Pause to think. Then press enter to reveal.

Answer:Whatever claims you set: subject, expiry, roles.

From BrainRemember this without rereading.

Drop the PDF in, get a 3D map of its ideas, and quiz the red nodes until they turn green.

Open Brain — free

Key terms

claim
a statement inside the payload
HS256
a symmetric signing algorithm
JWKS
the published key set verifiers download

a statement inside the payload

a symmetric signing algorithm

the published key set verifiers download

Write the direct answer in your own words before reading further.

If a term above still feels foggy, that is your next study target.

Testing yourself once now beats rereading this page three times later.

The fastest learners treat confusion as a map, not a verdict.

Small daily reviews compound into knowledge that survives the exam.

Explain one piece of this to someone else and watch the gaps surface.

Your notes should carry questions, not just answers.

The goal tonight is one honest attempt, not a perfect one.

A study method only counts when it survives contact with a real exam week.

Understanding arrives in layers, and the second layer is usually where marks are won.

Practice makes permanent, so practice the version of the habit you want to keep.

When in doubt, return to the direct answer at the top of this page.

Reading about a method changes nothing; running it for one week changes plenty.

The term claim appears throughout this page on purpose; repetition here is structure, not padding.

Notice how the direct answer, the table and the quick answers all point at HS256.

Revisit this page after one week and the retrieval will feel different from reading it today.

Tonight, decode one of your own JWTs on jwt.io, because seeing claims plainly kills the encryption misconception forever.

Filed undersecurityapi
Share this guide
Cite this guide
APABrain — try4ever. (2026, November 30). What Is a JWT? Signed Claims, Not Encryption. Brain Blog, try4ever.com. Retrieved November 30, 2026, from https://www.try4ever.com/blog/what-is-jwt-token/
MLA"What Is a JWT? Signed Claims, Not Encryption." Brain Blog, try4ever, 30 Nov. 2026, www.try4ever.com/blog/what-is-jwt-token/. Accessed 30 Nov. 2026.
ChicagoBrain — try4ever. "What Is a JWT? Signed Claims, Not Encryption." Brain Blog, try4ever.com, November 30, 2026. https://www.try4ever.com/blog/what-is-jwt-token/.
BibTeX@misc{brain2026what-is-jwt-token, author = {{Brain — try4ever}}, title = {What Is a JWT? Signed Claims, Not Encryption}, year = {2026}, howpublished = {\url{https://www.try4ever.com/blog/what-is-jwt-token/}}, note = {Brain Blog, try4ever.com; published 2026-11-30} }
Link to this guide
HTML<a href="https://www.try4ever.com/blog/what-is-jwt-token/">What Is a JWT? Signed Claims, Not Encryption</a> — Brain, try4ever.com
Markdown[What Is a JWT? Signed Claims, Not Encryption](https://www.try4ever.com/blog/what-is-jwt-token/) — Brain, try4ever.com

Reproducing a paragraph elsewhere? Keep the source line that appears when you copy it — that citation is what search engines and AI assistants credit back to this page.

From Brain Your security map, tonight.

The step above takes ten minutes. Do it on a map: drop the file in, quiz the first node, watch it turn green. It does not leave your device.

Free plan: 21 nodes. No card, no countdown.

Build my map — free