Skip to content
OTP Generator

Slack 2FA code generator

Paste your Slack two-factor secret key to get the current 6-digit login code, the same one your authenticator app shows.

Find it under “Can’t scan the QR code?” when you turn on 2FA. Only have the QR?

2Your code will appear here
Paste a key to start
Calculated in your browser. Your key is never sent anywhere.
On this page

Slack two-factor authentication adds a verification code to your password each time you sign in to a workspace. Slack works with most TOTP authenticator apps, and during setup it shows a QR code with the option to enter the code by hand instead. Paste that text key above to generate the 6-digit code Slack asks for.

Workspaces hold private messages, files and connected apps, so a stolen Slack password can expose a whole team. On paid plans, owners and admins must use 2FA, and owners can require it for every member. This generator runs in your browser and does not upload your key. Each workspace has its own 2FA setup, so save each key and its backup codes separately.

How to find your Slack secret key

  1. Sign in to the workspace in a web browser and open your Account page at my.slack.com/account/settings.
  2. Next to Two-factor Authentication, click Expand, then click Set Up Two-Factor Authentication.
  3. Enter your Slack password and choose Use an app.
  4. Slack shows a QR code. Choose the option to enter the code by hand and copy the key. Labels may change slightly over time.
  5. Save the key privately, labelled with the workspace name, before you verify.

How to log in to Slack with the code

  1. Paste the Slack key into the generator at the top of this page.
  2. Copy the 6-digit code, enter it on Slack's 2FA setup page and click Verify Code.
  3. Whenever Slack asks for a verification code at sign-in, generate a fresh one here.

Slack 2FA tips

  • Slack gives you backup codes when you set up 2FA, and you can view them again on your Account page. Each code works once, so keep a copy somewhere other than your phone.
  • If you belong to several workspaces, each one needs its own 2FA setup and key. Name each saved key after its workspace so you paste the right one.
  • If your workspace signs in through SSO, set up two-factor authentication with your identity provider instead. Slack's own 2FA applies to email and password sign-in.

Your Slack key is processed only in this browser and is never uploaded. Keep a copy in an authenticator app or password manager as well.

Slack 2FA FAQ

I lost my phone. How do I sign in to Slack?

If you saved your Slack key, paste it above to get a code, or use one of the backup codes Slack gave you during setup, which each work once. Otherwise, ask a Workspace Owner or Admin to disable 2FA for your account so you can sign in and set it up again. Workspace Owners need help from the Workspace Primary Owner.

My workspace requires 2FA. What happens if I skip it?

When 2FA is made mandatory for a workspace, members get an email and a Slack notification asking them to set it up. Anyone who has not done so within 24 hours is signed out and must set up 2FA before signing in again.

Do I need a separate key for each Slack workspace?

Yes. Slack asks you to set up 2FA separately for each workspace account, so each one has its own QR code, key and backup codes. Keep them labelled so you use the right key at each sign-in.

Can I use SMS or a security key instead?

Slack also offers text message codes, but owners can limit a workspace to authenticator apps only. Slack's help pages say U2F security keys are not supported yet.

Get your Slack code

Paste the Slack setup key and copy the current 6-digit code in seconds.