跳到正文

STEMSTUDIO

Look inside a JWT

Security · decoded on this device

Look inside a JWT

Paste a token to read its header, payload and expiry. The signature is not verified.

  • Free, no account
  • Nothing is sent

Help

⚠️ This tool does not verify signatures — that needs the issuer’s key, which is not here. Being readable does not make a token valid. ⚠️ Avoid pasting production tokens. This tool does not send them, but the value is a credential and it lingers in screen shares, recordings and history. A leading “Bearer ” is accepted.

Processing, communication and stored data

粘贴 JWT,即可看到格式化后的头部和载荷,签发时间和过期时间会换算成易读的日期。不验证签名,页面上也会明确说明。

常见问题

令牌会被发送到哪里吗?

不会。base64 解码和格式化全部在浏览器中完成。

能粘贴正式环境的令牌吗?

这个工具不会发送它,但仍然不明智。JWT 是凭证,会残留在屏幕共享、录屏和浏览器历史里。请用已过期或测试用的令牌。

能检查签名吗?

不能。那需要签发方的密钥,而这里没有保存密钥的机制。验证应该在接收令牌的服务器上进行。

能正常解码,但认证失败。

能读和有效是两回事。请怀疑过期、aud 或 iss 不一致,或者签名验证不通过。

内容是加密的吗?

不是。签名只证明令牌在传输中没被改动,并不隐藏任何东西。头部和载荷谁都能用 base64url 解码读出。如果值必须保密,请使用规范的加密版本(JWE),或者不放进令牌,在服务器端查询。

退出登录后令牌还能用。

JWT 按设计从签发到过期一直有效,没有内置的吊销方式。要在退出时作废,接收方需要维护吊销列表,或者用短有效期配合刷新令牌。这是规范的性质,不是实现的 bug。

能告诉我令牌过期了没有吗?

这里会把 exp 显示成易读的日期,和现在比一下就知道。不过真正的判断在接收方服务器,它的时钟可能和你的设备不同。临界情况不要只凭这个画面下结论。

Ratings from users

Ratings appear once there are 10.

Report a problem or suggest something

The tool name, this page’s path and your browser type are sent with it. Files are never sent. For a reply, use the email on the Contact page.