JWT Signer
Create an HS256 JSON Web Token from a JSON payload and shared secret.
Processing stays in your browser. Supports HS256 only. Signing does not encrypt claims. For production authentication, use your server's token issuance and validation policy.
How to use the jwt signer
Create an HS256 JSON Web Token from a JSON payload and shared secret. Complete the json payload, shared secret (at least 32 utf-8 bytes) fields above. Choose Run tool, review the output, then copy or download the result.
Example
A sub claim of test-user appears in the decoded payload of the signed token.
Good to know
Supports HS256 only. Signing does not encrypt claims. For production authentication, use your server's token issuance and validation policy.
Separate representation, integrity and trust
Use public test values for the first run and identify exactly what property you want to inspect. Encoding makes data representable in another format; hashing produces a digest; signing and encryption have different purposes. A readable token, matching digest or parsed key does not by itself establish who created the data or whether it should be trusted. The scope stated on this page is the boundary of the result.
Inputs and settings explained
- JSON payload
- Supply the JSON shape named by this label. Preserve property names and value types in the example, then replace the demonstration data. Objects, arrays and newline-delimited records are different formats; use the one requested rather than enclosing arbitrary text in braces.
See the demonstration value
{"sub":"test-user","role":"reader"} - Shared secret (at least 32 UTF-8 bytes)
- Use a public test value to establish the expected behavior first. For a real operation, follow your own credential-handling rules. Keep this value out of screenshots, exported examples and support messages; a demonstration value is not a suitable production secret.
How to review the result
Compare the exact bytes and encoding used by the other system. Spaces, line endings, Unicode encoding and Base64 variants can all affect the result. For cryptographic material, confirm algorithms and parameters against the protocol you are implementing. Do not put real credentials in a bug report or screenshot. Review any external-service disclosure before starting a lookup; a service-assisted check has different data handling from a local transformation.
- Confirm the expected encoding, algorithm and byte sequence with a public known example.
- Get comparison values and trust anchors from an independent source you trust.
- Keep generated secrets out of shared downloads, source control and support messages.
Common questions about this workflow
Does decoding or inspecting a token verify it?
No. Reading fields and checking syntax are separate from verifying a signature, issuer, audience, expiry and the surrounding application's policy. Use the verification procedure required by the actual protocol.
Does no reported issue prove that a value is safe?
No. The result covers the checks described on this page and the supplied input only. A local utility cannot establish every security property, and a lookup may have incomplete coverage. Apply your application's complete validation and key-management requirements.
Built by DevBricks Technologies. Found an unexpected result in JWT Signer? Report a reproducible example with the tool URL, settings and a small sample that contains no private information.