ข้ามไปยังเนื้อหาหลัก

ถอดรหัสส่วนหัว/เพย์โหลด ตรวจสอบการอ้างสิทธิ์และวันหมดอายุ

ดูคำตอบอย่างรวดเร็ว

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แยกเป็นสามส่วนด้วย「.」: ส่วนหัว / ข้อมูล / ลายเซ็น
  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.

เครื่องมือที่เกี่ยวข้อง

ดูเครื่องมือทั้งหมด 55 รายการในหมวดหมู่นี้ →

คู่มือที่เกี่ยวข้อง

แหล่งที่มาและการอัปเดต

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

แหล่งข้อมูลที่น่าเชื่อถือ:

อัปเดตล่าสุด:

สูตรและเนื้อหาในหน้านี้ได้รับการตรวจสอบซ้ำโดยทีมงาน YiJianSuan มีไว้สำหรับการเรียนรู้อ้างอิงเท่านั้น สำหรับการใช้งานจริงโปรดปฏิบัติตามข้อมูลอย่างเป็นทางการ

เนื้อหานี้ได้รับการดูแลและตรวจสอบซ้ำเป็นประจำโดยทีมงานแก้ไขของ YiJianSuan ขั้นตอนการอัปเดตและตรวจสอบสามารถดูได้ที่นโยบายการแก้ไขเนื้อหา.

อ้างอิงหน้านี้: YiJianSuan. เครื่องถอดรหัส JWT[EB/OL]. https://www.yijiansuan.com/th/c/dev/jwt

ผลลัพธ์ที่ได้จากเครื่องมือนี้มีไว้สำหรับการอ้างอิงเท่านั้น ไม่ถือเป็นคำแนะนำทางวิชาชีพใดๆ โปรดใช้ผลการคำนวณอย่างเป็นทางการเป็นหลัก