JWT Generator — Sign JSON Web Tokens with HS256, HS384 and HS512

Mint signed JSON Web Tokens for testing authentication flows.

Tool Panel

Loading tool...
About JWT Generator

Signs JWTs with the browser WebCrypto API (HS256 / HS512); the secret never leaves your machine.

  • 1

    Header and payload are both editable JSON fields with working defaults; a parse failure on either side reports an error and clears the output.

  • 2

    Signs with HS256, HS384 or HS512 using the browser WebCrypto API.

  • 3

    The alg field in the header is overwritten by the selected algorithm and typ defaults to JWT, so a token cannot claim HS256 while being signed with HS512.

  • 4

    The secret is required: an empty secret shows a prompt instead of producing a token, and it only exists in page memory until you reload.

  • 5

    The output is a three-part token (header.payload.signature) ready to copy into a local debugging flow.

Related tools

View all
Cron Generator
Programming

Cron Generator

Build crontab schedules visually instead of recalling the field syntax.

Programming
Gitignore Generator
Programming

Gitignore Generator

Produce a .gitignore suited to your stack instead of copying one from memory.

Programming
UUID Generator
Programming

UUID Generator

Generate random v4 UUIDs in bulk for fixtures and test data.

Programming
NanoID Generator
Programming

NanoID Generator

Generate compact, URL-safe random identifiers.

Programming
ULID Generator
Programming

ULID Generator

Generate sortable unique IDs that preserve creation order.

Programming
Regex Tester
Programming

Regex Tester

Test and debug regular expressions with live match highlighting.

Programming