DEV Community

TateLyman
TateLyman

Posted on

JWT Generator: Create Test Tokens Without a Backend

Testing JWT auth? You need tokens. Most guides tell you to set up a backend or use jwt.io (which sends your secret to their servers).

I built a JWT generator that runs entirely in your browser using Web Crypto API.

What it does

  • Set standard claims: sub, name, iss, exp
  • Add custom claims as JSON (role, permissions, etc)
  • Choose secret key for HS256 signing
  • Color-coded output (header.payload.signature)
  • Copy token in one click

Privacy

Your secret key never leaves the browser. Signing uses crypto.subtle.sign() — the browser native crypto API.

JWT Generator

Pair it with:

Full toolkit (280+ tools): devtools-site-delta.vercel.app

Top comments (0)