About JWT Encoder
FreeToolr's JWT Encoder creates signed JSON Web Tokens from a JSON payload and a secret. Choose HS256, HS384, or HS512, then generate a compact token for testing APIs, building fixtures, or checking authentication flows. The tool runs in your browser, so nothing is uploaded and nothing needs installing. Your payload is converted into a JWT header and payload section, then the selected HMAC algorithm signs them with your secret. A JWT is signed, not encrypted, so anyone holding the token can usually read its payload. Use data that is safe to disclose. This tool suits developers, students, testers, and technical writers who need a quick token for a development task. It does not replace a server-side token issuer for production systems. FreeToolr keeps the task focused on the three supported HMAC algorithms and avoids unrelated decoding or verification features.
How to use it
- 1Enter a valid JSON payload, such as {"sub":"1234567890","name":"Ada"}.
- 2Enter the secret used to sign the token.
- 3Choose HS256, HS384, or HS512.
- 4Create the token and copy the resulting JWT for your test or development task.
Worked example
Use the payload {"sub":"1234567890","name":"John Doe","iat":1516239022}, choose HS256, and enter the secret your-256-bit-secret. The resulting token is eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c.
How it works
Creates a signed JSON Web Token (HS256, HS384 or HS512) from a JSON payload and a secret, in the browserWorks in the browser with nothing to installSource: RFC 7519: JSON Web TokenRFC 7515: JSON Web SignatureRFC 7518: JSON Web Algorithms. Last checked 4 November 2026.
What it is good for
- Create HS256, HS384, or HS512 tokens from JSON and a secret.
- Run the signing process in your browser with nothing uploaded.
- Use a clear token format for API tests and development work.
- JWT signing does not encrypt the payload, so token contents remain readable.
- This tool supports HMAC algorithms only, not RSA, ECDSA, or other asymmetric signing methods.
Questions people ask
What is a JWT encoder?
A JWT encoder creates a compact JSON Web Token from a JSON payload and a signing secret. The token includes a header, payload, and signature separated by periods.
How do I use this JWT Encoder?
Enter valid JSON, provide a secret, and select HS256, HS384, or HS512. Create the token, then copy it for a development or testing task.
Is a JWT encrypted?
No. Signing helps a verifier detect changes and confirm the expected secret signed the token. The payload is normally readable by anyone who has the token.
What is HS256?
HS256 uses HMAC with SHA-256 and one shared secret. The same secret is needed to create and verify the signature.
Can I use a production secret here?
Do not paste a production secret into a browser tool. Use a server-side issuer or a trusted local environment, and treat any exposed production key as compromised.
What does the exp claim mean?
The exp claim sets an expiration time as a NumericDate. It represents whole seconds since 1970-01-01 00:00:00 UTC, and your application must enforce it.
Can a valid JWT grant access by itself?
No. Your application must also check the issuer, audience, expiry, scopes, and permissions before granting access.
Help keep every tool free
FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.