Đi tới nội dung

Giải mã JWT

Xem nội dung bất kỳ JWT nào ngay trên trình duyệt. Không gửi gì lên server.

Chạy cục bộ trên trình duyệt

Decoding happens in your browser. Nothing is sent to a server.

Cách hoạt động

Anatomy of a JWT

A JWT is three base64url-encoded segments separated by dots. The decoder above splits them for you:

  • Header: algorithm (alg), token type (typ), and sometimes a key id (kid) to tell the server which key signed this token.
  • Payload: the claims. Standard ones include iss (issuer), sub (subject), aud (audience), exp (expiry, UNIX seconds), iat (issued at), nbf (not before).
  • Signature: used to verify the token was issued by the holder of the key. This decoder does not verify signatures, decoding is a separate concern from validating.

Security note

Decoding a JWT is trivial, the payload is not encrypted. Don't put secrets in a JWT payload. Always verify the signature server-side before trusting any claim.

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

Does this decoder send my JWT to a server?

No. Decoding happens entirely in your browser using base64url decoding. Nothing is transmitted.

Can a JWT be decoded without the secret?

Yes. JWT payloads are base64url-encoded, not encrypted. Anyone with the token can read its header and payload. The signature requires the secret to verify, not to read.

What do iat and exp mean?

`iat` is the issued-at timestamp (UNIX seconds). `exp` is the expiration timestamp. This decoder shows them in ISO format plus a relative indicator.

Why should I never put secrets in a JWT?

The payload is not encrypted, just encoded. Anyone who intercepts the token can read every claim. If you need confidentiality, encrypt the payload (JWE) or use opaque tokens.

Các công cụ được port từ DevOps Daily theo giấy phép MIT.Xem bản gốc

Công cụ khác

Tạo UUID và secret

Định danh và secret ngẫu nhiên an toàn về mật mã, tạo ngay trên trình duyệt.

Mở công cụ

Tạo hash và checksum

Hash MD5 / SHA cho văn bản hoặc file, kèm kiểm tra checksum. Chạy trên trình duyệt.

Mở công cụ

Tính subnet CIDR

Phân tích dải CIDR, tính dải địa chỉ, chia nhỏ subnet và kiểm tra một IP có nằm trong mạng hay không.

Mở công cụ