JWT decoder & signature verifier

JWT Decoder Online – Decode, Inspect and Verify JWT Tokens

Debugging authentication issues shouldn’t require manually decoding token structures.

Captain JSON’s JWT Tokens tool helps developers decode JWT headers and payloads, inspect token information, and verify JWT signatures using supported algorithms.

Understand token contents and investigate authentication issues through one convenient developer toolkit.

  • 100% offline
  • Privacy first
  • Nothing uploaded

Part of the Captain JSON toolkit — 20+ JSON tools in one extension.

Example: a decoded JWT payload

Illustrative example
Decoded header
{  "alg": "HS256",  "typ": "JWT"}
Decoded payload
{  "sub": "1234567890",  "name": "Ada Lovelace",  "admin": true,  "iat": 1516239022,  "exp": 1516242622}
Cross Browser Support

Available Across All Major Browsers

Your JSON toolkit. Wherever you develop.

Captain JSON brings essential JSON developer utilities into your everyday browser workflow. Escape JSON strings, convert between data formats, inspect JWT tokens, work with JSONL files, validate JSON schemas, and generate code from JSON. Install Captain JSON on your preferred supported browser and access your developer toolkit from one convenient place.

Available today: Google Chrome, Microsoft Edge and Mozilla Firefox. More browsers are coming soon.

What is a JWT decoder?

A JWT decoder reads the three parts of a JSON Web Token — header, payload and signature — so you can inspect them. Decoding is not verification: only checking the signature with the right key shows a token is genuine. Captain JSON’s JWT Tokens tool decodes tokens, inspects claims and verifies signatures for HS256, HS384, HS512, RS256, RS384, RS512, ES256, ES384 and ES512.

About Captain JSON: Captain JSON is a browser extension by PiratesOfBugs that provides JSON developer utilities including JSON comparison, formatting, pretty printing and validation.

Features

JWT decoder features

Everything the JWT Tokens tool offers, from decoding to signature verification and token generation.

  • Decode JWT Header, Payload & Signature

    Split a token into its three parts and read each one.

  • Verify JWT signature

    Check a signature against the key you provide.

  • Support HS256, HS384 & HS512

    HMAC signatures with SHA-256, SHA-384 or SHA-512.

  • Support RS256, RS384 & RS512

    RSA signatures with SHA-256, SHA-384 or SHA-512.

  • Support ES256, ES384 & ES512

    ECDSA signatures with SHA-256, SHA-384 or SHA-512.

  • Decode Base64URL values

    Read the Base64URL-encoded sections of a token.

  • Inspect token claims

    Examine the claims carried in the payload.

  • Validate expiration (exp)

    Check whether a token has expired.

  • Validate issued-at (iat) and not-before (nbf) claims

    Check the issued-at and not-before time claims.

  • Edit and regenerate JWT tokens

    Change a token’s contents and regenerate it.

  • Generate custom JWT tokens

    Generate your own custom JWT tokens.

  • Copy token sections individually

    Copy the header, payload or signature on its own.

Problem & solution

Understand What’s Inside Your JWT Tokens.

The problem

JSON Web Tokens (JWTs) are widely used in modern authentication and authorization systems.

When debugging authentication problems, developers often need to inspect token headers, payloads, claims, and signature verification results.

Manually decoding tokens or switching between different utilities slows down investigation.

How Captain JSON helps

Captain JSON brings JWT inspection and signature verification into one developer toolkit.

  • Decode header, payload and signature
  • Verify signatures (HS, RS and ES algorithms)
  • Runs in your browser — still, use test tokens and keys
Use cases

Perfect For

  • API Authentication

    Inspect the tokens your APIs issue and expect.

  • Security Testing

    Examine token contents and signatures during testing.

  • Token Debugging

    Find out why a token is rejected.

  • JWT Integration

    Check tokens while integrating a client or an identity provider.

  • Backend Development

    Inspect tokens while building and testing services.

How to use

How to Decode and Verify a JWT Token

  1. Step 1

    Open Captain JSON

  2. Step 2

    Navigate to JWT Tokens

  3. Step 3

    Paste your JWT token into the tool

  4. Step 4

    Inspect the decoded header, payload, and signature

  5. Step 5

    Provide the required verification key or supported inputs

  6. Step 6

    Verify the signature using a supported algorithm

  7. Step 7

    Review the verification result

Examples

JWT decoding example: token, header and payload

A sample HS256 token signed with a throw-away demo secret. It is an example, not a screenshot of the extension. Never put real tokens or secrets in documentation, tickets or chats.

Sample JWT (header.payload.signature)
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkFkYSBMb3ZlbGFjZSIsImFkbWluIjp0cnVlLCJpYXQiOjE1MTYyMzkwMjIsImV4cCI6MTUxNjI0MjYyMn0.YvOqOo02EuZsHgpEP4PcJrDnCVqEzXCLZGFKrfdtsxk

Decoded header and payload

Illustrative example

Decoding reveals the header and the claims. Checking the HS256 signature additionally needs the secret (here the demo value demo-secret-not-for-production), which is why a decoded token alone proves nothing.

Decoded header
{  "alg": "HS256",  "typ": "JWT"}
Decoded payload
{  "sub": "1234567890",  "name": "Ada Lovelace",  "admin": true,  "iat": 1516239022,  "exp": 1516242622}
Algorithms

JWT Signature Algorithms Supported

Captain JSON can verify signatures made with these algorithm families.

HMAC algorithms

Symmetric: the same secret signs and verifies.

  • HS256
  • HS384
  • HS512

RSA algorithms

Asymmetric: a private key signs; the public key verifies.

  • RS256
  • RS384
  • RS512

ECDSA algorithms

Asymmetric: a private key signs; the public key verifies.

  • ES256
  • ES384
  • ES512

Decoding a JWT is not the same as verifying its signature. Decoding only reads the Base64URL-encoded header and payload, which anyone can do. Verification uses the right key to confirm the token was signed by the expected party and has not been altered.

A decoded token is not automatically authentic or trustworthy.

Security & privacy

Inspect JWT Tokens Carefully and Safely.

JWTs often carry personal or authorization data. Treat them like credentials.

  • JWT payloads can contain sensitive information. A standard signed JWT is only Base64URL-encoded, not encrypted, so anyone who holds the token can read its claims.
  • Decoding does not prove that a token is authentic. Only signature verification with the correct key can show that.
  • Signature verification requires the appropriate key: the shared secret for HS256, HS384 and HS512, or the public key for the RSA and ECDSA algorithms.
  • Never share production tokens or private signing keys in tickets, chats, screenshots or documentation.
  • Avoid pasting live credentials into untrusted websites. Prefer test tokens and test keys wherever you can.
  • Data handling: according to Captain JSON’s product documentation, the extension runs entirely inside your browser and does not upload or store the JSON you work with. Even so, follow the practices above.
FAQ

JWT decoder: frequently asked questions

What is a JWT token?

A JSON Web Token (JWT) is a compact, URL-safe string used to carry claims between parties, most often for authentication and authorization. A signed JWT has three Base64URL-encoded parts separated by dots: a header, a payload and a signature.

How do I decode a JWT online?

Open Captain JSON, choose JWT Tokens and paste the token. The header, payload and signature are decoded and shown, and you can copy each token section individually. Decoding only reads the token; it does not prove the token is genuine.

How do I inspect a JWT header and payload?

The header describes the token, for example the signing algorithm (alg) and type (typ). The payload holds the claims, such as sub, iat and exp. Captain JSON decodes the Base64URL values so you can inspect the header, the payload and the individual token claims.

How do I verify a JWT signature?

Paste the token, provide the key your algorithm needs and run verification: the shared secret for HS256, HS384 or HS512, or the matching public key for the RSA and ECDSA algorithms. The result tells you whether the signature matches. Use test tokens and test keys, never production secrets.

What is the difference between JWT decoding and verification?

Decoding reads the Base64URL-encoded header and payload, which anyone can do without a key. Verification checks the signature with the correct key to show the token was not altered and was signed by the expected party. A decoded token is not automatically authentic.

What are HS256 and RS256?

HS256 is HMAC with SHA-256: a single shared secret both signs and verifies the token. RS256 is RSA with SHA-256: a private key signs and the matching public key verifies. The 384 and 512 variants use SHA-384 and SHA-512 instead.

What is the difference between HMAC and RSA JWT signatures?

HMAC signatures (HS256, HS384, HS512) are symmetric: the same secret signs and verifies, so anyone who can verify can also forge. RSA signatures (RS256, RS384, RS512) are asymmetric: only the private-key holder can sign, while anyone with the public key can verify. Captain JSON supports both families, plus ES256, ES384 and ES512.

Can a decoded JWT be trusted without signature verification?

No. Anyone can create a token whose payload looks legitimate. Only after the signature has been verified with the correct key — and the time-based claims such as exp and nbf have been checked — should the claims be trusted.

How do I debug JWT authentication issues?

Decode the token and check that the algorithm in the header is the one your server expects, that the claims (sub, iss, aud, roles) are what you intended, and that the time claims exp, iat and nbf make sense — Captain JSON can validate those. Then verify the signature with the right key. Typical causes are an expired token, clock skew, the wrong key or the wrong algorithm.

Everything You Need to Work With JSON. In One Toolkit.

From escaping JSON strings and converting data formats to inspecting JWT tokens, working with JSONL, validating schemas, and generating code, Captain JSON brings essential developer utilities together in one browser extension.

  • ✓ 100% Offline
  • ✓ Privacy First
  • ✓ Lightweight

We use analytics cookies to understand how the site is used. No personal data is sold. See our privacy practices before choosing.