Write the claims as JSON, choose an HMAC algorithm and a test secret, and get a signed JSON Web Token — with iat and exp added if you want the token to expire. It is the quickest way to produce tokens for negative tests: expired, wrong audience, wrong issuer or signed with the wrong key. Signing happens with the browser's Web Crypto API.
Test secrets only
Use a secret made for testing. A real signing key pasted into any web page, this one included, should be treated as exposed and rotated. The page warns when a secret is shorter than the hash output, which is the minimum key size the JWT security best practices call for.
Tokens worth generating
One that expired a minute ago, one valid but for another audience, one signed with a different secret, and one with alg none — four tokens that each must be rejected. An API that accepts any of them has a security bug, not a test failure.
Why only HMAC
RS256 and ES256 need a private key, and the sensible place for a private key is not a web page. For asymmetric tokens, issue them from your identity provider's test tenant, or from the Auth Playground here.
curl converter — Paste a curl command, get the same request in nine languages — fetch, axios, Python, Go, C#, RestAssured, Playwright, k6 and HTTPie.
JWT decoder — Paste a JSON Web Token to read its header and claims, and see whether it has expired. Nothing leaves the page.
HMAC signature verifier — Check a webhook signature against the payload and the shared secret, with HMAC-SHA256, SHA-1 or SHA-512. Nothing leaves the page.
JSON formatter — Pretty-print, minify, sort keys and validate JSON, with the line and column of the first error. Nothing leaves the page.
Base64 encoder / decoder — Encode text to Base64 or base64url and decode it back, UTF-8 safe, with a hex view for binary data. Nothing leaves the page.
UUID generator — Generate random UUID v4 or time-ordered UUID v7 values in bulk, and inspect any UUID’s version and creation time. Nothing leaves the page.
Unix timestamp converter — Convert Unix timestamps to dates and back, with automatic seconds / milliseconds detection. Nothing leaves the page.
JSON diff — Compare two JSON documents by path — added, removed, changed and type-changed values, ignoring key order. Nothing leaves the page.
JSON Schema generator — Infer a draft 2020-12 JSON Schema from a sample response — types, required fields, array items and common formats. Nothing leaves the page.
JSONPath tester — Run a JSONPath expression against your JSON and see every match with its path — wildcards, slices, filters and recursive descent. Nothing leaves the page.
Cron expression explainer — Turn a cron expression into plain English and see its next run times in UTC — steps, ranges, lists, names and macros. Nothing leaves the page.
Regex tester — Test a JavaScript regular expression against sample text and see every match, group and named group, with catastrophic patterns stopped safely. Nothing leaves the page.
OpenAPI linter — Check an OpenAPI 3.0/3.1 spec (JSON or YAML) for broken $refs, undeclared path parameters, duplicate operationIds and missing responses. Nothing leaves the page.