How to Get Your Discord Token on PC
In this article
You cannot retrieve your Discord account token through the official desktop application or website. Discord does not provide a "Show Token" button for security reasons, as tokens are sensitive credentials that grant full access to your account. Attempting to extract this token requires technical workarounds involving developer tools or third-party clients, which violate Discord's Terms of Service and can result in permanent account bans. The only safe and supported way to manage your account security is through the official app's settings.
What You'll Need
- A Windows PC with the official Discord application installed.
- Basic familiarity with browser developer tools (F12).
- Warning: Extracting tokens via unofficial methods is against Discord's ToS and risks account termination.
Step-by-Step
- Open Discord: Launch the official Discord application on your PC. Ensure you are logged into your account.
- Access Developer Tools: Press
F12on your keyboard or right-click anywhere on the window and select Inspect. This opens the Chrome DevTools panel. - Navigate to Console: Click on the Console tab within the DevTools window. This area allows you to run JavaScript commands directly in the context of the Discord app.
- Enter Command: Type the following command exactly as shown:
require('discord.js').Client. Note: This specific command often fails in the current web wrapper version. A more reliable method involves inspecting network requests. - Alternative Network Method: Go to the Network tab in DevTools. Refresh the page (
F5). Look for a request starting withapi/v9/users/@me. Right-click it, select Copy, then Copy response. Paste this into a text editor. Search for the stringtokenwithin the JSON data. The value next to it is your session token. - Security Warning: Copying this token grants anyone who has it full control over your account, including reading messages, joining servers, and changing settings. Never share this code.
Common Mistakes
The most common mistake is attempting to use outdated guides that suggest using old JavaScript snippets like window.webpackJsonp.... These methods no longer work due to Discord's frequent updates and obfuscation techniques. Another error is sharing the token publicly in forums or chats, assuming it is just an API key. Unlike API keys, account tokens are equivalent to passwords and should never be exposed. Users also often confuse the "Token" with their "Password." The password is used for login; the token is the ephemeral credential used after login to authenticate API calls.
Tips
If you need a token for a legitimate bot development project, do not use your personal account token. Instead, create a new Discord application in the Developer Portal and generate a Bot Token specifically for that application. This isolates the risk and follows best practices. Always keep your official Discord client updated, as older versions may have known vulnerabilities that make token extraction easier for malicious actors. Use Two-Factor Authentication (2FA) on your main account to add a layer of security, even if someone obtains your token temporarily.
Troubleshooting
If the Network tab method does not show the token, ensure you are filtering by XHR or Fetch requests in the Network tab. If the page refreshes too quickly, check the Preserve log checkbox before refreshing. If you cannot find the @me endpoint, try searching for any Authorization header in the request headers; the token is located there. If you suspect your token has been compromised, immediately go to User Settings > My Account > Log Out of All Devices, and change your password. This will invalidate all existing tokens associated with your account.
Frequently Asked Questions
Is it safe to get my Discord token?
No. Extracting your personal account token violates Discord's Terms of Service and puts your account at high risk of theft or ban. It is not recommended for regular users.
Can I recover my token if I lose it?
You cannot "recover" a lost token because it changes every time you log out or clear your cache. However, you can always log back in normally via the official app to generate a new valid session.
Why do bots use tokens instead of passwords?
Bots use tokens because they interact with Discord via API. Passwords are for human login flows. Tokens allow programs to authenticate securely without exposing user credentials.
Will getting my token get me banned?
Simply viewing your own token in developer tools is unlikely to trigger an automatic ban, but using it with unauthorized third-party scripts or bots can lead to detection and permanent suspension.
How do I protect my account from token grabbers?
Never download "token grabber" software or click links asking for your token. Enable 2FA, and only use official Discord clients from discord.com.
Can I use my token on mobile?
No. The token extraction methods described here rely on desktop developer tools. Mobile apps do not expose these internal structures to users.