JWT generator
Create and sign a JWT right away: pick HS256, RS256, ES256…, enter a secret or make a key pair, set iat, exp and nbf with one tap, then copy the token.
How to create a JWT
- Pick an algorithm. HS… uses a secret (a random one is ready); RS… and ES… use a private key — tap "New key pair" or paste your own.
- Edit the payload; the buttons set iat, the exp expiry (15 minutes to 7 days), nbf, sub and iss. The dates show right below in plain form.
- The token is signed as you type. Copy it, or tap "Open in JWT decoder" to read it back and check the signature.
Frequently asked questions
HS256 uses one shared secret for signing and checking — simple when a single system is involved. RS256 and ES256 sign with a private key and are checked with the public key — better when several services check tokens. ES256 gives shorter signatures than RS256.
A PEM starting with "BEGIN PRIVATE KEY". An old-style "BEGIN RSA PRIVATE KEY" must be converted first, for example with openssl pkcs8 -topk8 -nocrypt -in old.pem -out new.pem.
Whoever receives the token checks its signature with the public key. It is worked out from the private key and can be copied; share the public key freely and keep the private key secret.
iat is when the token was issued, exp when it expires and nbf when it starts being valid. All three are seconds since 1 January 1970; the matching dates show right under the payload.
Yes, they are signed to the standard. With the secret or private key of a live system, make sure you are on a trusted device and do not paste them anywhere else.
It is completely free and needs no sign-up.
Related tools
JWT decoderRead a JWT's header, payload, expiry and check its signatureRSA EncryptionGenerate RSA keys, encrypt and decrypt short textHash generatorGenerate MD5, SHA-1, SHA-256, SHA-384, SHA-512 hashesMarkdown previewType Markdown, preview it live and get the HTMLHTML to MarkdownTurn HTML or copied content into MarkdownUnix timestamp converterTimestamp ⇄ date, with the current epoch timeBase64 & URL Encoder / DecoderEncode and decode Base64 and URLsData URI GeneratorTurn files and SVG into embeddable data URIsData URI DecoderView and save files from a data URI or Base64