JWT Generator
Build and sign a JSON Web Token from a header, payload and secret.
Header
Payload
Sign Signature
Algorithm
HMAC Secret
JWT Generator & Builder
Need to craft a custom JSON Web Token for testing your API endpoints? Our JWT Generator lets you easily edit a JSON payload and header, choose an algorithm, and securely sign a new token using your own secret key—all right inside your browser.
Zero Data Tracking: Your secrets and payload data are never sent to a server. Token generation is performed locally using the Web Crypto API.
Core Features
- Custom Payload SupportEdit the JSON payload directly in our rich syntax-highlighted editor with auto-formatting.
- Multiple AlgorithmsSupports signing with symmetric keys (HS256, HS384, HS512) and asymmetric keys (RS256, ES256, etc.).
- Instant GenerationYour final JWT string is generated dynamically in real-time as you type your payload or secret.
Example
Input Header
{
"alg": "HS256",
"typ": "JWT"
}Input Payload
{
"role": "admin",
"exp": 1716239022
}Generated JWT
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyNyb2xlIjoiYWRtaW4iLCJleHAiOjE3MTYyMzkwMjJ9.H4O_cE76N5j-L5_r5mXw7e7-w2zH5775c74t_5k6bMw
Related Tools
Quick Tips
- Standard claims like
iss(Issuer) andsub(Subject) can help structure your auth logic. - Don't put passwords or private keys in the payload!

