Developer Tools

JWT Encoder (HS256)

Create an HS256-signed JWT locally for testing and development with a random 256-bit key or a custom key of at least 32 bytes.

Your input is processed in this browser and is not sent to our server.

For testing and development only—not production authentication. Use a cryptographically random key of at least 32 bytes. The generator creates a random 256-bit key; the tool cannot verify the randomness of a custom key. The secret stays local and is not saved.

How to Use JWT Encoder

  1. Enter a JSON object as the JWT payload.
  2. Generate a random 256-bit key or enter a custom key of at least 32 bytes.
  3. Select Create signed token and use the result only for development or testing.

Example

Input

{"sub":"user-123"} with a generated local key

Result

A three-part HS256 JWT; the key is not included in the token.

Common Errors & Troubleshooting

  • The payload must be a JSON object, not an array or primitive.
  • The custom signing key must contain at least 32 UTF-8 bytes; length alone does not prove that it is random.

Frequently Asked Questions

Is this suitable for production authentication?

No. It is a local testing utility, not an identity provider or production key-management system.

Does it verify existing JWT signatures?

No. It creates an HS256 signature for the supplied payload; it does not validate tokens from an issuer.