JWT Expiry Checker

This tool checks whether a JSON Web Token has expired and shows its key timing claims, so you can quickly tell if a token is still valid. JSON Web Tokens, or JWTs, are the standard way modern applications carry identity and authorisation between a server and a client. A token is only meant to be valid for a limited time, and its payload carries timing claims that control this: the expiry time, the issued-at time, and sometimes a not-before time. When an API call fails with an authorisation error, one of the first things to check is whether the token has simply expired, but reading the raw Unix timestamps in a token is awkward. This tool does it for you. You paste a token, and the calculator decodes its payload, reads the expiry, issued-at and not-before claims, converts those Unix timestamps into readable dates, tells you whether the token is currently expired or still valid, and shows how long until it expires or how long ago it did. The result updates as you paste, and everything runs in your browser, so the token is never uploaded, which matters because tokens grant access. Use it to debug authentication problems, to check a token's validity, or to read its timing. The expiry claim, exp, is the moment after which the token should be rejected; the issued-at claim, iat, records when it was created; and the not-before claim, nbf, is the moment before which it is not yet valid. The check compares the current time on your device against these claims. Two important caveats: this reads the claims but does not verify the token's signature, so a token shown as valid is not necessarily authentic, only unexpired; and the times depend on your device clock, so a badly set clock will affect the result. If a token has no expiry claim, it does not expire by time, which the tool will indicate.

No expiry claim
token status
Expiresnot set
Issued at28 Jan 2018
Time to expiryn/a

Reads the exp, iat and nbf claims and compares with your device clock. Does NOT verify the signature, so 'valid' means unexpired, not authentic. Times use your local clock.

How it works

The token's payload is Base64url-decoded to read its claims. The expiry (exp), issued-at (iat) and not-before (nbf) values are Unix timestamps, which the tool converts to readable dates. It compares the expiry against the current time on your device to decide whether the token is expired, and works out the time remaining or elapsed.

Worked example

Pasting a token whose payload has an issued-at time of 1516239022 shows it was issued on 28 January 2018. If the token also carried an expiry claim in the past, the tool would mark it expired and show how long ago; with no expiry claim, as in this example, it reports that the token does not expire by time.

Related calculators

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

© 2019 to 2026 Calculate.co.nz. All rights reserved.