Create and decode JWTs online - sign tokens locally with HS256/384/512, or decode any token's header/payload and check expiry
Sign tokens locally with HS256/384/512, or decode any token's header and payload and verify the signature and expiry.
了解 JWT 结构、签名算法与常见问题。How JWTs work, signing algorithms, and answers to common questions.
JWT 由三段 Base64Url 编码组成:Header(算法与类型)、Payload(声明)、Signature(签名)。本工具支持 HS256/HS384/HS512 签名。
A JWT has three Base64Url-encoded parts: Header (algorithm and type), Payload (claims) and Signature. This tool signs with HS256/HS384/HS512.
常见声明:iss(签发者)、sub(主体)、aud(受众)、exp(过期时间)、iat(签发时间)、nbf(生效时间)、jti(JWT ID)。
Common claims: iss (issuer), sub (subject), aud (audience), exp (expiry), iat (issued at), nbf (not before), jti (JWT ID).
当前支持对称签名 HS256/384/512;RS256 需私钥,可在解析时手动比对签名。Currently HMAC HS256/384/512. RS256 requires a private key; you can verify its signature manually.
不会,签名全程在浏览器本地完成,密钥不离开本机。No - signing happens entirely in your browser; the secret never leaves your machine.
工具会读取 payload 中的 exp 字段并与当前时间比对,自动标注。The tool reads the exp claim and compares it with the current time automatically.