JWT Signer
Create a signed JSON Web Token with HMAC SHA-256, SHA-384 or SHA-512. Encode the header and payload and sign it from a secret, entirely in your browser.
algorithmsecret
payload (json)5 ln / 63 ch
signed token
readyhmac only / secret never leaves this page
local / nothing uploadedAbout this tool
Create a signed JWT locally. Paste a JSON payload, choose HS256, HS384 or HS512, enter the secret, and copy the finished token. The secret is used only in the page and is never stored or sent.
How to use it
- Paste your payload as JSON.
- Pick the HMAC algorithm.
- Enter the signing secret.
- Press Sign and copy the token.
Examples
A minimal token
{"sub":"123","name":"Ada"}eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.…
Limits and notes
- Only HMAC algorithms are supported; RS256 and ES256 need a private key.
- The secret is held in memory for the life of the tab.
Frequently asked questions
- Can I verify a token here?
- Not on this page. Use the JWT Decoder to inspect one, and verify signatures in code you control.
- Is the payload encrypted?
- No, it is base64url encoded and readable by anyone holding the token.
- Which exp should I set?
- exp is a number of seconds since the Unix epoch. Many libraries reject a token without one.
- Why does my server reject the signature?
- Common causes are a secret mismatch, a different algorithm, or padding added to the signature segment.
Want the details? Read the full guide: Signing a JWT and Understanding What You Prove.
Related Tools
Base64 Encoder/DecoderEncode and decode Base64 strings safely. Supports full UTF-8 characters, emojis, and binary data. Ideal for debugging data URLs or API authentication headers.
URL Encoder/DecoderPercent-encode and decode URLs. Safely escape query parameters, path segments, or full URLs to ensure they are valid and won't break during browser routing or API requests.
JWT DecoderDecode JSON Web Tokens to inspect the header and payload. Debug authentication flows, check expiration times, and view user roles without verifying the signature.
Env ValidatorCheck a .env file for duplicate keys, unclosed quotes, unquoted spaces and placeholder secrets before they break a deploy. Reports the line number of each problem.
JSON ValidatorValidate JSON syntax with detailed error messages. Catch trailing commas, missing brackets, and syntax errors instantly before sending payloads to your API.
JSON FormatterBeautify, validate, minify, and view JSON. Format messy API responses into readable code or compress it to save bandwidth, running safely in your browser.
JSON MinifierCompress JSON to a single line. Remove all unnecessary whitespace and line breaks to reduce payload size for production APIs without altering the underlying data.
JSON ViewerView JSON in an interactive, collapsible tree structure. Easily navigate massive API responses, expand specific nodes, and inspect deeply nested objects or arrays.