Create signed JSON Web Tokens with HMAC-SHA256/384/512
{{ error }}
A JSON Web Token (JWT, RFC 7519) is a compact, signed container for JSON data. It has three Base64URL-encoded parts separated by dots: header (algorithm), payload (claims) and signature. JWTs are used for stateless API authentication (bearer tokens), OAuth/OpenID Connect and single sign-on.
HS256/384/512 are symmetric HMAC algorithms — sender and receiver share the same secret. Simple and fast, fitting for internal APIs. For public APIs, asymmetric RS256 or ES256 (public/private key) is preferred — both supported by Web Crypto API but with more complex key management. 'none' (unsigned) should never be used in production.