JWT Generator

Create signed JWT tokens with HMAC (HS256, HS384, HS512). All signing happens in your browser.

100% browser-side. No server. No data sent. Your secret never leaves your device.
For development and testing only. Do not use production secrets in the browser.

Supported alg: HS256, HS384, HS512

Add claim:

iat is set automatically to current time when you generate.

Shortcut: Ctrl+Enter or Cmd+Enter to generate

About JWT Generator

Create JWTs for development and testing. Use standard claims like sub, iat, exp, iss, aud. Signing uses the Web Crypto API in your browser—100% browser-side, no server, no data sent.

Explore these related free tools to enhance your productivity and workflow.

Frequently Asked Questions

What is a JWT?

A JSON Web Token (JWT) is a compact token format used for authentication and authorization. It has three parts: header, payload, and signature, each base64url-encoded and separated by dots.

Which algorithms are supported?

This generator supports HS256, HS384, and HS512 (HMAC with SHA-256/384/512). Set the 'alg' field in the header to match. The secret is used to sign the token.

Is it safe to generate JWTs in the browser?

Generating JWTs in the browser is fine for development and testing. For production, keep your secret on the server and never expose it in client-side code.

Is any data sent to a server?

No. This tool runs 100% in your browser. Your header, payload, and secret never leave your device. Signing uses the Web Crypto API locally.