HMAC: Use the shared secret key. RSA/ECDSA: Use the public key in PEM format (include the -----BEGIN PUBLIC KEY----- header).
Decoded Content
Header
Payload
Note: RSA and ECDSA encoding requires private keys and is not supported in the browser environment for security reasons. Use the HMAC algorithms for encoding, or use a server-side library for RSA/ECDSA.
Encoded JWT
π Your data never leaves this page. All JWT operations happen locally in your browser using vanilla JavaScript.