首页 Home/JWT 解码 / JWT Decoder

JWT 解码 · JWT Decoder

JWT(JSON Web Token)是一种常见的身份认证令牌,由 Header、Payload、Signature 三段组成,用英文句点分隔。本工具把前两段做 Base64URL 解码并以 Beautify 后的 JSON 展示,方便你快速查看令牌里携带的声明。

A JWT (JSON Web Token) is a common authentication token made of three dot-separated parts: Header, Payload and Signature. This tool Base64URL-decodes the first two parts and pretty-prints them as JSON so you can inspect the claims instantly.

JWT 解码JWT Decoder
INPUT0 chars
OUTPUT
结果会显示在这里
提示:所有处理都在你的浏览器本地完成。输入后自动更新结果

JWT 解码 / JWT Decoder

功能介绍(中文)

JWT(JSON Web Token)是一种常见的身份认证令牌,由 Header、Payload、Signature 三段组成,用英文句点分隔。本工具把前两段做 Base64URL 解码并以 Beautify 后的 JSON 展示,方便你快速查看令牌里携带的声明。

工具会自动识别 exp(过期时间)与 iat(签发时间)并转换成可读的本地时间,同时标注令牌是否已过期。如果你有 HMAC 密钥,还可以填入密钥对 HS256 签名做本地校验,确认令牌是否被篡改。

所有解码与校验都在浏览器本地完成,Token 和密钥都不会上传到服务器,适合调试接口、排查登录态问题。

Overview (English)

A JWT (JSON Web Token) is a common authentication token made of three dot-separated parts: Header, Payload and Signature. This tool Base64URL-decodes the first two parts and pretty-prints them as JSON so you can inspect the claims instantly.

It automatically converts exp (expiration) and iat (issued-at) into readable local time and marks whether a token has expired. With your HMAC secret you can also verify HS256 signatures locally to detect tampering.

Decoding and verification both run locally in your browser — tokens and secrets are never uploaded, making it ideal for debugging APIs and login sessions.

功能特点(中文)

  • 解码 Header 与 Payload,格式化输出 JSON
  • 自动展示 exp / iat 时间并标注是否过期
  • 支持填入 HMAC 密钥本地校验 HS256 签名
  • 一键填入示例 Token 快速体验
  • 全程本地处理,Token 与密钥不上传

Features (English)

  • Decode Header and Payload into formatted JSON
  • Show exp / iat as readable time with expiry status
  • Verify HS256 signatures locally with your HMAC secret
  • One-click example token to get started
  • Fully local — tokens and secrets never uploaded

常见问题 / FAQ

JWT 解码会上传我的 Token 吗?

不会。Header、Payload 的解码以及签名校验都在你的浏览器本地完成,Token 和密钥都不会发送到服务器。

Does JWT decoding upload my token?

No. Header and Payload decoding, as well as signature verification, all happen locally in your browser. Tokens and secrets are never sent to the server.

为什么校验签名只支持 HS256?

HS256 使用对称密钥,可在浏览器用 Web Crypto 本地校验。RS256 等非对称算法通常需要公钥和更完整的密钥管理,本工具暂不提供,以避免误用导致错误的安全判断。

Why is only HS256 signature verification supported?

HS256 uses a symmetric secret that can be verified locally with Web Crypto. Asymmetric algorithms like RS256 need proper public-key management, which this tool omits to avoid unsafe security decisions.

JWT 的 exp 字段是什么意思?

exp 是过期时间,以 Unix 秒级时间戳表示。当前时间超过 exp 后令牌即失效。工具会自动把它转换成可读时间并标注是否已过期。

What does the JWT exp claim mean?

exp is the expiration time expressed as a Unix timestamp in seconds. The token is invalid once the current time passes exp. The tool converts it to readable time and flags expiry automatically.

← 返回全部工具 / All tools

已复制到剪贴板