Skip to content

JWT Builder

Embed

Paste this where you want JWT Builder on your site. Adjust the height to fit.

<iframe src="https://www.browserutils.dev/embed/jwt-builder/" width="100%" height="500" frameborder="0" loading="lazy" title="JWT Builder"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://www.browserutils.dev/tools/jwt-builder/">JWT Builder</a> by BrowserUtils</p>

Encode and build JSON Web Tokens.Runs in this tab.

Header
Algorithm:
Payload
Add claim:
Secret

Next step

About JWT Builder

Free online JWT encoder and builder. Create JSON Web Tokens by specifying header, payload, and secret with HMAC-SHA signing using the Web Crypto API. It runs in your browser. Nothing is sent to a server.

Questions

What signing algorithms are supported?
The builder supports HMAC-based algorithms: HS256 (HMAC-SHA256), HS384 (HMAC-SHA384), and HS512 (HMAC-SHA512). Signing is done entirely in your browser using the Web Crypto API.
Is this safe for production tokens?
This tool is designed for development and testing. For production JWTs, use your server-side signing infrastructure. Never share your production signing secrets.
What claims should I include in a JWT payload?
Common claims include "sub" (subject/user ID), "iat" (issued at), "exp" (expiration time), "iss" (issuer), and "aud" (audience). You can also add custom claims for your application.
Can I create JWTs for testing API authentication?
Yes, this is a common use case. Build a token with the correct claims and signing secret to test your API endpoints during development.
Is my signing secret safe when building JWTs online?
Yes, the JWT is built and signed entirely in your browser using the Web Crypto API. Your secret key never leaves your device. Still, avoid using production secrets in any browser tool.
What is the difference between HS256 and RS256 for JWTs?
HS256 uses a shared secret key for both signing and verification. RS256 uses an RSA key pair where the private key signs and the public key verifies. RS256 is better when multiple services need to verify tokens independently.

More in Encoding & Decoding

All 20 encoding & decoding