JWT Generator
Type the claims and a test secret, and get a signed JSON Web Token. HS256, HS384, HS512 and RS256 are supported, and exp and iat can be added for you.
- Free, no sign-up
- Nothing is sent to a server
- Worldwide
How to use JWT Generator online
- Type the payload. A JSON object.
- Choose algorithm and key. A test secret is fine.
- Add exp or iat. If you need them.
- Copy the token. Use it in your tests.
Why use this free JWT Generator
- HS256, HS384, HS512, RS256
- exp and iat helpers
- PEM private keys
- Header and payload shown
- Matches the documented example
- Runs in your browser
What a JWT is
A JSON Web Token has three parts joined by dots: a header, a payload of claims and a signature. The first two are JSON written in a URL-safe form of Base64. The signature is made from them with a key, so a server that knows the key can tell that the token was not changed.
The algorithms
HS256, HS384 and HS512 sign with a shared secret and the SHA-2 family of hash functions. RS256 signs with the private half of an RSA key pair, so anyone with the public half can check it. For RS256, paste a private key in PKCS8 PEM form that starts with the line BEGIN PRIVATE KEY.
Claims
Type the payload as a JSON object. The page can add iat, the time of issue, and exp, a number of seconds after it. The times are Unix seconds. Names such as sub, iss, aud and exp have standard meanings, but this page does not check what you put in them.
Tested
The page signs the well known example from the JWT documentation to the same signature, and the RS256 output is checked in the tests with a separate library. That shows the signing is correct. It does not mean that a particular service will accept your token, because services check their own rules.
Use test keys only
Anything typed on a web page can leak through browser extensions, screen sharing or shared devices. Use throwaway secrets and test keys here and never a production key. A JWT is signed and not encrypted, so anyone can read the payload, which means it should not hold secrets. Everything runs in your browser and nothing is sent.
Using the tool
As you type in the JWT Generator, the result appears at once. Use result as input to pass the answer to the next step.
JWT Generator: frequently asked questions
Does the token hide my data?
HS or RS: which do I pick?
How do I get a PKCS8 key?
What are iat and exp?
Can this verify a token?
Is the JWT Generator private?
Can I copy the JWT Generator result?
Related searches for JWT Generator
- JWT Generator online
- free JWT Generator
- JWT Generator online free
- JWT Generator for mobile
- JWT Generator without sign up
- JWT Generator – Developer & Web Tools
JWT Generator is a free online tool on MAITBOX, in the Developer & Web Tools group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.