Header · Payload · Signature

Header


		

Payload


		

    How to use it

    1. Paste a token. The header and payload appear at once.
    2. Add the secret if you want the signature checked.
    3. Edit the payload JSON and choose Sign payload to build a new HS256 token.

    Related tools

    Compare a string with the hash tool, or make an identifier with the UUID generator.

    Questions

    Does this site see my secret?

    No. Signing and checking run in your browser. The secret is not sent to this site, and it is gone when you leave the page.

    Which tokens can I sign?

    This page signs HS256, the HMAC SHA-256 algorithm. It can still show the header and payload of a token that uses another algorithm, and it will not call that signature valid.

    What does an expired token mean?

    If the payload has an exp time in the past, the token is expired. Expiry is a claim inside the payload. The signature can still match the secret.

    What are the three parts?

    Header, payload, and signature, separated by dots. The first two are base64url JSON. The third is the signature.