Công cụ này giải mã token JWT để bạn đọc được phần header và payload dưới dạng JSON dễ nhìn, thực hiện hoàn toàn trong trình duyệt nên token không bị gửi đi đâu. Dùng khi debug luồng đăng nhập, kiểm tra thời hạn token, hoặc xem một dịch vụ bên thứ ba trả về những claim gì.
Cần nói rõ: công cụ chỉ giải mã, KHÔNG xác minh chữ ký. Nghĩa là bất kỳ ai cũng có thể sửa payload rồi tạo token trông hợp lệ, và trang này sẽ vẫn hiển thị nội dung đó mà không báo lỗi. Muốn biết token có thật sự do máy chủ phát hành hay không, bạn phải xác minh chữ ký bằng khóa bí mật hoặc public key ở phía máy chủ.
Cách sử dụng
- Dán chuỗi JWT đầy đủ vào ô nhập liệu.
- Đọc phần header để xem thuật toán ký và loại token.
- Đọc phần payload để kiểm tra các claim như exp, sub và các quyền.
- Quy đổi mốc thời gian exp sang ngày giờ để biết token còn hạn hay không.
This decoder reads a JWT's header and payload as readable JSON and does so entirely in your browser, so the token never leaves the machine. Use it while debugging a login flow, checking when a token expires, or inspecting which claims a third-party service issues.
Be clear about the limit: it only decodes, it does NOT verify the signature. Anyone can edit a payload and produce a token that looks valid, and this page will display its contents without complaint. To know whether a token was really issued by the server, you must verify the signature with the secret or public key on the server side.
How to use
- Paste the full JWT string into the input box.
- Read the header to see the signing algorithm and token type.
- Read the payload to check claims such as exp, sub, and permission scopes.
- Convert the exp timestamp to a readable date to see whether the token has expired.