Build and sign JWT tokens with custom claims, expiration, and HMAC algorithms (HS256/384/512). Set registered claims via form, add custom JSON payload — all signed locally in your browser.
About JWT Token Builder
The JWT Token Builder creates JSON Web Tokens (JWT) with custom headers, registered claims, and custom payload data. It supports HMAC-based signing (HS256, HS384, HS512) using the Web Crypto API, ensuring cryptographically correct signatures. Unlike online tools that send your secret to a server, this builder runs entirely in your browser — your secret key never leaves your device.
How to Use It
- Select an algorithm — Choose HS256 (most common), HS384, HS512, or "none" for unsigned tokens.
- Enter a secret key — This is used to sign the token. Use the same key in your backend to verify tokens.
- Fill in claims — Use the quick action buttons to set iat (issued at) to now, exp (expiration) to +1 hour, or generate a random jti (JWT ID). Fill in other registered claims as needed.
- Add custom claims — Enter additional claims as a JSON object (e.g., role, permissions, user data).
- Generate — Click the button or press Ctrl+Enter. Copy the token and use it in Postman, cURL, or your frontend code.
Security Note
All token generation happens in your browser using the Web Crypto API. Your secret key is never transmitted to any server. However, never use tokens generated by any online tool in production with a secret key you plan to use in your real system. This tool is designed for development and testing — generate production tokens server-side with proper key management.