Skip to content

Instantly share code, notes, and snippets.

@MarvNC
Last active January 9, 2026 10:04
Show Gist options
  • Select an option

  • Save MarvNC/e601f3603df22f36ebd3102c501116c6 to your computer and use it in GitHub Desktop.

Select an option

Save MarvNC/e601f3603df22f36ebd3102c501116c6 to your computer and use it in GitHub Desktop.
How to Get Your Discord Token From the Browser Developer Console

How to Get Your Discord Token From the Browser Console

New method (contributed by youyoumu)

  • Open the browser console with F12 or Ctrl + Shift + I.
  • Enable mobile device emulation with Ctrl + Shift + M.
  • Paste the following code into the console and press Enter:
const iframe = document.createElement('iframe');
console.log(
  'Token: %c%s',
  'font-size:16px;',
  JSON.parse(document.body.appendChild(iframe).contentWindow.localStorage.token)
);
iframe.remove();

Alternatively, you can just go to the Application tab, then Local Storage, and find the token key under https://discord.com/ after you have enabled mobile device emulation.

Old method

Click to expand
  • Open the browser console with F12 or Ctrl + Shift + I.
  • Go to the network tab
  • Filter by Fetch/XHR
  • Choose a request that isn't an error (if there aren't any, click on a channel or server to trigger some requests.)
  • You'll find your discord token under the request headers -> authorization section. Copy and paste it from there.

image

@Hollowen-rocks
Copy link

you didn't chatGPT it? cuz this looks sus

its 100% chatgpt or ai

@orca-pet3910YT
Copy link

orca-pet3910YT commented Jan 5, 2026

its 100% chatgpt or ai

i also think so :P

@CODER-X-69
Copy link

CODER-X-69 commented Jan 8, 2026

Can anyone know how to make a python script which can run on terminal/Termux and find token by giving Email and password and if need then authentication code.

I try this a lot but not work 😭

This can be universal solution for mobile/pc users to get token.

@CODER-X-69
Copy link

CODER-X-69 commented Jan 8, 2026

Btw guys I also made a python script which find ur token form just email, password and authorisation code. But now problem is discord update it self so now you can't find token form this script which have authorisation code. But stil you can use this and get token on both pc/mobile ( terminal/Termux ) using just email and password. For now i can Only do this much but in future i try to add new discord authorities code support if possible.

You Can Have My Script Form My GitHub Account. It's name is Discord-Token-Grabber.
https://github.com/CODER-X-69/Discord-Token-Grabber

@orca-pet3910YT
Copy link

quit the yap @Hollowen-rocks

@CODER-X-69
Copy link

CODER-X-69 commented Jan 8, 2026

Well yeah this made by my custom LLM. And its's ai generated + i modify it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment