开发者工具
JWT Generator
Generate signed JSON Web Tokens (JWT) with HS256 using the WebCrypto API, right in your browser
深受 1 万+ 开发者信赖
Security notice: Never include sensitive data in a JWT payload. JWTs are base64url-encoded, not encrypted — anyone can decode them. All signing happens locally in your browser.
Header
{
"alg": "HS256",
"typ": "JWT"
}
Payload
Quick-add standard claims:
Signature
Use a strong, random secret of at least 32 characters for HS256.
HMACSHA256(
base64UrlEncode(header) + "." +
base64UrlEncode(payload),
your-secret-key
)
base64UrlEncode(header) + "." +
base64UrlEncode(payload),
your-secret-key
)
Generated Token
Click "Generate JWT" to create a token
About JWT
- •JWTs consist of three Base64URL-encoded parts separated by dots.
- •HS256 uses a shared secret — keep it safe on your server.
- •The payload is readable by anyone — do not store passwords or PII.
- •Always set an
expclaim to limit token lifetime.
继续探索
您可能喜欢的其他 开发者工具…
JSON 格式化
格式化并校验 JSON,支持语法高亮
立即试用
Base64 编码/解码
对 Base64 字符串进行编码与解码
立即试用
URL Encoder/Decoder
Encode and decode URL components and query strings
立即试用
UUID 生成器
生成唯一 UUID
立即试用
Hash Generator
Generate MD5, SHA-1, SHA-256, and SHA-512 hashes from text
立即试用
Regex Tester
Test and debug regular expressions with match highlighting
立即试用
JWT Decoder
Decode and inspect JWT token header and payload
立即试用
HTML Formatter
Beautify and format HTML code with proper indentation
立即试用