JWT Generator – Create Signed JWTs Online
Generate JSON Web Tokens (JWT) with custom header, payload, and secret. Sign with HS256, HS384, or HS512.
Tool
Enter your values and get results instantly.
How to Use
- 1Edit the header (algorithm & type)
- 2Edit the payload (claims)
- 3Enter your secret key
- 4Copy the generated JWT token
Benefits
Frequently Asked Questions
What is a JWT?
A JSON Web Token is a compact, URL-safe token used to securely transmit information between parties as a JSON object. It consists of a header, payload, and signature.
Which signing algorithms are supported?
HS256, HS384, and HS512 are supported. These are HMAC-based algorithms that use a shared secret key for signing.
Is the token generated in my browser?
Yes. Everything happens client-side using the Web Crypto API. Your secret and payload never leave your browser.
How do I verify the token?
Use our JWT Decoder tool to decode and verify the token, or verify it with the same secret on any JWT library.
Can I set an expiry (exp) claim?
Yes. Add an "exp" claim in the payload as a Unix timestamp. Many libraries will automatically reject expired tokens.