JWT sign & verify
ClientCreate or verify HMAC-signed JSON Web Tokens (HS256, HS384, HS512) in your browser. For read-only claim inspection, use JWT decode.
Use HMAC only when both sides share a secret
HS256, HS384, and HS512 authenticate a token with the same secret on the signer and verifier. They are useful for controlled integrations and test fixtures, but they are not interchangeable with RS256 or ES256 public-key workflows.
For asymmetric tokens, use JWT sign with PEM and JWT verify with PEM so a private signing key does not have to be distributed to every verifier.
A valid signature is only the first check
Verification confirms that the compact token has not changed and matches the supplied secret. An application must still enforce the expected issuer, audience, algorithm, expiry, not-before time, and any authorization claims.
Use short-lived test claims and throwaway secrets on this page. Do not place production tokens or shared secrets in URLs, screenshots, tickets, or chat transcripts.
Sign JWT
Header (JSON)
Payload (JSON)
?
The alg field in the signed header is set from your algorithm choice. Secret and JSON never leave this tab.
Nearby workflows on Toolcore
- JWT decode — to inspect header and payload claims without implying signature trust.
- JWT RSA / ECDSA verify — when a trusted public key verifies RS256 or ES256 tokens.
- HMAC generator — to reproduce a keyed digest outside the JWT compact format.
- Unix timestamp converter — to inspect exp, nbf, and iat NumericDate values as calendar time.
Common use cases
- Prototype OAuth or API gateways with HS256 test tokens before wiring your auth service.
- Confirm a shared secret still matches a token signature during integration debugging.
- Generate signed JWTs for local Postman or curl flows without installing CLI tools.
Common mistakes to avoid
Using this page for RS256 or ES256
Only HMAC algorithms (HS256/384/512) are supported. Asymmetric keys need your backend or a PEM workflow.
Treating verify as authorization
A valid signature only proves integrity with a secret you already trust—it does not replace issuer, audience, or expiry checks.
Pasting production secrets
Use throwaway secrets in demos. Rotate credentials if a production secret was exposed.
FAQ
Which algorithms are supported?
HS256, HS384, and HS512 using Web Crypto HMAC. The alg field in the signed header matches your selection.
How is this different from JWT decode?
Decode only reads header and payload. This page signs new tokens or verifies that the signature matches your HMAC secret.
Is my secret sent to Toolcore?
No. Signing and verification run entirely in your browser tab.
Common search terms
Phrases people search for that match this tool. See the full long-tail keyword index.
- jwt sign online hs256
- create jwt token hmac browser
- jwt sign and verify online
- generate jwt with secret local
More tools
Related utilities you can open in another tab—mostly client-side.
JWT decode
ClientInspect JWT header and payload as JSON in browser; signature not verified.
JWT verify (RSA / ECDSA)
ClientVerify RS256/384/512 or ES256/384/512 JWTs with a PEM public key in the browser—Web Crypto only.
HMAC (SHA-256 & more)
ClientHMAC-SHA-256/384/512/1 in the browser—hex or Base64 for webhooks, signing, and API docs.
OAuth PKCE generator
ClientRFC 7636 code_verifier plus S256 code_challenge (SHA-256, base64url)—Web Crypto in your tab, no upload.