JWT デコーダー
JSON Web Token のヘッダーとペイロードをデコードし、標準クレームを UTC と現地時刻で確認、シークレットで HS256・HS384・HS512 署名を検証します。
ブラウザ内だけで動作します。入力した内容はどこにもアップロードされません。
HS256、HS384、HS512 はブラウザの Web Crypto で検証し、シークレットがページの外に出ることはありません。RS256、ES256 などの非対称トークンは発行者の秘密鍵で署名されるため、サーバー側で公開 JWKS と照合する必要があります。共有シークレットでは検証できず、その確認を経て初めてトークンを信頼できます。
{
"alg": "HS256",
"typ": "JWT"
}{
"sub": "user_8f42d1",
"name": "Ryu",
"iss": "https://auth.ryuslog.com",
"aud": "ryuslog-api",
"role": "admin",
"iat": 1763251200,
"exp": 1763254800
}subuser_8f42d1Subject — the user or principal these claims describe.nameRyuName — human readable display name of the subject.isshttps://auth.ryuslog.comIssuer — the authority that created and signed the token.audryuslog-apiAudience — the service that is allowed to accept this token.roleadminRole — custom claim used by many applications for authorization.iat176325120016 Nov 2025, 00:00:00 UTC · UTCIssued At — when the token was created.exp176325480016 Nov 2025, 01:00:00 UTC · UTCExpiration Time — the token must be rejected after this instant.
JWT クレームリファレンス
クイックリファレンス- iss
- 発行者。トークンを作成し署名した主体です。
- sub
- 主体。クレームが示す対象で、通常はユーザー ID です。
- aud
- 対象者。このトークンを受け取る API やサービスで、受け入れる前に必ず確認します。
- exp
- 有効期限を NumericDate の秒で表します。この時点を過ぎたらトークンは拒否します。
- nbf
- この時刻より前はトークンを受け入れてはいけません。
- iat / jti
- iat は発行時刻(NumericDate 秒)、jti は失効リストに使う一意なトークン ID です。
Node.js の関連文法ガイド
Node.js のガイドをすべて見るNode.js JWT invalid signature: JWKS Rotation and Clock Skew
One message covers three bugs: the wrong key type for RS256 or ES256, a JWKS cache that never refreshes after a kid rotation, and a clock that drifted.
Node.jsERR_REQUIRE_ESM and __dirname Is Not Defined in ESM Projects
require of an ESM-only package has nothing to load, and ESM creates none of the CommonJS wrapper globals. Dynamic import, createRequire, and the path replacements.
Node.jsNode.js fetch ETIMEDOUT and SELF_SIGNED_CERT_IN_CHAIN Debugging
fetch failed hides everything in error.cause. Read the aggregate, trust the private CA the way curl does, route the proxy, and set the connect timeout undici does not.
Node.jsNode.js JavaScript heap out of memory: Snapshots and Real Leaks
Distinguish needs more from leaks before raising the flag: external memory and heap tell different stories, and a heap ceiling at three quarters of the container limit keeps V8 able to report.