Dev · 108 tools · nothing uploads

JWT sign

Sign a JSON payload into a JWT with HS256/384/512 (HMAC secret) or RS256/ES256 (PEM PKCS8 private key). WebCrypto only, runs on your device.

Options

live

JWT sign assembles the standard header.payload.signature string from a JSON payload under one of five algorithms. HS256, HS384 or HS512 sign over a typed secret; RS256 or ES256 sign over a PEM key. Signing calls crypto.subtle directly, so no outside JWT library touches the token. A missing secret, key or invalid payload is refused before signing.

Questions

What algorithms are supported?

HS256, HS384 and HS512 using a typed HMAC secret, plus RS256 and ES256 using a PEM PKCS8 private key.

What does the payload field take?

Any JSON object; invalid JSON is refused with the parser's own error message.

What signs the token?

WebCrypto's crypto.subtle directly, with no third-party JWT library involved.

What happens if I pick RS256 without a key?

The tool refuses with "RS256 needs a PEM PKCS8 private key".

Does it verify tokens too?

No, this tool only signs; verification is a separate concern this tool does not perform.

Compare

ToolRuns on the CLILive as you type
JWT signYesYes
JWT decode / verifyYesYes
UUID v4 generatorYesNo
ULID generatorYesNo
NanoID generatorYesNo
Mock / random data generatorYesNo
UUID / ULID inspectorYesYes

Related Dev tools