🔐

JWT Generator

Create JWT tokens with custom claims and sign them. All algorithms supported: HS256 (shared secret), RS256/ES256 (public/private key pairs). Add standard claims like subject, expiration, issuer. Add custom claims like roles or permissions. Templates for common use cases: API access, user session, OAuth. Expiration presets (15min, 1hr, 24hr, 7days). Get code snippets for JavaScript, Python, PHP, Go, Java, C#. Everything uses Web Crypto API in your browser. For testing only — never use browser-generated keys in production.

Algorithm & Header
symmetric
HMAC with SHA-256 (symmetric)
Standard Claims
RFC 7519 registered claim names
minutes

Token expires: 1 hour 0m from now

Custom Claims
Add application-specific claims
Payload Preview
Signature & Keys

Length: 19 characters⚠️ Recommended: 32+ characters

⚠️ Security Warning

Never use production keys in browser tools! All operations happen in your browser, but treat these keys as test/development only.

🔒 Privacy & Security:

All JWT generation happens in your browser using the Web Crypto API. Your keys and tokens never leave your device. However, this is a tool for TESTING AND DEVELOPMENT ONLY. Never use production keys or secrets in any online tool!

How to Use

  1. Pick an algorithm (HS256 for most cases)
  2. Add claims like subject, expiration, and custom data
  3. Set expiration with quick presets
  4. Provide a secret key (or generate test keys for RS256/ES256)
  5. Click Generate JWT
  6. Copy token or code snippets

Frequently Asked Questions