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
- !Select an algorithm (default: HS256).
- !Enter a secret or private key. For HS256, any string works; for asymmetric algorithms like RS256, a PEM format private key is required.
- !Edit JSON data in the Payload input box.
- !(Optional) Set an expiration time, with the following time units supported:
s - secondsm - minutesh - hoursd - daysw - weeksy - yearsms - millisecondsnumber - secondsExamples: 2h (2 hours), 30m (30 minutes), 7d (7 days), 1w (1 week), 3600 (3600 seconds = 1 hour)
- !Click the Generate Token button, the result will appear on the right and can be copied with one click.
Related tools
More from the same category · Developer Tools
Cron ExpressionVisual Cron builder: pick minute-hour-day-month-weekday fields and preview next run times live.JSON FormatterJSON beautify, minify and validate with auto error location for missing brackets and stray commas.Timestamp ConverterConvert Unix timestamps to dates and back with second/millisecond precision and live current time.Regex TesterTest regex with live match highlighting, capture groups and substitution, toggling g/i/m/s flags.JWT ParserSplit a JWT into header, payload and signature, then base64url-decode claims and expiry without a key.UUID GeneratorBatch-generate v1, v4 and v5 UUIDs with or without hyphens for keys and distributed IDs.