2FA Code Generator › Guides › Discord 2FA

Discord 2FA Code: Enable an Authenticator App

By Md Rasel Mahamud · Last updated:

Reviewed for accuracy by the 2FA team

Discord accounts run communities, servers and bots, and hijacked accounts are often used to spread scams to friends. Two-factor authentication keeps yours under your control. Here is how to enable it and get your Discord 2FA code.

Published 30 November 2026

Why turn on 2FA for DiscordHow to enable an authenticator…Get your Discord 2FA code in the…Discord backup codesRunning a Discord server with 2FACommon Discord account scamsFAQ

Why turn on 2FA for Discord

With two-factor authentication on, Discord asks for a 6-digit code from your authenticator when you log in on a new device. Some servers also require moderators and admins to have 2FA turned on before they can use moderation tools, so enabling it may be necessary if you help run a server.

How to enable an authenticator app on Discord

  1. Open Discord and go to User Settings (the gear icon).
  2. Open your account settings and find the password and authentication section.
  3. Click Enable Authenticator App and enter your password if asked.
  4. Discord shows a QR code and a text key. Save the key somewhere safe.
  5. Add the key to your authenticator, then enter the 6-digit code to activate 2FA.
  6. Download or copy your backup codes when Discord offers them.

Menu names can change over time. If a step looks different, search the service's official help pages for "two-factor authentication".

Get your Discord 2FA code in the browser

  1. Open the 2FA code generator in a new tab.
  2. Paste the Discord key into the box, or click Scan QR or the upload button to read the QR code.
  3. Your 6-digit Discord 2FA code appears instantly, with a countdown to the next code.
  4. Copy the code and enter it in Discord before the timer runs out.

This is handy if you use Discord mainly on a computer and your phone is not nearby, provided you keep the key private.

Discord backup codes

Discord offers a set of backup codes when you enable two-factor authentication. Each backup code can be used in place of an authenticator code, usually once. Keep them in a password manager or printed at home, not only on your phone.

If you lose your authenticator and your backup codes, you may not be able to get back in, because Discord cannot simply switch off 2FA for you. That is why saving the key and backup codes matters so much. See how to recover a 2FA account.

Running a Discord server with 2FA

Server owners can require two-factor authentication for moderators. When this is turned on, members with moderation permissions must have 2FA on their own accounts before they can use actions such as kicking or banning. If you are a moderator and suddenly cannot use these tools, check that 2FA is still enabled on your account. Owners should also make sure at least one other trusted admin has 2FA, so the server is not tied to a single account.

Common Discord account scams

Our 2FA code generator is an independent tool and is not affiliated with Discord.

Frequently asked questions

How do I get my Discord 2FA code?
Open the authenticator app you linked to Discord, or paste the same Discord key into our 2FA code generator to see the current 6-digit code.
Where do I find Discord backup codes?
Discord offers them when you enable the authenticator app, and you can view them again in your account settings while you are logged in.
Can Discord turn off 2FA if I lose my phone?
Generally no. Without your authenticator or backup codes it may be impossible to recover the account, so always save both.

Ready to get your 2FA code?

Paste your secret key or scan a QR code – free, private and instant.

Open the 2FA Code Generator