JWT 载荷查看器
在本地解码 JWT 头部和载荷。不验证签名和真实性。请勿分享正在使用的令牌。
输入
提示:按 Ctrl + Enter 运行
已保存的设置
下方的详细帮助目前仅提供英文版。
关于此工具
A JSON Web Token (JWT) has three Base64URL-encoded parts separated by dots: a header, a payload of claims and a signature. When debugging authentication you often need to see what is inside: who the token is for, when it expires, which algorithm signed it. This inspector decodes the header and payload locally and shows them as formatted JSON.
It deliberately does not verify the signature, so it cannot tell you whether a token is genuine. Do not paste live production tokens into tools you do not trust; this one runs entirely in your browser.
使用方法
- Paste the full token (three parts separated by dots).
- Run the decoder.
- Read the header (algorithm and type) and payload (claims).
- Convert numeric dates such as exp and iat with the Unix timestamp converter.
计算原理
The token is split on dots; the first two parts are Base64URL-decoded and parsed as JSON. The signature part is ignored.
base64url(header) + base64url(payload); NO signature verification计算示例
Decoding a test token shows the header {"alg": "HS256", "typ": "JWT"} and the payload {"sub": "1234567890", "name": "Ada", "exp": 1792400000}. The exp value is a Unix timestamp in seconds, which you can convert to a date to see when the token expires.
示例输入和结果
{"sub":"demo"}局限性
- Signed JWTs (JWS) only; encrypted JWE tokens cannot be decoded.
- No signature or expiry validation.
- Up to 100,000 characters.
最后更新:
常见问题
Does it check whether the token is valid?
No. Verifying a signature requires the secret or public key, which should never be pasted into a website.
Is the payload encrypted?
No. Standard JWTs are only encoded, so anyone holding the token can read the claims. Do not put secrets in JWT payloads.
What are exp, iat and nbf?
Expiry, issued-at and not-before times, as Unix seconds.
故障排除
It reports an invalid token.
Remove the "Bearer " prefix and any quotes, and make sure all three parts are present.
The payload looks like random text.
The token may be encrypted (JWE, five parts) rather than signed.
The expiry seems wrong.
exp is in seconds, not milliseconds. Convert with the Unix timestamp converter in seconds mode.
隐私 & 免费使用
我的输入会被保存吗?
你的数据只保留在此标签页中。我们不会收到你的文件、粘贴的文本或计算数值。
这个工具免费吗?
是的。无需注册或付费。