Sổ Tay AI
🔏

JWT Builder & Sign (HS256, Web Crypto)

Build & sign JWT tokens with HMAC-SHA256 (HS256) via the Web Crypto API. Quick claim helpers (iat, exp). For test/dev API auth — runs 100% in your browser.

All tools
Common claims:

Tip: use exp: 1780502666 to make the token expire in 1h.

JWT Token
  

JWT Builder signs tokens with HMAC-SHA256 (HS256) via Web Crypto API. Runs 100% in your browser, secret is NOT sent anywhere. Use for test/dev only — production should sign server-side.

When you need to build a JWT

JWT structure

<header>.<payload>.<signature>

Header:    base64url(JSON header)         # alg, typ
Payload:   base64url(JSON claims)         # sub, exp, iat, custom...
Signature: base64url(HMAC-SHA256(
  header + "." + payload, secret
))

Standard claims (RFC 7519)

⚠️ Security warnings

Related

Related tools

See all tools →