JWT Encoder
Build and sign a JSON Web Token with HMAC — in your browser.
Algorithm
Signed in your browser with HMAC — the secret never leaves this page. Don't paste a production secret you don't control.
About JWT Encoder
A JWT encoder builds and signs a JSON Web Token from your payload and secret. Enter your claims and a secret, pick HS256, HS384, or HS512, and it generates a signed token with HMAC. Signing runs entirely in your browser, so your secret is never transmitted — ideal for creating test tokens for API development.
Frequently asked questions
- Which algorithm should I choose — HS256, HS384, or HS512?
- HS256 is the common default and interoperates everywhere. HS384 and HS512 use larger HMAC digests if your system requires a stronger margin. All three are symmetric (HMAC), signed with the same secret used to verify.
- Is my signing secret safe?
- Yes. The token is signed in your browser — your secret and payload are never sent to a server. Still, avoid pasting a production secret you don't want on a client at all; use throwaway secrets for testing.
- Can I decode the token I create?
- Yes — paste it into the JWT Decoder to inspect its header and payload and confirm the claims came through as expected.
- Does this support RS256 or other RSA/ECDSA algorithms?
- No. This encoder signs with symmetric HMAC (HS256, HS384, HS512) only. RS256 and ES256 use asymmetric key pairs and aren't supported here.
More tools
All Developer ToolsUnit ConverterAWG to mm²NetToolkitClick CounterClick TestTyping Speed TestReaction Time TestKeyboard TesterDead Pixel TestMic TestWebcam TestPassword GeneratorPassword Strength CheckerID GeneratorStopwatchTimerCountdown to DateTodo ListOnline NotepadWheel SpinnerRandom Number GeneratorCoin FlipDice RollerWord CounterJSON FormatterJSON VisualizerCSV to JSONYAML to JSONSQL FormatterCron Expression GeneratorChmod CalculatorQR Code GeneratorBarcode GeneratorPercentage CalculatorGPA CalculatorGrade CalculatorScientific CalculatorAge CalculatorRoman Numeral ConverterBase64 Encode / DecodeNumber Base ConverterText to BinaryMorse Code TranslatorSymbols & EmojiCase ConverterText to SpeechText RepeaterFancy Text GeneratorHash GeneratorURL Encode / DecodeUnix Timestamp ConverterTime Zone ConverterColor PickerColor ConverterLorem Ipsum GeneratorBMI CalculatorBMR & Calorie CalculatorTip CalculatorJWT DecoderRegex TesterUTM BuilderSERP SimulatorOpen Graph GeneratorDynamic QR Code GeneratorSlugifyText DiffRemove Duplicate LinesDiscount CalculatorSales Tax CalculatorLoan CalculatorCompound Interest CalculatorMortgage CalculatorTime Duration CalculatorContrast CheckerGradient GeneratorBox Shadow GeneratorBorder Radius GeneratorFlexbox & Grid GeneratorPalette GeneratorTints & ShadesImage to Base64Aspect Ratio CalculatorImage ResizerHEIC to JPGAVIF to JPGAVIF to PNGFavicon GeneratorInvoice GeneratorPDF ToolsRotate PDFDelete PDF PagesReorder PDF PagesAdd Page NumbersWatermark PDFPDF to JPGPDF to Text

