Skip to content
86% off$349 $48.86code BF2026

Guides

Is it safe to paste a JWT into jwt.io? Decode on your Mac

Auth0 says jwt.io decodes in your browser, but a live token is still a credential. When it's fine, when to skip it, and how to decode JWTs offline on a Mac.

GuideUpdated 8 min read

On this page

You have a JWT on your clipboard, the first search result is jwt.io, and you wonder whether pasting a real token there is a mistake. It is a fair worry, and the answer depends on what the token is.

Why people doubt jwt.io

jwt.io is Auth0's free web debugger that can decode, verify and generate JWTs (as of November 2026). The statement most people rely on comes from an Auth0 staff reply on the Auth0 community forum, from about March 2026: "All JWT decoding and signature verification occurs locally within your browser." Tokens are not sent to Auth0 servers.

The doubt comes from three places:

  • The redesign dropped the notice. The redesigned site removed its on-page note that decoding happens locally. A user asked for it back, writing: "This makes me doubt whether the approach has changed." Staff confirmed the behavior had not changed.
  • The URL question. An issue in jwt.io's own GitHub repository (issue #700) lists this concern: "Passing a token to the site via the URL query parameters has created concerns about the token's privacy."
  • The older objection. A 2020 Hacker News thread titled "Why I Actively Discourage Online Tooling like jwt.io and Online JSON Validators" drew 202 points and 164 comments. Pasting secrets into web tools has been argued about for years.

So the claim comes from the people who run the site, and the page itself no longer states it. A web page's code can also change between visits, so you are trusting whatever is served that day.

What is actually at risk when you paste a token

The payload of a normal signed JWT is only Base64URL-encoded, not encrypted. Anyone holding the token can read it, which is why decoding needs no secret. The danger is replay: until a live access token expires or is revoked, whoever has it can usually present it as you.

Decoding also does not prove a token is genuine. Only verifying the signature with the right secret or public key does that.

What you're about to pasteWeb decoder OK?
An expired token, or one from a test environmentFine. Nothing of value is exposed.
A live production access or ID tokenAvoid. Decode it locally.
An HMAC secret or private key (to verify or sign)Don't. A signing secret is worse to leak than any single token.
A link that carries the token in the URLAvoid. URLs can end up in browser history and logs.

Decode a JWT in Terminal (nothing to install)

This uses built-in macOS commands. It decodes the payload of the token on your clipboard and does not verify the signature.

bash
p=$(pbpaste | cut -d. -f2 | tr '_-' '/+')
while [ $(( ${#p} % 4 )) -ne 0 ]; do p="$p="; done
printf '%s' "$p" | base64 -d; echo
unset p

pbpaste reads the clipboard, cut takes the second dot-separated segment (the payload), tr converts the URL-safe alphabet to standard Base64, the loop restores the = padding JWTs leave out, and base64 -d decodes it. Nothing on your Mac is changed, so there is nothing to undo. The token stays out of your shell history because you never type it into the command.

  • Change -f2 to -f1 to decode the header instead. Remove any Bearer prefix from the clipboard text first.
  • The output is one line of raw JSON. Times such as exp are Unix seconds, and date -r 1700000000 turns one into a date. See how to convert a Unix timestamp on Mac.

This is enough for a quick look. It gives you no pretty-printing, no expiry check and no signature verification.

Decode and verify a JWT in Bytepliers

Bytepliers is a native Mac app with 41 offline developer tools. It requires macOS 14 Sonoma or later.

  1. Open Bytepliers and press ⌘4 (Command-4) to open JWT Decoder.
  2. Paste the token into the Token pane. A Bearer prefix is fine.
  3. Read the Header and Payload panes. Badges show Expired, Not Yet Valid, Valid or No Expiry, along with alg and the iat, nbf and exp times with relative times.

A token with alg: none is labeled "Unsigned". Nothing signs that token, so be suspicious of it anywhere you expect a signature.

Verify the signature

In the Signature pane, choose one of two inputs:

  • Secret, with the encoding set to UTF-8, Base64 or Hex. This is for HMAC-signed (HS) tokens.
  • Public key, as PEM (PUBLIC KEY, RSA PUBLIC KEY or CERTIFICATE), bare Base64 DER, or a JWK or JWK Set (matched by kid). This is for RS, PS, ES and EdDSA tokens.

The result reads "Signature verified", "Invalid signature", "Unsigned token", "Unsupported alg …" or "Key not usable". Keys stay in memory only and are cleared when you leave the tool, unless you turn on Remember keys, which is off by default and keeps them only until you quit the app. Keys are never saved to disk either way.

Make a test token instead of pasting a real one

The Encode tab signs tokens with HS256/384/512, RS256/384/512, PS256/384/512, ES256/384/512 or EdDSA (Ed25519), using a Secret or a Private key. The Claims menu has "Set iat to Now" and "Set exp to 1 Hour from Now". A throwaway token shaped like your app's tokens covers many cases where you would otherwise paste a real one. Verify in Decoder checks the result.

Decode from any app with the Quick Panel

Copy the token, then press ⌥⌘B (Option-Command-B), the default global hotkey (change it in Settings ▸ Shortcuts). The Quick Panel auto-detects a JWT and shows the payload with the algorithm, dates and status. Press ⏎ to copy the result, ⌘O to open it in Bytepliers, or ⎋ to close.

The one-keystroke ⌥⇧⌘B (Detect & Replace Clipboard) replaces the clipboard with the payload JSON, overwriting the token. Undo it with Tools ▸ Restore Previous Clipboard. See Quick Panel, Instant Replace and the menu bar.

Command line and Finder

Bytepliers ships a bytepliers command that makes no network requests and works with the app closed. Install it from Settings ▸ Integrations ▸ Command-Line Tool ▸ Install…, open the app once, then run:

bash
pbpaste | bytepliers jwt
pbpaste | bytepliers jwt --header

The first prints the payload, the second the header. Piping from pbpaste keeps the token out of shell history. Details are in the command-line docs.

For .jwt files, select one in Finder and press Space. The Quick Look extension shows the algorithm, a validity badge and the header and payload, labeled "Signature not verified". It is sandboxed with no network access. See Quick Look previews.

What Bytepliers does with the token

  • No network for decoding. The tools make no network requests. The app contacts Polar for license checks and macsuite.app for updates, and has no analytics or telemetry.
  • No history by default. Input in JWT Decoder is not recorded unless you turn on Settings ▸ History ▸ Also record inputs that look like secrets. Signing and verify keys are never in history.
  • Concealed copies. Copies from JWT Decoder are marked concealed, so clipboard managers that honor the convention (Paste, Maccy, Raycast, Alfred, 1Password) don't store them.
  • The original copy. The token you copied from elsewhere stays on the clipboard until you replace it, and Bytepliers can't control what other apps do with it.

How the methods compare (as of November 2026)

jwt.ioTerminal one-linerBytepliers
Decodes header and payloadYesYes (raw JSON)Yes, with expiry badges
Verifies a signatureYesNoYes, secret, public key or JWK
Signs test tokensYesNoYes (Encode tab)
Needs a connectionYes, a web pageNoNo for the tools
Token sent off your MacNot to Auth0 servers, per Auth0 staffNoNo
PlatformsBrowsermacOSMac only
CostFreeFreePart of MacSuite: $349 one-time, 7-day trial

Pick jwt.io for an expired or test token when you don't want to install anything. Pick the Terminal command for a quick payload check. Pick Bytepliers if you handle live tokens regularly or want signature verification without pasting keys into a browser.

If you already pasted a live token somewhere

If you can't be sure where it went, treat it as exposed. Revoke it or let it expire, and sign in again so a new one is issued. If it was a signing secret or private key, rotate it through whatever system issues your tokens.

Checklist before pasting a token anywhere

  • It is expired or from a test environment.
  • It is not a signing secret, private key or password.
  • It is not inside a URL.
  • You would be fine if the page's code changed tomorrow.

If any line is false, decode locally.

If it doesn't work

  • Quick Panel says "Nothing recognised on the clipboard." Copy the whole token, all dot-separated parts, or open JWT Decoder with ⌘4 and paste directly.
  • "Invalid signature" on a good token. Check that the Secret encoding (UTF-8, Base64 or Hex) matches how your secret is stored.
  • "Key not usable". Use one of the accepted formats, and a public key, not a private one.
  • "Unsupported alg …". The decoder can't verify that algorithm.
  • "Open Bytepliers once to enable the command-line tool." Launch the app once, then retry. If the command isn't found after installing to ~/.local/bin, add that folder to your PATH.
  • "Bytepliers needs a license or an active trial." The 7-day trial ended. Use Enter License… in the app menu.

If none of this helps, contact support through the support page with this message:

text
Bytepliers JWT Decoder problem.
Version: (Bytepliers > About)
macOS: 
What I did: pasted a token into JWT Decoder / ran `bytepliers jwt`
Exact message shown: 
Algorithm of the token (alg header): 
Steps already tried: 

Never include the token or secret itself. More messages are in Troubleshooting Bytepliers.

Common questions

Do I need the secret to decode a JWT?

No. The header and payload of a standard signed JWT are only encoded, so they decode without a key. You need the secret or public key only to verify the signature. For a longer walkthrough, see how to decode a JWT token on Mac.

Can Bytepliers verify a token against a JWKS URL?

No. The tools make no network requests, so you paste a JWK or JWK Set into the Public key field yourself.

Can I decode a JWT with Wi-Fi off?

Yes. The decoder needs no connection. Activating and re-checking a license do, and a licensed app keeps working offline for up to 7 days between checks.

Bytepliers is part of MacSuite; you can try it free for 7 days.

Every app.
One purchase.