JWT Encoder

Generate a secure JWT (HS256) from header, payload and secret.


What is this tool?

This tool generates a secure JSON Web Token (JWT) using the HS256 algorithm. It encodes a header and payload, then signs the token using a secret key.

How to use this tool

  1. Enter a valid JSON header.
  2. Enter a valid JSON payload.
  3. Enter a secret key.
  4. Click "Generate JWT".

Example

Header:
{ "alg": "HS256", "typ": "JWT" }

Payload:
{ "userId": 123 }

Example output:

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Related tools

JWT Decoder
Hash Generator
Base64 Encoder