Free to use, no account

JWT encoder

Build a compact HS256 token from a JSON claims object or verify its signature in this browser. Signature verification alone does not identify a trusted issuer or authenticate a user.

HS256 needs at least 32 UTF-8 bytes of secret key material. Use a randomly generated key and never paste a production signing secret here.

HS256 key-size requirement (RFC 7518)

Adds exp as a NumericDate. Leave blank to keep the payload unchanged; a payload that already has exp cannot use this field.

Local HS256 utility only—not an identity provider or authentication decision. A valid signature does not prove who issued a token or whether its claims should be trusted. Validate issuer, audience, key management, time and application policy separately. JSON is limited to 64 KiB and tokens to 128 KiB.

How does this JWT encoder work?

It signs the base64url-encoded header and JSON payload with HMAC-SHA-256 (HS256), or verifies that signature locally. You can optionally add an expiration claim in seconds. Only HS256 is supported.

Frequently asked questions

How does this JWT encoder work?

It signs the base64url-encoded header and JSON payload with HMAC-SHA-256 (HS256), or verifies that signature locally. You can optionally add an expiration claim in seconds. Only HS256 is supported.

Are my claims, token or secret uploaded?

No. The signing and verification use browser Web Crypto. This page does not send or save the JSON, token or secret. Avoid entering production secrets into shared or compromised devices.

Does a valid JWT signature mean a user is authenticated?

No. It only shows that the token signature matches the secret entered here. Your application must independently trust the issuer, audience, key, time limits and authorization rules.

Which JWT algorithms are supported?

This tool creates and checks HS256 tokens with an HMAC secret. It does not create or verify RSA, ECDSA, EdDSA or other algorithms.

Can I recover a lost signing secret?

No. The tool does not store or recover secrets. Keep production keys in an appropriate secure key-management system, not in this page.