JWT Generator

Generate JWT tokens (HS256) with custom header, payload and secret

JWT Generator is a free online Developer tool. Generate JWT tokens (HS256) with custom header, payload and secret Related terms: jwt · token · 生成 · json web token · hs256 · 签名. Use it on this page without signing in.

HS256 签名使用浏览器 Web Crypto(crypto.subtle)本地完成,密钥不会上传。生成的 Token 请妥善保管。

Help

使用说明

  1. 填写 Header(算法)与 Payload(自定义字段,自动加入 iat)
  2. 输入 HMAC 密钥(至少 8 字符)
  3. 选择过期时间(可选,自动写入 exp)
  4. 生成三段式 JWT,一键复制,可用「JWT 解析」验证

常见问题

  • 数据会上传吗? 签名在浏览器本地完成(Web Crypto),密钥不上传
  • 能生成 RS256 吗? 当前支持 HS256(对称密钥),RS256 需私钥签名,场景较少
  • 密钥会泄露吗? 所有计算本地完成,但请勿在公共电脑输入生产环境密钥

More Developer

View all

FAQ about JWT Generator

What can JWT Generator do?

JWT Generator is a Developer tool. Generate JWT tokens (HS256) with custom header, payload and secret You can finish the job on this page.

Who should use JWT Generator?

Anyone handling jwt · token · 生成 · json web token · hs256 · 签名 who does not want to install desktop software can use JWT Generator in the browser.

Is JWT Generator safe? Is my data uploaded?

This tool runs in your browser. We do not collect the content you enter into JWT Generator just because you used it.

What similar tools exist?

Related tools in the same Developer group are listed at the bottom of this page.