← 密碼和安全

密碼/安全工具

JWT解碼器

在本地檢查 JWT 標頭、有效負載和時間宣告,無需簽名驗證。

在您的瀏覽器中執行

解碼資料未經驗證。此工具不會驗證簽名、發行者或受眾,且不得用於驗證令牌。

由三個部分組成的 JWT,最多 64 KiB。不支援加密的五部分 JWE 令牌。

標頭和負載在本地解碼為 JSON。此工具不會將任何令牌傳送到伺服器或儲存任何令牌。完成後清除輸入,尤其是在共享裝置上。

English guide · Ghid în română

Practical guide

Inspect the header and payload of a JSON Web Token while debugging a system you control. Decoding reveals claims but does not verify who issued them or whether the signature is valid.

Steps that matter

  1. Prefer a test token with no real personal data or active production permissions.
  2. Paste the complete token and inspect its header, payload and interpreted time claims.
  3. Perform signature, issuer, audience and policy validation in the receiving application before trusting any claim.

Worked example

An exp claim is a timestamp in seconds since the Unix epoch. A decoded token with a future exp can still have a forged signature, the wrong audience or revoked permissions.

Check before using the result

  • The decoder does not decrypt encrypted tokens or validate a token for authentication.
  • Treat tokens as credentials even if their payload looks harmless. Do not include them in bug-report emails or screenshots.