FreeOnlineQR

JWT Generator

Build a signed JSON Web Token for testing an API or reproducing a bug. Set the standard claims — subject, issuer, audience, expiry — add whatever custom claims your service reads, and get back a token signed with HMAC-SHA256. The signing runs in this page using a hand-written HMAC implementation checked against the RFC 4231 test vectors, so your secret is never transmitted anywhere.

Never leaves this page — the signing happens in your browser. Even so, don't paste a production secret into any website.

0 leaves the exp claim out entirely, which means the token never expires.

A Unix timestamp in seconds. Leave at 0 to use the current time.

Result

Enter a signing secret to produce a token.

Nothing is uploaded — this tool runs inside your browser, so your files never leave your device.

Help us improve

Why use this tool

  • HS256 signing, done in your browser — the secret is never uploaded
  • Standard sub, iss, aud, iat and exp claims, plus any custom JSON you add
  • Warns you when the signing secret is too short to be safe
  • Set iat explicitly to reproduce the exact same token twice

How it works

  1. 1Enter the signing secret your service uses to verify tokens.
  2. 2Fill in the claims you need, and any extra ones as JSON.
  3. 3Copy the token and paste it into your Authorization header.

JWT Generator — frequently asked questions

The signing genuinely happens in your browser — there is no request, and you can prove it by disconnecting from the internet and watching the tool keep working. Even so, the honest advice is not to paste a production secret into any website, this one included. Use a throwaway secret for testing, and generate real tokens on your own server.

Explore the other tools

Same deal everywhere on the site — free, no sign-up, and no watermark on anything you download.

Or see every tool on one page.