Skip to content
FindUtils
Trending ToolsGuidesBlogRequest a Tool
Sponsor
New

331 tools now run in your code and in your AI client. 323 over REST, 323 over MCP, no API key, no signup.

REST API MCP server
  1. Home
  2. Cheatsheets
  3. Web Development
  4. JWT Reference
Web Development

JWT Reference

Signed JWT claims, algorithms, verification checks, and the distinction between JWS and JWE.

37 entries7 sectionsCopy an entry or print the full reference.
Three colored token segments connect to a capsule with a signature seal.

37 entries · Use the copy icon.

All cheatsheets
On this pageEntries
Shape7Registered claims7Header flags5Verify rules6Inspect locally5Common mistakes5Sources2

1Shape

7 entries
Shape: syntax and descriptions
SyntaxDescription
header.payload.signature
Signed compact JWS form; encrypted JWTs use JWE and a different structure
typ
Usually JWT
alg
Signature algorithm in the header
HS256
HMAC SHA-256 with a shared secret
RS256
RSASSA-PKCS1-v1_5 SHA-256
ES256
ECDSA P-256 SHA-256
none
Unsigned; reject this on verify

2Registered claims

7 entries
Registered claims: syntax and descriptions
SyntaxDescription
iss
Issuer
sub
Subject
aud
Audience
exp
Expiration time (unix seconds)
nbf
Not before (unix seconds)
iat
Issued at (unix seconds)
jti
JWT ID

3Header flags

5 entries
Header flags: syntax and descriptions
SyntaxDescription
kid
Key id for key lookup
jku
JWK set URL; treat as untrusted input
x5u
X.509 cert URL; treat as untrusted input
x5c
X.509 cert chain in the header
cty
Content type for nested JWTs

4Verify rules

6 entries
Verify rules: syntax and descriptions
SyntaxDescription
Check alg allow-list
Do not trust the header alg blindly
Reject alg=none
Unsigned tokens must fail verify
Check exp
Reject expired tokens
Check nbf
Reject tokens used too early
Check aud and iss
Must match the expected values
Decode is not verify
Reading claims does not prove the signature

5Inspect locally

5 entries
Inspect locally: syntax and descriptions
SyntaxDescription
FindUtils JWT Decoder
Decode header and payload in the browser
Do not paste production secrets
Treat tokens as credentials
Look at alg first
HS256 and RS256 use different key types; none has no signature key
Check exp as unix time
Compare to the current unix timestamp
PEM Decoder for x5c
Inspect a pasted cert, not a live host

6Common mistakes

5 entries
Common mistakes: syntax and descriptions
SyntaxDescription
HS256 with a public key
Attackers can forge if verify accepts HMAC
alg confusion
Lock the expected algorithm in code
Long-lived exp
Stolen tokens stay valid too long
Put secrets in payload
A signed JWS payload is encoded, not encrypted; keep secrets out
Skip aud
A token for another app may still verify

7Sources

2 entries
Sources: syntax and descriptions
SyntaxDescription
https://www.rfc-editor.org/rfc/rfc7519.html
RFC 7519: JWT claims, signed JWS tokens, encrypted JWE tokens, and validation.
https://www.rfc-editor.org/rfc/rfc7518.html
RFC 7518: HMAC, RSA signatures, algorithm identifiers, and unsecured JWS.

Related Cheatsheets

Web DevelopmentNew

React Hooks

Blue orbital tracks connect state nodes through a coral hook.

useState, useEffect, useRef, useMemo, React 19 hooks, and custom hook patterns

53 entriesOpen reference
Web Development

CSS Flexbox

Different-sized blocks align along one axis with spacing arrows.

Flex container and item properties, alignment, ordering, and common layout patterns

36 entriesOpen reference
Web Development

CSS Grid

Blue and violet tiles form rows and columns with one tile spanning two columns.

Grid container and item properties, template areas, auto-placement, and responsive grids

36 entriesOpen reference
FindUtils

Tools for the task. Guides for the next step.

Manage data

Tools

  • All tools
  • New tools
  • Password Generator
  • QR Code Generator
  • JSON Formatter
  • PDF Merger
  • Image Compressor
  • Base64 Encoder

Explore

  • Guides
  • Cheatsheets
  • Blog
  • Color Converter
  • Gradient Generator
  • Box Shadow Generator
  • UUID Generator

Developers

  • Tool API
  • API Docs
  • MCP Server
  • Libraries
  • OpenAPI Spec
  • llms.txt

FindUtils

  • About
  • Contact
  • Request a tool
  • Article writing service
  • Sponsor FindUtils
  • Domains for sale
  • Public traffic (24 hours)
  • Public traffic (30 days)

© 2026 FindUtils. All rights reserved.

Privacy policyTerms of serviceSitemap