Compact JWS Sign & Verify

Sign a payload or verify a compact JWS using an explicitly selected algorithm.



How to use

In Verify mode, paste all three dot-separated parts. Output includes the verified payload and its encoding. If UTF-8 is selected and the payload is binary, the tool reports Hex.

FAQ

Does JWS verification fetch a key from the token?

The browser verifies the compact JWS against the key you provide. It does not fetch a remote key or upload the token for verification.

What is supported?

Supports HS256/384/512, RS256 and ES256/384/512. HMAC keys use Hex and must be at least as long as the digest. Asymmetric keys use JWK or PEM. Verification uses the supplied key without fetching remote keys or checking JWT claims or certificate trust. Detached payloads are unsupported.

Other Languages

Compact JWS Sign & Verify — Base64.sh

Compact JWS Sign & Verify

Sign a payload or verify a compact JWS using an explicitly selected algorithm.

Share:

References

How we make sure

We check this tool with the automated test suites linked below. Example checks are shown in their original language.

Verification method
Compare compact HS256 signatures with Node HMAC, verify the payload, and reject a modified payload. Binary-payload checks confirm successful verification, labelled Hex fallback for non-UTF-8 bytes, explicit Base64 output, and independence from the message input selector.
Comparison reference
Node.js 24.22.1 crypto (OpenSSL 3.5.9) HMAC-SHA256 against jose 6.2.15; asymmetric JWS algorithms are not independently covered by this JWS test.
Verification scope
Covers compact signing and verification, tampering rejection and selected binary payload cases. JWT claim checks and remote keys are outside the tool’s scope.
Test source and cases (select a file to read it)
  • completion-tools.test.js
    • jws-tool: compact HS256 signature matches Node HMAC and rejects tampering
    • JWS and JWE compact inputs ignore the message input selector during verification and decryption
    • JWS verification preserves arbitrary authenticated payload bytes and labels their encoding
    • Secret fields start empty and fixed vectors are confined to the explicit example action

These checks cover the listed examples and boundaries, not every possible input. Round trips and checks using the same library are not independent verification.