Solved.tools: Free Online Calculators & Tools

We use cookies for analytics and advertising. Learn more about our cookie policy

JWT Decoder

Last updated: 27 June 2026

Reviewed by Gavin Meiring, Lead research and primary author ยท Doctoral Candidate (Corporate Governance) ยท Research and drafting assisted by AI

Decoding happens entirely in your browser. Never paste production secrets here.

โœ…Token valid โ€” expires in 2280684h 33m
Header
algHS256
typJWT
Payload
sub(Subject)1234567890
nameJohn Doe
iat(Issued at)1516239022 (18 Jan 2018, 03:30)
exp(Expires)9999999999
Signature
SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

Signature verification requires the secret or public key โ€” this tool decodes only; it does not verify.

Was this helpful?


JWT Decoder

A JWT decoder splits a JSON Web Token into its three parts and displays the decoded header, payload, and signature in readable JSON format. It is used by developers, security engineers, and API testers who need to inspect the contents of a JWT during development, debugging, or security review without writing custom code.

How to Use the JWT Decoder

  1. Obtain a JWT token from your authentication response, browser storage, or API client.
  2. Paste the full token string into the input field.
  3. Click the decode button.
  4. The tool displays the decoded header, payload, and raw signature in separate panels.
  5. Review the claims, expiry time, and algorithm to verify the token contents.

The Formula

A JSON Web Token (JWT) is defined by RFC 7519. It consists of three Base64URL-encoded parts separated by dots:

header.payload.signature

The header is a Base64URL-encoded JSON object specifying the token type and signing algorithm: {"alg": "HS256", "typ": "JWT"}

The payload is a Base64URL-encoded JSON object containing claims. Standard claims include:

  • sub (subject): identifies the principal (typically a user ID)
  • iss (issuer): the entity that issued the token
  • exp (expiration time): a Unix timestamp after which the token is invalid
  • iat (issued at): the time the token was issued
  • aud (audience): the intended recipients

The signature is computed as: HMACSHA256(base64UrlEncode(header) + "." + base64UrlEncode(payload), secret)

Or an equivalent algorithm such as RS256 (RSA + SHA-256) for asymmetric signing.

Decoding the header and payload requires only Base64URL decoding, which any tool can do. Verifying the signature requires the secret key or public key, which should never be entered into an untrusted online tool.

Real-World Example

During API development, a colleague reports that their authentication is failing. They share their JWT:

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiZXhwIjoxNzE3MDAwMDAwfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

Pasting this into the JWT decoder reveals:

Header: {"alg": "HS256", "typ": "JWT"}

Payload: {"sub": "1234567890", "exp": 1717000000}

Converting the exp value (1717000000) to a date shows the token expired in May 2024. The token is rejected because it has expired, not because of an authentication bug.

Security Considerations

A JWT decoder only decodes the token; it does not verify the signature. Do not paste tokens containing sensitive user data or production secrets into public online tools. Use your own development environment or a trusted internal tool for sensitive tokens. Remember that JWT payloads are encoded, not encrypted: anyone who intercepts a JWT can read the payload without knowing the secret key. Sensitive information should never be placed in a JWT payload unless the token is also encrypted (a JWE rather than a JWS).

Frequently Asked Questions

Is it safe to decode a JWT in an online tool? For development tokens and non-sensitive test data, yes. For tokens from production environments containing real user data, decode them locally using a library or command-line tool. The payload of a JWT is only Base64URL-encoded, not encrypted, so it is readable by anyone who has the token.

Can the decoder verify the signature? Most online decoders display the signature but do not verify it, because verification requires the signing secret or public key. Some tools offer signature verification if you paste in the key, but sharing your signing secret with a third-party website is a security risk.

What does "algorithm none" in the header mean? An algorithm value of none means the token has no signature. This is a known vulnerability vector: some poorly implemented JWT libraries accept unsigned tokens. Never configure a JWT library to accept the "none" algorithm in a production environment.

What is the difference between JWT and OAuth? OAuth is an authorisation framework that defines how tokens are issued and used. JWT is a token format that is commonly used within OAuth flows, particularly as an access token or ID token. OAuth can use JWT tokens, but JWT can also be used independently of OAuth.


Understanding the Jwt Decoder

The Jwt Decoder is one of the most-requested tools in the jwt decoder category because it condenses a calculation that would otherwise require manual work, a spreadsheet, or a specialist program into a single input-and-output step. whether you are a student, a professional, or a curious learner, the Jwt Decoder is designed to deliver a quick and trustworthy answer without forcing you to install anything or sign up for an account. Behind the scenes, the Jwt Decoder applies well-established mathematical or scientific formulas to the values you provide. the aim of Jwt Decoder is to remove the friction of hand calculation while still showing you the underlying method, so you can confidently interpret the result. Every calculation is performed locally in your browser, which means your inputs never leave your device.

When Should You Use the JWT Decoder?

Use the JWT Decoder whenever you need a quick, reliable answer that fits the tool's scope. Common situations for the JWT Decoder include homework problems, workplace tasks, financial planning, fitness or health tracking, and everyday curiosity. If the JWT Decoder answer will be used for a decision that has legal, medical, or financial consequences, treat the result as a starting point and verify it with a qualified professional. The JWT Decoder is free to use, requires no sign-up, and works on any device with a modern browser. You can run the JWT Decoder as many times as you like, change the inputs, and compare results side by side.

Common Inputs and How to Choose Them

Most JWT Decoder problems revolve around a small set of inputs.

  • Obtain a JWT token from your authentication response, browser storage, or API client is usually the first value to pin down for the JWT Decoder.
  • Paste the full token string into the input field sets the context the JWT Decoder needs for a sensible result.
  • the decode button refines the JWT Decoder output where the data is available. Identifying the right values is the most important step for the JWT Decoder, because the answer is only as accurate as the data you put in. If a value is unknown, prefer a conservative estimate over a guess when using the JWT Decoder.

How to Interpret the Result

The numerical answer from the JWT Decoder alone is rarely the whole story. Read the units, the precision, and any warnings shown alongside the JWT Decoder result. Understanding the path from inputs to output in the JWT Decoder makes it easier to spot errors, communicate the result to others, and reuse the method for related problems in the future.

Worked Examples

A typical JWT Decoder run takes reasonable inputs, produces a sensible answer, and returns it in a single click. Example: During API development, a colleague reports that their authentication is failing. They share their JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiZXhwIjoxNzE3MDAwMDAwfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c Pasting this into the JWT decoder reveals: Header: {"alg": "HS256", "typ": "JWT"} Payload: {"sub": "1234567890", "exp": 1717000000} Converting the exp value

Common Mistakes to Avoid

Common mistakes with the JWT Decoder:

  • Mixing up units (for example, entering one unit when the JWT Decoder expects another).
  • Forgetting to convert percentages to decimals or vice versa where the JWT Decoder formula requires it.
  • Using a snapshot value that no longer reflects reality for the JWT Decoder, especially for time-sensitive inputs like prices, rates, or counts.
  • Rounding intermediate steps too early and then carrying the rounded value forward in the JWT Decoder.
  • Treating the JWT Decoder as a substitute for professional advice when the decision is high-stakes.

Limitations and Assumptions

No calculator is a perfect model of reality, and the JWT Decoder is no exception. The JWT Decoder makes simplifying assumptions to keep the math tractable: it ignores rare cases, applies default values where inputs are missing, and uses formulas that suit the typical situation rather than the exotic one. When your situation falls outside the typical case, the JWT Decoder result may drift further from the truth. If you need a more precise answer than the JWT Decoder provides, the next step is usually a specialist, a more detailed reference, or a domain-specific tool.

For more depth on the JWT Decoder topic, consult textbooks, academic papers, or reputable online resources. Reputable sources for the JWT Decoder include government statistics agencies, university extension services, and peer-reviewed journals. Wikipedia is a useful starting point for definitions and formulas behind the JWT Decoder, but always follow the citations to the original source before relying on a number. If you find that you need the same JWT Decoder calculation repeatedly, consider writing down the inputs and the result in a note so you can build a personal record over time.

Quick Reference

  • Free to use: yes, no sign-up required.
  • Privacy: all calculations run locally in your browser.
  • Units: metric and imperial supported where applicable; check the input labels.
  • Speed: instant, no page reload.
  • Mobile friendly: yes, works on phones and tablets.
  • Offline: once the page has loaded, the calculation continues to work without a network connection.

References - General-purpose math references such as Wolfram MathWorld and Khan Academy for foundational formulas.

  • Wikipedia articles on the relevant topic, with citations to primary sources, cover the JWT Decoder background.
  • Peer-reviewed journals and textbooks give the most rigorous treatments of the JWT Decoder method.Tools/tools/calculator) - Percentage Calculator - Unit Converter

Also try these free tools: