JWT Generator

Custom generation of JSON Web Tokens with support for multiple algorithms and keys.

Configuration

Enter a string secret for signing
Leave empty to not set expiration. Time units listed below are supported.
Supported Time Units for Expiration
sseconds
mminutes
hhours
ddays
wweeks
yyears
msmilliseconds
Examples: 2h (2 hours), 30m (30 minutes), 7d (7 days), 3600 (number = seconds)

Generated Result

Usage Guide

Features

JWT Generator allows you to create JSON Web Tokens with custom payloads and signing algorithms, useful for development debugging and testing API authentication flows.

Supported Algorithms

  • !HMAC: HS256, HS384, HS512 (uses shared secret)
  • !RSA: RS256, RS384, RS512 (uses public/private key pair)
  • !ECDSA: ES256, ES384, ES512 (uses elliptic curve keys)

Usage

  1. !Select an algorithm (default: HS256).
  2. !Enter a secret or private key. For HS256, any string works; for asymmetric algorithms like RS256, a PEM format private key is required.
  3. !Edit JSON data in the Payload input box.
  4. !(Optional) Set an expiration time, with the following time units supported:
s - seconds
m - minutes
h - hours
d - days
w - weeks
y - years
ms - milliseconds
number - seconds
Examples: 2h (2 hours), 30m (30 minutes), 7d (7 days), 1w (1 week), 3600 (3600 seconds = 1 hour)
  1. !Click the Generate Token button, the result will appear on the right and can be copied with one click.