Azlaan Electric AC Solar Center — Solar, CCTV, AC & electrical work, Faisalabad Call: 0300-8987448

JWT Token Generator

Create HS256-signed JSON Web Tokens and decode any token, all in your browser. Your secret never leaves your device — signing and verification use the Web Crypto API locally.

Generate a token

Fill in the fields above and press Generate token.

Decode a token

The signature is checked against the secret key entered above, if provided.

The decoded header and payload will appear here.

How to use

  1. Edit the header and payload JSON, or use a preset payload.
  2. Type your secret key and press Generate token, then copy the result.
  3. To inspect any token, paste it in the decoder and press Decode token — the signature is verified against your secret.

Note

This tool signs with HMAC-SHA256 (HS256) only. Base64URL encoding follows the JWT standard, with padding removed. Web Crypto needs a secure context, so this page must be served over HTTPS or localhost. Never use tokens generated here for real production secrets — they are for testing and learning.