How to Decode a JWT Token (and What It Does Not Tell You)
Read the header, payload and expiry of a JSON Web Token in your browser. Learn what a JWT contains and why decoding is not the same as verifying.
What is inside a JWT
A JSON Web Token has three parts separated by dots: a header, a payload and a signature. The header and payload are JSON that has been Base64URL-encoded, which is why a token usually starts with "eyJ". The payload holds claims such as the subject, the issuer and an expiry time.
How to decode one
Open the JWT Decoder and paste the token. The header and payload appear as readable JSON straight away, with no button to press. If the payload has an exp claim, the tool tells you whether the token has already expired or when it will, in your local time. Decoding happens in your browser, so the token is not sent anywhere.
Common reasons decoding fails
Paste only the token itself. A copied Authorization header such as "Bearer eyJ..." will not decode until you remove the word Bearer and the space. Encrypted tokens (JWE) have five parts and cannot be read this way.
Decoding is not verifying
The payload is encoded, not encrypted, so anyone who holds the token can read it and you should never put secrets in it. This tool does not check the signature, so a decoded token is not proof that it is genuine. Verification has to happen on your server with the right key.
블로그의 다른 글
Becoderr란? 145개 이상의 무료 온라인 도구를 한곳에
Becoderr는 PDF, 이미지, JSON, 텍스트, 개발자용, 일상 작업을 위한 145개 이상의 무료 온라인 도구 모음입니다. 비공개, 빠름, 가입 불필요.
화질 저하 없이 이미지 압축하는 방법
사진을 선명하게 유지하면서 이미지 용량을 최대 90%까지 줄이세요. JPG와 PNG를 무료로 안전하게 온라인 압축하는 간단 가이드.
PDF를 편집 가능한 Word 문서로 변환하는 방법
어떤 PDF든 Microsoft Word에서 편집할 수 있는 .docx로 변환하세요. 무료, 가입 불필요.