Discord Token Decoder
Discord tokens base64-encode the user ID as part of their structure. Paste a token and see the decoded payload - including the embedded user ID and whether it's a user or bot token. Read-only, educational use.
- Free, no limits
- No login
- Runs in your browser
Read-only, educational tool. The token is decoded entirely in your browser.
About this tool
Every Discord token contains an encoded user ID inside its payload. This tool splits the token at the dots, base64-decodes the middle section, and shows you the embedded JSON including the user ID and a creation date estimate.
The tool runs completely in your browser. The token never leaves your device, and nothing is sent to any server.
How to use
Paste a Discord token.
The payload is base64-decoded automatically.
Read the embedded user ID and token info.
The three parts of a bot token
A Discord bot token is three base64 segments joined by full stops. The first decodes to the bot's user ID. The second encodes the moment the token was issued, as seconds since the Discord epoch rather than the Unix epoch. The third is an HMAC that Discord verifies and that nothing outside Discord can derive or check.
Only the first two segments carry readable information, and neither is a secret - the bot's ID is public, and the issue time tells you nothing sensitive. The third segment is the entire security of the token, which is why a decoder can show you the ID and the date without needing any credentials.
The base64 here is URL-safe and unpadded, so decoders that assume standard base64 fail on tokens containing the characters that differ between the alphabets. That is the usual reason a token decodes correctly in one tool and not another.
What to do when a token leaks
A token is complete authentication. Anyone holding it can act as the bot everywhere the bot exists, with no password and no second factor. There is no way to revoke a specific use - the only remedy is regenerating the token in the Developer Portal, which invalidates the old one immediately.
Discord scans public GitHub repositories for tokens and automatically invalidates any it finds, which is a genuinely useful safety net but not one to rely on. A token committed to a private repository, pasted into a support channel or hardcoded in a distributed script is not covered.
The habit that prevents this is keeping the token in an environment variable and never in source. If you are debugging and need to paste something publicly, paste the decoded ID rather than the token.
How a Discord token is structured
A token has three parts separated by dots. The first part is a random identifier, the second is a base64-encoded JSON payload with the user ID and token metadata, and the third is a cryptographic signature. Only the middle part contains readable information.
Why you should never share your token
A token acts as both username and password in one string. Anyone holding it can act as your account through the API. If a token ever leaks, revoke it immediately by changing your password, which invalidates the old token and issues a new one.
Frequently asked questions
What can I learn from my token?
The user ID, a rough account creation date based on snowflake math, and whether it is a user token, bot token or MFA token.
Try other relevant tools
Snowflake ID & Date Converter
Convert between Discord IDs and exact dates - both directions.
Discord Timestamp Generator
Create <t:123:r> timestamps that render in every reader’s local time.
Fake Token Generator
Generate random, invalid Discord-shaped tokens for testing your own parsers.