Skip to content
OTP Generator

WordPress 2FA code generator

Paste your WordPress 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

WordPress.com offers two-step authentication with an authenticator app, and self-hosted WordPress sites can add the same feature with a two-factor plugin. In both cases you receive a secret key during setup. Paste it into the generator above to produce the 6-digit code your WordPress login screen expects, whichever of the two you use.

A compromised WordPress admin account can lead to defaced pages, spam injections or malware, so 2FA is worth the extra step. This page computes codes in your browser without sending your key anywhere. Keep the key backed up in an authenticator or password manager, and keep the backup codes your site or plugin provides.

How to find your WordPress secret key

  1. On WordPress.com, open your profile menu → Security → Two-Step Authentication.
  2. Choose to set up an authenticator app. Re-enter your password if asked.
  3. Under the QR code, choose the option to enter the code manually and copy the key.
  4. On a self-hosted site with a 2FA plugin, open your user profile (Users → Profile) and look for the plugin's TOTP or authenticator section; most show a key next to the QR code.
  5. Save the key privately. Menu names vary by plugin and WordPress.com updates.

How to log in to WordPress with the code

  1. Paste your WordPress key into the generator above.
  2. Copy the 6-digit code and enter it to verify the setup.
  3. Print or download backup codes when offered. Future logins will ask for a code from your authenticator; generate it here.

WordPress 2FA tips

  • WordPress.com lets you create application passwords for apps that cannot handle 2FA, such as some mobile or desktop clients.
  • On self-hosted sites, make sure the server's clock is accurate. A misconfigured server time causes plugin-based 2FA codes to fail.
  • If you get locked out of a self-hosted site, a site administrator or someone with server access can usually disable the 2FA plugin temporarily. Use that only for your own site.

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

WordPress 2FA FAQ

Does this work for self-hosted WordPress?

Yes, if your site uses a TOTP-based two-factor plugin. Most popular 2FA plugins follow the standard 6-digit, 30-second format, so the key they provide works with this generator. Check your plugin settings to confirm it uses an authenticator app rather than email codes.

Is WordPress.com 2FA the same as Jetpack 2FA?

Jetpack's secure sign-in uses your WordPress.com account, so the WordPress.com two-step authentication key applies there too. Self-hosted sites with a separate plugin have their own keys. Keep track of which key belongs to which login.

I lost my WordPress.com key. How do I sign in?

Use one of your printed backup codes. If you have none, WordPress.com support may help verify account ownership, but it can take time. Keep your backup codes somewhere separate from your phone to avoid this.

Does this site store my WordPress key?

No. The key stays in your browser and is used only to calculate codes. It is not uploaded or logged. Even so, use a trusted device and keep the key private, because anyone holding it can generate your codes.

Get your WordPress code

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