# JWT decoder > How do you read what is inside a JWT? Decode a JSON Web Token, see when it expires and check an HS256 signature, all in your browser. Decode a JSON Web Token to read its header, payload and expiry in your own time zone, and check an HS256, HS384 or HS512 signature. Nothing is uploaded. - Page: https://how.box/jwt/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/jwt/?token={token}&secret={secret} - `token` (text): The JSON Web Token to decode. Example: `eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyLCJleHAiOjIwMDAwMDAwMDB9.3VEPp-gKXFT5m_HDHLbxiKB8GfAWyvKPoN_cKD-2ZCI`. - `secret` (text): The secret to check an HS256, HS384 or HS512 signature. Example: `your-256-bit-secret`. Example answer: https://how.box/jwt/?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyLCJleHAiOjIwMDAwMDAwMDB9.3VEPp-gKXFT5m_HDHLbxiKB8GfAWyvKPoN_cKD-2ZCI&secret=your-256-bit-secret The page computes the answer in the browser: read results from the agent tools below, not from the page HTML. ## Agent tools - `jwt_decode`: Decodes a JSON Web Token (RFC 7519, compact JWS of RFC 7515) in the browser; nothing is sent anywhere. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"jwt_decode","arguments":{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyLCJleHAiOjIwMDAwMDAwMDB9.3VEPp-gKXFT5m_HDHLbxiKB8GfAWyvKPoN_cKD-2ZCI","secret":"your-256-bit-secret"}}}` - GET: https://how.box/mcp/run/jwt_decode?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyLCJleHAiOjIwMDAwMDAwMDB9.3VEPp-gKXFT5m_HDHLbxiKB8GfAWyvKPoN_cKD-2ZCI&secret=your-256-bit-secret ## How it works A JSON Web Token is three pieces of text joined by dots: a header that names the signing algorithm, a payload of claims, and a signature. The first two are plain JSON written in base64url, so anyone holding the token can read them. That is why a JWT should never carry secrets, and why decoding it needs no key (RFC 7519). Some claims have fixed meanings: iss (issuer), sub (subject), aud (audience), and the times exp (expires), nbf (not before) and iat (issued at). A time is the number of seconds since 1 January 1970 UTC. A token is expired when the current time is at or after exp. The signature is an HMAC over the first two parts: for HS256 it is HMAC-SHA-256 of header.payload with the shared secret (RFC 7518). Decoding is not trusting. A payload is believable only if its signature is valid for a key you trust, and the tool checks only the HS family, with the secret read as text. RS256, ES256 and the other public-key algorithms are shown but not verified. The token and the secret are processed in your browser and are not sent or stored. ## FAQ **Is it safe to paste my token here?** The token is decoded in your browser and never sent anywhere. Even so, treat a live token like a password and prefer test tokens or expired ones. **Can a JWT be decoded without the secret?** Yes. The header and payload are only encoded, not encrypted. The secret is needed only to check that nobody changed them. **What does exp mean?** The time from which the token must no longer be accepted, in seconds since 1 January 1970 UTC. The tool shows it in your time zone. **What does alg none mean?** The token has no signature. Servers should refuse such tokens unless they expect them, because anyone can write one. **Why is my RS256 signature not verified?** That needs the issuer's public key. This tool checks only HMAC signatures made with a shared secret. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)