ToolPal

JWT编码器

使用自定义负载声明创建签名的JSON Web Token(JWT)。完全在浏览器中使用HS256(HMAC-SHA256)签名。

算法HS256
快速添加:

使用方法

使用自定义负载声明创建签名的JSON Web Token(JWT)。完全在浏览器中使用HS256(HMAC-SHA256)签名。

  1. 1Enter a secret key in the Secret field — use any string for testing, but never your real production secret.
  2. 2Edit the payload claims in the table. Click 'Add Claim' to add new key-value pairs.
  3. 3Use the Quick Add buttons to insert standard claims like iss (issuer), exp (expiration), or aud (audience).
  4. 4Click 'Generate Token' to sign the JWT using HMAC-SHA256 (HS256) in your browser.
  5. 5Copy the generated JWT and use it in your application, Postman, or API testing tool.

主要功能

  • HS256 signing via Web Crypto API — runs entirely in your browser, nothing sent to servers
  • Editable payload claims table — add, remove, and edit any key-value claim
  • Smart type coercion — numbers and booleans are encoded as JSON types, not strings
  • Quick Add buttons for standard JWT claims (iss, exp, aud) with sensible defaults
  • Color-coded output matching the JWT Decoder — red header, purple payload, cyan signature

常见问题

了解更多