JWT Encoder

Build a new JSON Web Token from a header and payload, and sign it with HMAC — entirely in your browser, for testing your own JWT integrations.

Initializing JWT Studio...

JWT Studio

How to Use the JWT Encoder

Write a header and payload as JSON, choose HS256, HS384, or HS512, and enter a secret key to get back a correctly-signed JSON Web Token — computed entirely in your browser via the Web Crypto API. This is for testing and debugging your own application’s JWT handling, not for producing access to systems you don’t already control.

  1. 01

    Choose an Algorithm

    HS256, HS384, or HS512 — your selection always becomes the signed token’s "alg" field, regardless of what you type in the header box.

  2. 02

    Write the Header & Payload

    Edit the header and payload as JSON. The payload defaults to a familiar example ("sub", "name", "iat") you can replace entirely.

  3. 03

    Enter a Secret & Copy the Token

    Your secret signs the token locally and is never logged, stored, or sent anywhere. Copy the resulting token to use in your own testing.

Frequently Asked Questions

Answers about this tool.

Is my secret key uploaded anywhere?

No. Signing happens entirely inside your browser using the Web Crypto API. Your secret and payload are never sent to a server.

Can I generate an unsigned ("alg: none") token with this tool?

No. The algorithm you select is always what actually signs the token — this tool cannot produce an unsigned or "none"-algorithm token, even if you type that into the header field yourself.

Will a token I generate here work as a real login for another app?

Only if that app is configured to trust the exact secret you used to sign it. This tool is for testing your own JWT integration, not for creating access to a system you don’t control the secret for.

Can this tool sign with RS256/ES256 (RSA/ECDSA)?

Not yet — this baseline supports HMAC signing (HS256/384/512) only. Asymmetric algorithm support is a planned follow-on, since it requires careful private-key handling to do safely.

Related tools

🍪 We value your privacy

We use strictly necessary cookies to run this site (login, billing). With your consent, we'd also like to use cookies to serve personalized ads and analyze our traffic. Declining only turns off those optional cookies. Read more in our Privacy Policy.