# JWT.io is decoding the JWT header "wrong"

**URL:** <https://community.auth0.com/t/jwt-io-is-decoding-the-jwt-header-wrong/69692>\
**Category:** Get Help\
**Tags:** jwt\
**Created:** [September 15, 2021, 8:44am UTC](https://community.auth0.com/t/jwt-io-is-decoding-the-jwt-header-wrong/69692 "2021-09-15T08:44:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![galanarus](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/galanarus/32/27536_2.png) [@galanarus](https://community.auth0.com/u/galanarus)\
**Post date:** [September 15, 2021, 8:44am UTC](https://community.auth0.com/t/jwt-io-is-decoding-the-jwt-header-wrong/69692/1 "2021-09-15T08:44:27Z")

</div>

Hey there,

after trying to find an answer in this thread ([JWT.io different result compared to base64decode.org](https://community.auth0.com/t/jwt-io-different-result-compared-to-base64decode-org/31851)) I realized that this is a different issue.

Preface: I blackened the sensible data.

This is the raw JWT header as it is logged by the creator application:  
{  
“alg”: “RSA256”,  
“subject\_name”: “”,  
“issuer\_name”: “”,  
“serial”: **1841657277971189406**  
}

This is the JWT header as it is decoded by [JWT.io](http://JWT.io):  
{  
“alg”: “RSA256”,  
“subject\_name”: “”,  
“issuer\_name”: “”,  
“serial”: **1841657277971189500**  
}

This is the JWT header as it is decoded by [Base64 Decode and Encode - Online](https://www.base64decode.org/:)  
{  
“alg”: “RSA256”,  
“subject\_name”: “”,  
“issuer\_name”: “”,  
“serial”: **1841657277971189406**  
}

As you see, the serial is decoded different.( …500 | 406) where the …406 ending is the correct value.  
When using a string as dataType it is parsed correctly but the corresponding party expects a number.

As I get an error response (500) and am currently not able to get more information from there.

Maybe someone can clarify why this is happening.

Thank you in advance

Ray

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [September 15, 2021, 5:44pm UTC](https://community.auth0.com/t/jwt-io-is-decoding-the-jwt-header-wrong/69692/3 "2021-09-15T17:44:34Z")

</div>

Hi @galanarus,

Welcome to the Auth0 Community!

Would you please share an example JWT so I can confirm the behavior?

---

<div class="post-metadata">

**Author:** ![galanarus](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/galanarus/32/27536_2.png) [@galanarus](https://community.auth0.com/u/galanarus)\
**Post date:** [September 16, 2021, 8:09am UTC](https://community.auth0.com/t/jwt-io-is-decoding-the-jwt-header-wrong/69692/4 "2021-09-16T08:09:22Z")

</div>

Hi Dan,

I sent it via message to you because of sensible data.  
Thank you for your help.

Ray

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 23, 2021, 4:57pm UTC](https://community.auth0.com/t/jwt-io-is-decoding-the-jwt-header-wrong/69692/5 "2021-12-23T16:57:03Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
