Developer Tools
JWT Decoder
Decode the JWT header and payload JSON from Base64URL, and inspect the signature text and common time claims.
About this tool
Decode the JWT header and payload JSON from Base64URL, and inspect the signature text and common time claims.
What is it?
A JSON Web Token is a three-part token format separated by dots.
How Do You Decode a JWT?
Paste a dot-separated JWT. The tool parses the first two Base64URL sections as JSON, displays the signature section as text and formats selected time claims.
- Paste a token with three dot-separated sections; whitespace at the beginning and end is trimmed.
- Decode Base64URL and parse the header and payload sections as JSON.
- Inspect the displayed signature text and any iss, sub, aud, exp, nbf, iat or jti claims.
- Do not treat the output as verified: this tool does not verify the signature or validate claims for authorization.
Examples
- Demo token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJkZW1vLXVzZXIiLCJyb2xlIjoicmVhZGVyIiwiaWF0IjoxNzUwMDAwMDAwLCJleHAiOjQxMDI0NDQ4MDB9.ZHVtbXktc2lnbmF0dXJl
- Header → {"alg":"HS256","typ":"JWT"} · Payload → {"sub":"demo-user","role":"reader","iat":1750000000,"exp":4102444800}
- Signature segment: ZHVtbXktc2lnbmF0dXJl (a demo placeholder that decodes to “dummy-signature”; it was not generated as an HS256 signature).
Common use cases
- Inspect example JWT header and payload fields while developing an integration.
- Read the epoch-second values in claims such as exp, nbf and iat.
- Troubleshoot the three token sections before checking signature validity separately in a trusted verifier.
Technical details
- The token is trimmed and must split into exactly three sections. The first two sections convert Base64URL (- and _) to Base64, receive padding, decode to UTF-8 and are parsed with JSON.parse.
- The third section is neither decoded nor cryptographically checked; it is displayed as supplied. It may be empty if the first two JSON sections parse.
- Present iss, sub, aud, exp, nbf, iat and jti claims are listed. Numeric exp/nbf/iat values are formatted as dates; exp also gets a relative status against the current clock.
- There is no signature verification, issuer or audience policy check, or nbf validity check. Decoding a JWT does not verify its signature or prove that the token is trustworthy.
- An empty token, a token without three sections, invalid Base64URL or invalid JSON produces a generic invalid-token message. Processing runs in the browser.
Related concepts
What Is a JWT?
A JSON Web Token is a three-part token format separated by dots.
Frequently Asked Questions
Does this tool verify a JWT signature?
No. Decoding is not signature verification and does not prove that a token is valid or trustworthy.
Are the header and payload encrypted?
No. This tool decodes Base64URL-encoded JSON; do not assume the contents are secret.
Which sections does it decode?
The first two sections are parsed as JSON. The third is displayed as signature text without algorithm verification.
Are exp, nbf and iat validated?
No. Numeric time claims are displayed as dates; exp gets an informational status relative to the current time. Signature, nbf, issuer and audience are not validated.
Related Tools
JSON Formatter
Format and organize JSON data for easier reading.
Base64 Encoder / Decoder
Encode text to UTF-8 Base64 or decode Base64 content back to readable text.
JSON Validator
Check whether JSON data is valid and correctly structured.
JSON Minifier
Remove unnecessary whitespace from JSON data.
URL Encoder / Decoder
Encode or decode text and URL parameters safely.
UUID Generator
Generate secure UUID v4 values with the Web Crypto API.