# Decode Clerk JWTs

## How this tool works

The JWT Decoder lets you decode and verify JWTs. Currently only the RS256 algorithm is supported. Paste a JWT or select a Clerk session cookie to decode and verify the token. Click 'Create Example' to generate a random key set and JWT. You can add data to the payload and click 'Resign' to generate a new JWT from the payload.

> The JWTs generated by this tool are for demonstration and educational purposes only. Do not use them for authentication, authorization, or any production use. Keys are generated client-side in your browser. This tool is intended for learning and debugging JWT structure, not for creating valid, production-ready tokens. All verification and decoding occurs in your browser and is not sent to the server.

Visit your frontend that is using Clerk and sign in. Once you have signed in, open the browser [Dev Tools](https://developer.mozilla.org/en-US/docs/Learn_web_development/Howto/Tools_and_setup/What_are_browser_developer_tools) and go to the **Console** tab. Enter the following command:

```js
await window.Clerk.session.getToken()
```

Copy the console output and paste it into the JWT input to decode the token.

Alternatively, you can use the [getToken()](https://clerk.com/docs/reference/objects/session.md#get-token) method from a Clerk SDK.

## Next steps

- [Customize your session tokens](https://clerk.com/docs/guides/sessions/customize-session-tokens.md): Learn more about how to customize your session tokens.
- [Session tokens](https://clerk.com/docs/guides/sessions/session-tokens.md): Learn more about Clerk's session tokens.
- [Tokens and signatures](https://clerk.com/docs/guides/how-clerk-works/tokens-and-signatures.md): Learn more about JWT signatures.
- [Clerk cookies & tokens](https://clerk.com/docs/guides/how-clerk-works/overview.md#clerks-cookies-and-tokens-in-detail): Learn more about how Clerk uses cookies and JWTs.

---

## Sitemap

[Overview of all docs pages](https://clerk.com/docs/llms.txt)
