Quick answer
To decode a JWT online, paste a dummy, redacted, or non-sensitive token into the JWT Decoder and inspect the decoded header and payload as readable JSON. Use the result to understand claims such as exp, iss, aud, and sub, but do not treat decode-only output as proof that the token is authentic. Signature verification must happen in a proper verification workflow.
Decode a safe JWT for inspectionWhat a JWT decoder shows
A JWT usually has three dot-separated parts: header, payload, and signature. The header describes the token type and algorithm. The payload contains claims. The signature is used to check whether the token was signed as expected.
The readable header and payload are commonly Base64URL-encoded, which means they can often be decoded into text. That is why a JWT payload should not be treated as secret by default. If the decoded payload contains JSON, JSON Formatter can help inspect nested claim structure after decoding.
Fast workflow using JWT Decoder
- Open the JWT Decoder.
- Use a dummy, redacted, local-development, or non-sensitive token whenever possible.
- Decode the token and inspect the header and payload separately.
- Check common claims such as exp, iss, aud, sub, iat, and scope as information, not proof of trust.
- Use server-side verification or a proper security workflow when authenticity matters.
If a token is copied from a production browser session, support ticket, or customer environment, stop and redact it first. JWTs can expose readable claims and may also act as live credentials depending on the system.
Practical example: decode JWT structure
Use a dummy token-like example for learning. The structure below is only for inspection practice and should not be used as a real credential.
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJkZW1vLXVzZXIiLCJpc3MiOiJleGFtcGxlLWFwcCIsImF1ZCI6ImRlbW8tYXBpIiwiZXhwIjoxNzAwMDAwMDAwfQ.demo-signature{
"alg": "HS256",
"typ": "JWT"
}{
"sub": "demo-user",
"iss": "example-app",
"aud": "demo-api",
"exp": 1700000000
}The decoded JSON helps you read the token claims. It does not prove that the signature is valid, that the token has not been tampered with, or that your application should trust it.
Mini decision rule
Common JWT decoding cases
- Debugging authentication flows in a local or development environment.
- Checking whether an expiry claim is present and whether the timestamp looks plausible.
- Inspecting non-sensitive development tokens to understand header and payload structure.
- Reading claims during QA troubleshooting without exposing production secrets.
- Comparing decoded claims with API behavior when a request succeeds or fails.
- Learning what common claims such as exp, iss, aud, sub, iat, and scope represent.
For raw Base64 or Base64URL fragments outside a JWT, compare with Base64 Encoder Decoder. For one-way fingerprints or digests, use Hash Generator instead of a decoder.
Best practices for decoding JWTs safely
- Use dummy, redacted, or local-development tokens whenever possible.
- Do not paste live production JWTs that may contain credentials, private claims, or access rights.
- Remember that decoding does not verify the signature or prove the token is trusted.
- Treat exp, iss, aud, and sub as inspection clues, not security decisions by themselves.
- Use secure server-side verification for real authentication or authorization decisions.
Trust and privacy note
TextBases developer tools are intended for quick browser-based inspection without requiring a login. For JWTs, be stricter than with ordinary text. Avoid pasting API keys, passwords, live JWTs, private tokens, confidential customer data, production secrets, or sensitive personal information.
A decoded JWT payload may reveal readable user IDs, email-like values, roles, scopes, tenant IDs, or expiry details. Redact first when you do not need the exact token to answer the debugging question.
FAQ
Does decoding a JWT verify it?
No. Decoding only makes the header and payload readable. It does not prove that the signature is valid or that the token should be trusted.
Is a JWT payload encrypted?
Often, no. Many JWT payloads are encoded, not encrypted, so anyone with the token may be able to read the claims after decoding.
Can anyone read a JWT payload?
If the token uses the common readable JWT structure, the header and payload can often be decoded by anyone who has the token. That is why sensitive information should not be placed in readable claims.
Should I paste a live JWT into an online decoder?
Avoid pasting live production JWTs or tokens with sensitive claims. Use dummy, redacted, or local-development tokens whenever possible.
What do exp, iss, aud, and sub mean?
exp usually represents expiration time, iss is issuer, aud is audience, and sub is subject. They help you inspect intent, but real trust still requires proper verification.
What is the difference between Base64 decoding and JWT decoding?
Base64 decoding converts encoded text back to readable data. JWT decoding understands the token structure and separates header, payload, and signature for inspection.