Menu
PDF Tools
Image Tools
Converters & Utilities
Seller & Print Tools
Accounting & Business
Calculators
Text & Writing Tools
Developer & Web Tools
Creator & Social Tools
Browser Utilities & Games
Document & Design Makers
Text & Developer Tools
Exam & Form Tools

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.

How to use JWT Generator online

  1. Type the payload. A JSON object.
  2. Choose algorithm and key. A test secret is fine.
  3. Add exp or iat. If you need them.
  4. 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?
No. The payload can be read by anyone. A JWT proves who signed it, not that the contents are secret.
HS or RS: which do I pick?
Use the one your service expects. HS algorithms share one secret, while RS256 uses a key pair.
How do I get a PKCS8 key?
Many tools can export an RSA private key in that form. It starts with BEGIN PRIVATE KEY.
What are iat and exp?
The time the token was issued and the time after which it should be refused, both in Unix seconds.
Can this verify a token?
No. It only creates tokens for testing.
Is the JWT Generator private?
No. The JWT Generator works in your browser, and nothing is uploaded.
Can I copy the JWT Generator result?
Press Use result as input and the JWT Generator answer becomes the new input.

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.

More tools in Developer & Web Tools →

Search tools