Cách dùng: Bộ tạo JWT
Bộ tạo JWT là công cụ Công cụ bảo mật trực tuyến miễn phí, giúp sign and verify JSON Web Tokens entirely in your browser — HS256, HS384, HS512, RS256 and ES256 run on your own WebCrypto, fresh RSA-2048/EC P-256 pairs export as PKCS#8 and SPKI PEM, exp/iat come back as human dates, and the unsigned "none" algorithm is refused by design. Nothing is uploaded ngay trong trình duyệt. Dán dữ liệu, chỉnh tùy chọn và nhận kết quả tức thì — không cài đặt, không đăng ký, không tải lên máy chủ.
Mô tả
Sign and verify JSON Web Tokens entirely in your browser — HS256, HS384, HS512, RS256 and ES256 run on your own WebCrypto, fresh RSA-2048/EC P-256 pairs export as PKCS#8 and SPKI PEM, exp/iat come back as human dates, and the unsigned "none" algorithm is refused by design. Nothing is uploaded.
- Công cụ bảo mật
- Vì mọi tính toán đều ở phía máy khách, Bộ tạo JWT an toàn với dữ liệu nhạy cảm như API key hay token.
Cách dùng
Dùng Bộ tạo JWT chỉ ba bước:
- Dán dữ liệu vào ô nhập (hoặc nạp ví dụ).
- Chỉnh tùy chọn theo định dạng mong muốn.
- Sao chép, tải hoặc xem kết quả — cập nhật khi bạn gõ.
Chạy
Ví dụ
Builds a signed HS256 token whose exp (2030-01-01 UTC) is shown with its human UTC/local time. Secrets never leave the browser and the unsigned "none" algorithm is refused by design — for inspecting foreign tokens use the Decoder / Verifier pages (the loopback pair of this generator).
Đầu ra(由工具此刻实时生成)
Signed with HS256 — the token below is the compact serialization:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIyNjE3MyIsInN1YiI6ImRlbW8iLCJleHAiOjE4OTM0NTYwMDB9.-ZCXzFd37b5ZNaDyjyUHfPXEyKzs9ta4TTj5AyO5xpE
Header: {"alg":"HS256","typ":"JWT"}
Payload: {"iss":"26173","sub":"demo","exp":1893456000}
Claim times (your browser clock):
Expires at: 1893456000 = 2030-01-01T00:00:00.000Z UTC | local: Tue Jan 01 2030 00:00:00 GMT+0000 (Coordinated Universal Time) -> still valid
Paste the token into the Verify mode on this same page (or the JWT Verifier page) to check it; to inspect claims without verifying use the JWT Decoder page. Everything ran in your browser — the secret and key never left this machine.
此输出由工具真实运行产生,并非人工编写。
Tình huống sử dụng
Những tình huống phổ biến mà Bộ tạo JWT hữu ích:
- Sign and verify JSON Web Tokens entirely in your browser — HS256, HS384, HS512, RS256 and ES256 run on your own WebCrypto, fresh RSA-2048/EC P-256 pairs export as PKCS#8 and SPKI PEM, exp/iat come back as human dates, and the unsigned "none" algorithm is refused by design. Nothing is uploaded.
Tham số
Công cụ này không có tùy chọn — chỉ tác động lên đầu vào.
FAQ
JWT Generator là gì?
JWT Generator dùng để sign and verify JSON Web Tokens entirely in your browser — HS256, HS384, HS512, RS256 and ES256 run on your own WebCrypto, fresh RSA-2048/EC P-256 pairs export as PKCS#8 and SPKI PEM, exp/iat come back as human dates, and the unsigned "none" algorithm is refused by design. Nothing is uploaded. Chạy hoàn toàn trong trình duyệt nên dữ liệu của bạn được bảo mật.
JWT Generator có miễn phí không?
Có. Không giới hạn, không đăng ký, không cài đặt.
Dữ liệu của tôi có bị tải lên?
Không. Mọi xử lý diễn ra ngay trên máy bạn.
Cần lưu ý
- 全部计算在浏览器端完成,因此超大输入受限于标签页内存,而非服务器上传限制。