# How do I generate a JWT token?

**URL:** <https://community.auth0.com/t/how-do-i-generate-a-jwt-token/65559>\
**Category:** Get Help\
**Tags:** jwt\
**Created:** [July 5, 2021, 12:36am UTC](https://community.auth0.com/t/how-do-i-generate-a-jwt-token/65559 "2021-07-05T00:36:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hzxu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hzxu/32/13039_2.png) [@hzxu](https://community.auth0.com/u/hzxu)\
**Post date:** [July 5, 2021, 12:36am UTC](https://community.auth0.com/t/how-do-i-generate-a-jwt-token/65559/1 "2021-07-05T00:36:17Z")

</div>

I need to create a JWT token (RS256) and I tried [jwt.io](http://jwt.io) but since the private key isn’t accessible as stated here: [If we can not get the private key when use choose RSA256 as JWT signature algorithm](https://community.auth0.com/t/if-we-can-not-get-the-private-key-when-use-choose-rsa256-as-jwt-signature-algorithm/22554)

Does Auth0 have a straightforward way to just create a JWT token for my payload, instead of building an actual application with SDK integrated for authorization? Thanks!

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [July 6, 2021, 1:11pm UTC](https://community.auth0.com/t/how-do-i-generate-a-jwt-token/65559/2 "2021-07-06T13:11:47Z")

</div>

Hi @hzxu

You cannot access Auth0’s private key. This is by design.

The best way is to generate the access token per a normal flow, like Auth Code. You cannot just “generate a JWT” as that skips all the security we make sure is in place.

John

---

<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:** [January 24, 2025, 3:14pm UTC](https://community.auth0.com/t/how-do-i-generate-a-jwt-token/65559/3 "2025-01-24T15:14:39Z")

</div>

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