Chuyển đến nội dung chính

Công cụ giải mã JWT

Công cụ cho Nhà phát triển

Giải mã tiêu đề/nội dung, kiểm tra các yêu cầu và thời hạn hết hạn

Xem nhanh kết quả

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

Thời gian phát hành1/18/2018, 09:30:22
Thời gian hết hạn9/22/2030, 00:37:02
Thuật toánHS256
KiểuJWT

Header

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

Payload

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

Chữ ký (bản gốc)

SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

Ký xác minh cần khóa — đừng dán token và khóa môi trường sản xuất cùng nhau vào công cụ trực tuyến.

Quá trình giải mã

  1. 1Tách thành ba đoạn theo「.」:đầu / tải trọng / chữ ký
  2. 2Giải mã Base64url cho mỗi đoạn: -_ đổi lại +/, điền đủ dấu =, giải mã theo UTF-8
  3. 3JSON.parse phần đầu và phần tải → xem trường khai báo alg / typ /
  4. 4exp = 1916239022 → compare with current time → pending
  5. 5Không kiểm tra chữ ký ở đây —— kiểm tra chữ ký cần khóa, phải hoàn thành ở phía máy chủ

Trường khai báo chuẩn (RFC 7519)

Trường dữ liệuÝ nghĩaToken này
issBên phát hành—
subChủ thể (định danh người dùng)1234567890
audBên nhận—
expThời gian hết hạn (giây unix)1916239022
iatThời gian phát hành (giây unix)1516239022
nbfThời gian hiệu lực—
jtiĐịnh danh duy nhất (chống phát lại lại)—
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.

Công cụ này có hữu ích cho bạn không?

Hướng dẫn sử dụng

  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.

Điểm chính

  • 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.

Công thức và nguyên lý hoạt động

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.

Câu hỏi thường gặp

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.

Công cụ liên quan

Hướng dẫn liên quan

Nguồn và cập nhật

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

Nguồn đáng tin cậy:

Cập nhật gần nhất:

Công thức và nội dung trên trang này đã được đội ngũ YiJianSuan kiểm tra lại, chỉ dùng để tham khảo học tập, các nghiệp vụ thực tế vui lòng tuân theo thông báo chính thức.

Nội dung được đội ngũ biên tập YiJianSuan duy trì và kiểm tra lại định kỳ, quy trình cập nhật và kiểm duyệt xem tạiQuy định biên tập.

Trích dẫn trang này: YiJianSuan. Công cụ giải mã JWT[EB/OL]. https://www.yijiansuan.com/vi/c/dev/jwt

Kết quả do công cụ này cung cấp chỉ mang tính tham khảo, không cấu thành bất kỳ lời khuyên chuyên nghiệp nào, vui lòng dựa trên kết quả tính toán chính thức.