# How do I need to decode secret on jwt.io when using base64 checkbox

**URL:** <https://community.auth0.com/t/how-do-i-need-to-decode-secret-on-jwt-io-when-using-base64-checkbox/97725>\
**Category:** JWT.io\
**Created:** [January 8, 2023, 11:45pm UTC](https://community.auth0.com/t/how-do-i-need-to-decode-secret-on-jwt-io-when-using-base64-checkbox/97725 "2023-01-08T23:45:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hferguson](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hferguson/32/42411_2.png) [@hferguson](https://community.auth0.com/u/hferguson)\
**Post date:** [January 8, 2023, 11:45pm UTC](https://community.auth0.com/t/how-do-i-need-to-decode-secret-on-jwt-io-when-using-base64-checkbox/97725/1 "2023-01-08T23:45:52Z")

</div>

I’ve been testing out various Java libraries for JWT creation. I’ve been using [https://jwt.io](https://jwt.io) to test tokens for a REST API where if the token works on [jwt.io](http://jwt.io) it will work there. I can get it to work when I don’t check the check the ‘secret base64 encoded’ checkbox, but the REST API I need the token for assumes the client secret used to sign the token is base64 encoded, meaning I need to check that box. So far, every time I’ve tried to base64 decode the secret, it results in an invalid signature. Is there a trick to how I base64 decode an otherwise encoded secret to work here?

---

<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:** [January 13, 2023, 2:40pm UTC](https://community.auth0.com/t/how-do-i-need-to-decode-secret-on-jwt-io-when-using-base64-checkbox/97725/3 "2023-01-13T14:40:14Z")

</div>

Hi @hferguson,

Welcome to the Auth0 Community!

Just for clarification, that checkbox means that _[JWT.io](http://JWT.io) base64 decodes the secret before applying it._ I think that is what you are describing, but want to make sure we are on the same page 😄 .

You can also try to decode it with the command line if you think there is an issue with how it is being handled by [JWT.io](http://JWT.io).

If you provide some test values I can try to figure it out.

---

<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:** [March 28, 2023, 1:19pm UTC](https://community.auth0.com/t/how-do-i-need-to-decode-secret-on-jwt-io-when-using-base64-checkbox/97725/4 "2023-03-28T13:19:16Z")

</div>

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