本文へスキップ

JWTデコーダー

開発者ツール

ヘッダー/ペイロードをデコードし、クレームと有効期限を確認

回答概要

JWT Decoder: Decode header/payload, inspect claims and expiry. Three Base64URL segments: Header.Payload.Signature.

発行時間1/18/2018, 09:30:22
有効期限9/22/2030, 00:37:02
アルゴリズムHS256
タイプJWT

Header

{
  "alg": "HS256",
  "typ": "JWT"
}

Payload

{
  "sub": "1234567890",
  "name": "张上测试下统",
  "iat": 1516239022,
  "exp": 1916239022
}

署名(原文)

SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

署名検証に鍵必要——本番環境トークンと鍵を一緒に貼付け禁止

デコード過程

  1. 1"." で3つに分割:ヘッド / ペイロード / 署名
  2. 2各区間を Base64url デコード:-_ を +/ に戻し、= パディングを補完し、UTF-8 でデコード
  3. 3JSON.parse ヘッダーとペイロード → alg / typ / 宣言フィールドを確認
  4. 4exp = 1916239022 → compare with current time → pending
  5. 5ここでは署名検証を行わない——署名検証には鍵が必要で、サーバー側で実行しなければならない

標準宣言フィールド(RFC 7519)

フィールド意味本 token
iss発行元—
sub主体(ユーザー識別子)1234567890
aud受信側—
exp有効期限(unix秒)1916239022
iat発行時間(unix秒)1516239022
nbf発効時間—
jti一意識別子(リプレイ攻撃防止)—
JWT = base64url(header).base64url(payload).base64url(signature). The payload is only ENCODED, not encrypted — anyone can read it; never put passwords or sensitive data inside. Check `alg` isn't "none" and always verify signature + exp server-side.

このツールはお役に立ちましたか?

使い方

  1. Paste or type content: drop code/text into the JWT Decoder or fill the parameters.
  2. Choose mode/options: switch format, rules or processing as needed.
  3. Live output: results appear instantly — nothing is submitted, data stays in your browser.
  4. One-click copy: copy the output straight into your development environment.

主なポイント

  • JWT Decoder is a free online developer tool — open and use, no sign-up.
  • All calculations run locally in your browser; your data never leaves the device.
  • Key capability: Decode header/payload, inspect claims and expiry.
  • Results come with formulas and reference tables so you can verify every number.

原理と計算式

JWT structure (JSON Web Token)

Three Base64URL segments: Header.Payload.Signature
Header: alg + typ; Payload: claims (sub/iss/exp/iat/nbf)
Timestamps are Unix seconds; expired when exp < now
Base64URL: +/ → -_, padding = dropped
Decoding ≠ verifying — never put secrets in the payload

Example: {alg: HS256} {sub: 1234} is readable by anyone holding the token.

よくある質問

How do I use the JWT Decoder?
Open the page and fill in the input fields — results update automatically. Decode header/payload, inspect claims and expiry.
Are the results accurate?
Yes. Standard formulas and conversion factors are used and verified.
Is it free? Do I need to sign up?
Completely free. No registration, login or download required.
Does it work on mobile?
Yes. The responsive design works on phones, tablets and desktops.
Is my data saved?
No. Everything runs locally in your browser.

関連ツール

関連ガイド

出典と更新情報

Based on RFC 4648, ECMA-262 and related specifications. Last updated: 2025-07

信頼できる出典:

最終更新日:

このページの計算式と内容はYiJianSuanチームにより確認されています。学習参考用であり、実際の業務では公式の発表を優先してください。

内容はYiJianSuan編集チームにより維持管理され、定期的に確認されています。更新・審査プロセスはこちら編集ポリシー.

このページを引用: YiJianSuan. JWTデコーダー[EB/OL]. https://www.yijiansuan.com/ja/c/dev/jwt

本ツールが提供する結果は参考用であり、専門的な助言を構成するものではありません。公式の計算結果を優先してください。