解碼 JSON Web Token 以查看其標頭和承載內容,並以可讀形式顯示過期和簽發時間。完全在你的瀏覽器中執行;權杖永不上傳。
如何使用 JWT 解碼器
貼上一個形如 header.payload.signature 的 JWT。
以格式化的 JSON 形式讀取解碼後的標頭和承載內容。
查看過期和簽發時間,以及令牌是否已過期。
A JSON Web Token has three parts separated by dots: a Base64URL-encoded header, a Base64URL-encoded payload, and a signature. This decoder splits and decodes the first two parts instantly in your browser, so you can read what a token actually contains.
The most common use is inspecting a token an API returned: who issued it (iss), when it expires (exp), what permissions it carries (scope or roles), and whether it has already expired.
The tool takes the header and payload segments and decodes their Base64URL contents back into readable JSON. Nothing is sent anywhere: the split and decode happen locally the moment you paste a token.
The expiry is shown in readable local time, not a raw Unix timestamp, so you can see at a glance whether the token is still valid. The same applies to other time claims like iat and nbf, which become dates you can actually interpret.
This tool decodes and displays, it does not verify the signature against a secret key. Anyone can read a JWT payload without a key, because only the signature is protected, not the contents.
For signature verification you need the signing secret or public key, which should never be entered into a browser-based tool. Do not paste secrets here.
The token never leaves your device. All decoding runs in your browser, so nothing you paste is uploaded or stored.
常見問題
不會。它解碼並顯示標頭和承載內容。驗證簽名需要簽名金鑰或公鑰,而你不應將其貼到任何網頁工具中。
解碼讀取 Base64url 編碼、未加密的標頭和承載內容。驗證使用金鑰重新計算簽名,以證明權杖真實且未被竄改。
解碼完全在你的瀏覽器中進行,因此權杖不會上傳。不過,仍應將使用中的權杖視為機密,避免在共用電腦上貼上。
它們是標準聲明:iat 是簽發時間,nbf 是生效前時間,exp 是過期時間。解碼器會將這些 Unix 時間戳記轉換為可讀的本地時間。
可以。過期不會改變權杖的解碼方式,因此你可以查看已過期權杖的聲明,並準確看到它何時失效。
JWT 是簽名的,而非加密的。承載內容僅經 Base64url 編碼,因此任何人都能讀取。切勿在 JWT 承載內容中放入機密。
嵌入此工具
將此工具加入你自己的網站。複製下方的程式碼片段,它會自動保持最新。
<iframe src="https://monu.tools/embed/zh-Hant/jwt-decoder" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>相關工具