JWT Signer Demo
Create signed test JWTs with HS256, HS384 or HS512, custom claims and an expiry time.
Create a signed JSON Web Token for testing. Write the payload as JSON, choose HS256, HS384 or HS512, enter a secret, optionally add an expiry in minutes and an iat (issued at) claim, and copy the signed token. Use it to test an API, a middleware or a login flow during development. Signing uses your browser's Web Crypto API and nothing is sent anywhere. Never use a production secret on a website, including this one.
Blank or 0 for no exp claim
For HS256, use a random secret of at least 32 bytes.
Common use cases
- Make tokens with specific claims to test authorisation rules
- Create an expired token to test error handling
- Learn how JWT signing works
How to use
- Edit the payload JSON.
- Choose the algorithm and enter a test secret.
- Set the expiry and iat options.
- Copy the signed token.
FAQ
Can I sign with RS256?
Not here. This demo signs HMAC tokens with a shared secret. RS256 needs a private key, which should stay on your server.
How do I check the token?
Paste it into the JWT decoder and enter the same secret to verify the signature.
Related tools
- JWT DecoderDecode JWT headers and claims, check expiry, and verify HS256, HS384 or HS512 signatures in your browser.
- Bcrypt GeneratorGenerate bcrypt password hashes with configurable rounds.
- Scrypt GeneratorGenerate scrypt key derivation hashes.
- NanoID GeneratorGenerate compact, URL-friendly unique IDs.
- OTP GeneratorGenerate one-time passwords for authentication.
- HEX to Base64Convert hexadecimal strings to Base64 encoding.