Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>JWT PreviewNew to Visual Studio Code? Get it now.
JWT Preview

JWT Preview

Beata Humeniuk

|
18 installs
| (0) | Free
A clear, readable view of JWT token contents.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JWT Preview

A Visual Studio Code extension for viewing JWT token contents in a clear, readable format. Copy a token, paste one, or select one in the editor to inspect its Header and Payload as readable JSON, with standard claims formatted for quick reading. If you have the signing key, the panel can also check the signature — without sending anything anywhere.

The JWT Preview panel showing a decoded synthetic token

Privacy

No telemetry. No network requests. Tokens and keys are never stored. The clipboard is read only when you run a command, and never written to.

Decoding and signature verification both run on your machine, so nothing you paste in leaves it. See SECURITY.md for the full scope.

Features

  • Live decoding as you type or paste.
  • Picks up a token straight from the clipboard or the editor selection.
  • Header and Payload rendered as a collapsible JSON tree; the Signature segment is displayed as-is.
  • Standard claims formatted where present: exp, iat, nbf, iss, sub, aud — with UTC timestamps, relative times, and expiration status.
  • Correct Base64URL and UTF-8 handling, including non-Latin characters.
  • Optional signature verification against a key you supply (see below).
  • Follows the editor theme (light, dark, high contrast).

Verifying a signature

Verification is optional. Leave the key field empty and the extension only decodes and displays. Paste a key into it and the panel reports whether the signature matches.

Supported algorithms:

Family Algorithms Key to supply
HMAC HS256, HS384, HS512 the shared secret, as text or Base64
RSA RS256, RS384, RS512, PS256, PS384, PS512 an RSA public key
ECDSA ES256, ES384, ES512 an EC public key on P-256, P-384 or P-521
EdDSA EdDSA an Ed25519 or Ed448 public key

Public keys are accepted as PEM — a PUBLIC KEY, an RSA PUBLIC KEY, or a CERTIFICATE to read the key from — as a JWK, or as a JWK Set, in which case the key matching the token's kid is used. A PEM private key also works; the public half is derived from it.

A result of signature valid means the token was signed by the key you supplied and has not been altered since. It is not a full validity check: the exp and nbf claims are displayed with their status, but they are not enforced, and neither the issuer nor the audience is checked against anything. Tokens with no signature — including alg: none — are reported as unsigned rather than as valid.

The algorithm is taken from the token's own header, as in any token viewer, so a result here tells you whether the token matches a key you already trust. It is a reading aid rather than an authentication decision, and no substitute for verification inside the system that consumes the token.

What it does not do

It cannot fetch a key for you: a jku or x5u URL in a token header is ignored, and a JWKS has to be pasted in rather than downloaded. It does not enforce claims, and it does not sign or create tokens.

Usage

Copy a token, open the Command Palette (Ctrl/Cmd+Shift+P), and run JWT: Open Preview. If the clipboard holds something shaped like a JWT, it is decoded straight away; otherwise paste a token into the input field.

To decode a token that is already in your editor: select it, right-click, and choose JWT: Decode Selected Token. With nothing selected, this command falls back to the clipboard as well.

To check a signature, paste the key or secret into the Verify signature field below the token; the result appears directly underneath it. Leaving that field empty skips verification entirely.

Installation

Install "JWT Preview" from the Visual Studio Code Marketplace, or download a .vsix from the repository's Releases page and install it via Extensions: Install from VSIX....

Feedback and security

  • Bugs and feature requests: GitHub Issues
  • Security issues: see SECURITY.md — please never include real tokens in reports.

License

MIT — see also the changelog.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft