Skip to content
Toolars
Explore

JWT Encoder / Decoder

Decode, sign, and verify JWTs across HS256-512, RS256-512, and ES256-512, with exp/nbf checks — keys and tokens never leave the tab.

Local processing

Processing details

Tool inputs are processed on your device.

Resources may be downloaded to run this tool. Account services are separate.

Preparing offline use…

Privacy information
Report bug

Task path / input to outcome

How to decode, sign, and verify a JWT

  1. 01

    Pick the operation

    Choose Decode to inspect untrusted claims, Sign to create a token, or Verify to check a token with your selected algorithm and key.

  2. 02

    Paste the token or write the payload

    For Decode and Verify, paste the compact three-segment token into Compact JWT, up to 64 KiB. For Sign, write the claims as a JSON object in JSON payload, up to 32 KiB; anything that is not a JSON object is refused.

  3. 03

    Load a sample to explore

    Press Load sample to see the full workflow with safe material: Decode gets a readable HS256 token, HMAC modes get a demonstration token with its secret, and asymmetric modes load a payload so you can paste your own matching key.

  4. 04

    Select the algorithm and key

    In Sign and Verify, choose an Algorithm from the HMAC, RSA, or ECDSA groups. HS algorithms take a Shared secret of at least 32 UTF-8 bytes for HS256 (48 for HS384, 64 for HS512); RS and ES take a PEM-encoded PKCS8 private key for signing or an SPKI public key for verification, up to 16 KiB.

  5. 05

    Run and read the verdict

    Run the selected operation. Decode displays untrusted header and payload data; Sign produces a compact token. Verify checks the signature and any exp/nbf conditions at the displayed browser time. Read the time cards and specific failure message, then correct the input and run again.

  6. 06

    Copy, download, and clean up

    Copy result puts the token or decoded JSON on the clipboard, and Download saves toolars-jwt.txt or toolars-jwt.json. Keys stay in memory: switching modes or algorithms clears the key field, and Reset clears the current inputs and keys. Reset does not remove output already handed to another tool; see the privacy FAQ.

Tool facts

Processing
In your browser
Input leaves this device
Never
Retention
Optional local handoff
Price
Free

Your input stays in the browser.

JWT Encoder/Decoder uses its verified local execution path and does not create a hidden input or output history.

Local execution

Runs inside the current browser tab.

No hidden processing

Active tool data never becomes a Toolars document record.

No account required

Use the core workflow without creating a profile. Favorites sync to your account after you sign in.

Workspace and handoff

Closing the tab clears normal workspace data. If you choose a handoff, the selected result stays on this device across reloads and tab closes, and can be accepted for 30 minutes. Accepting or dismissing removes it; expired records are cleared the next time the handoff feature is used.

What JWT Encoder/Decoder actually does

A login flow returns a token the API keeps rejecting, and the first question is what the claims actually say: Decode shows the header and payload in seconds. Later, a development service needs a short-lived test token signed with a local secret, and a staging key has to be checked against tokens that fail verification. JWT Encoder / Decoder reads, signs, and verifies tokens entirely in the browser. Production tokens and key material are pasted into a page that transmits nothing, and the keys never even touch browser storage.

Common questions

Which algorithms are supported?
HS256, HS384, and HS512 with a shared secret; RS256, RS384, and RS512 with PKCS8 and SPKI keys; ES256, ES384, and ES512 on their standard curves. Unsecured alg:none tokens are disabled, and Verify refuses a token whose header algorithm differs from the selected one.
Does decoding prove a token is genuine?
No. Decode only reads the token. Even a successful Verify result does not establish issuer identity, intended audience, revocation status or permission to use the token in an application.
What are the limits and key requirements?
Tokens up to 64 KiB, payloads up to 32 KiB, and keys or secrets up to 16 KiB. HMAC secrets must be at least 32, 48, or 64 UTF-8 bytes for HS256, HS384, and HS512; RSA and ECDSA keys must be PEM-encoded PKCS8 private keys for signing or SPKI public keys for verification.
What does Verify actually check?
Verify uses your selected algorithm and key, the browser clock and zero clock tolerance. exp and nbf are checked only when present; iat is not an age limit. Issuer, audience, key ownership, revocation and application rules are not checked. This is a snapshot, not an authorization decision. HMAC uses the exact UTF-8 secret, including spaces, without Base64 decoding.
Why is my key or secret rejected?
Three checks run before any cryptography: HMAC secrets must reach the minimum byte length for the chosen HS algorithm, private keys must be PEM-encoded PKCS8 values beginning with BEGIN PRIVATE KEY, and public keys must be SPKI values beginning with BEGIN PUBLIC KEY. Keys over 16 KiB are refused, and an ECDSA key must sit on the curve its ES algorithm names.
Are tokens or keys uploaded or stored?
Tokens and keys are processed locally without upload. The signing engine loads on demand; keys stay in component memory and are not written to browser storage or logs. Reset clears current inputs and keys. If you explicitly hand output to another tool, that output is saved in local browser storage. Resetting, reloading or closing the workspace does not remove this pending copy. Receiving or dismissing the handoff deletes it; after 30 minutes it can no longer be received.

Related tasks, not a dead end.

Move into another focused workspace without returning to the full index.

URL Workbench

Clean URL lists with signed-link protection and per-line reasons. Compare components and export sitemaps.

Edit

JSON Explorer

Query JSONPath, extract fields and round-trip JSON Pointer records without losing large-number precision.

Inspect

JSON Schema Validator

Validate Draft 7 or 2020-12 locally with exact error paths; infer schemas from multiple observed samples.

Inspect

HTML Publishing

Clean pasted HTML for publishing while preserving lists, links and table semantics; preview changes safely.

Publish