Skip to content
MyDailyTool

JWT Generator

Sign JSON Web Tokens with HS256, HS384, or HS512. Set custom claims, expiry, and issuer — then copy the signed token for use in API testing or auth flows.

How to use the jwt generator

Paste a JSON payload, set a secret, pick an HMAC algorithm, and click Sign. The signed JWT appears below — three Base64URL parts separated by dots.

Formula & explanation

JWT = base64url(header) + '.' + base64url(payload) + '.' + HMAC-SHAxxx(header.payload, secret). HS256 = HMAC-SHA-256, HS384 = SHA-384, HS512 = SHA-512.

Examples

{"sub":"123"} signed with secret "my-secret" using HS256 → a 3-part token your auth library will accept.

Frequently asked questions

Can I sign with RS256 (RSA)?
Not yet — only HMAC family for now. RSA requires you to paste private keys, which is risky in a public web tool.
Is my secret stored?
No. Signing happens entirely in your browser via the Web Crypto API; nothing is uploaded.

Related developer tools tools