JWT Secret Generator
Runs in browserGenerate cryptographically secure JWT secret keys with adjustable bit strength.
Character set
Secret length
256 bits · strong · 43 chars
256 bits is a solid default for most JWT setups.
Output
Generate a secret to preview it here.
- 1
Randomness from your device
Characters are picked with crypto.getRandomValues, the browser's cryptographically secure random generator. Your file never leaves this tab, and nothing is sent to a server.
- 2
No bias
Random bytes that would favour some characters over others are discarded and redrawn, so every character is equally likely.
- 3
Length matches the strength
A 62-character set gives about 5.95 bits per character, so a 256-bit secret is 43 characters long (more with fewer symbols, fewer with the extended set).
More in Developer Tools
See all 8Password Generator
Create strong random passwords with custom length and character sets.
URL Encode / Decode
Encode or decode URL components with encodeURIComponent.
UUID Generator
Generate random UUID v4 values — cryptographically secure, locally in your browser.
Base64 Encode / Decode
Convert text or files to Base64 and back — UTF-8 safe.