2FA QR Code Generator

Turn a Base32 secret or otpauth URI into a scannable 2FA QR code in this browser. Nothing is uploaded—scan with your authenticator app, download a PNG, or copy the URI.

Build a scannable 2FA QR

Browser only

Advanced options (defaults work for most apps)

Nothing is uploaded.View source

Need live six-digit codes instead?Open the 2FA code generator· Source-available onGitHub.

How it works

How this TOTP QR code generator works

A 2FA QR code is not a random picture. It encodes a standard otpauth://totp/… string that carries the shared secret and the settings your authenticator needs. This online 2FA QR code generator builds that string locally, draws the 2FA QR code on a canvas, and keeps the secret in the tab until you clear it. If you searched for a free 2FA QR code generator online, this page is the dedicated tool for secret-to-QR—not the live six-digit TOTP calculator on the homepage.

01

Paste the secret

Use the Base32 setup key from the service, or paste a full otpauth TOTP URI if you already have one.

02

Label the account

Add an account name and optional issuer so Google Authenticator, Authy, or similar apps show a clear title.

03

Generate and scan

Create the QR, scan it with your phone app, then download the PNG or copy the URI if you need a backup image.

From secret key

Generate a QR code from a secret key

When a provider shows “enter this key manually,” that Base32 string is enough to rebuild a scannable 2FA QR code. Enter the key, set the label you want on the phone, and generate. Advanced options stay collapsed: most services use SHA-1, six digits, and a 30-second period. Change them only when the service documents non-default values. Generating a QR code from a secret key is the main job of this 2FA QR code generator.

If you already store an otpauth://totp/ URI in a password manager, paste the whole URI into the secret field. The 2FA QR code tool reads algorithm, digits, and period from the URI so the QR matches the original setup. That is often faster than retyping a long Base32 string by hand.

Phone apps

Scan with authenticator apps

After the QR appears, open your authenticator app and choose add account / scan QR. Compatible apps include common TOTP clients such as Google Authenticator, Microsoft Authenticator, Authy, and other apps that accept standard otpauth TOTP URIs. 2FACode.im is independent and is not endorsed by those brands.

When enrollment finishes, confirm a test login on the original service. If the code is rejected, check clock sync, confirm you scanned the latest QR, and verify advanced settings if the provider uses non-default digits or algorithms.

Two tools, two jobs

2FA QR code generator vs 2FA code generator

Search results mix “QR generator” with “online authenticator.” On 2FACode.im the split is deliberate so each page matches one primary job.

This page — 2FA QR code generator

  • Input: secret or otpauth URI
  • Output: scannable QR + URI text + PNG download
  • Goal: enroll or re-enroll an authenticator app

Browser-only encoding

Is an online 2FA QR code generator safe?

Anyone who can read the 2FA QR code (or the secret inside it) can generate the same codes. Treat the image like the secret. This 2FA QR code generator draws the QR in the page and does not call a generation API. Optional analytics may measure traffic; they are not used as a secret database. “Is a QR code generator safe?” depends on the device and the domain—always confirm you are on 2facode.im.

Prefer a trusted device, verify the domain, avoid public screens when scanning, and clear the form when you finish. For long-term storage, keep secrets in a dedicated authenticator or encrypted vault—not in random screenshots forever. A legitimate 2FA QR code generator should never require an account to encode a secret you already hold.

Secret upload
None for generation
QR encoding
In-browser
PNG export
Local download
Live codes
Use homepage tool

When it helps

When to use a 2FA QR code generator online

New phone migration

You saved Base32 keys and need a QR again for Google Authenticator or a similar app on a new device.

Second authenticator

Enroll a hardware-backed app or a backup phone without disabling 2FA on the service when you still have the secret.

Lab and staging accounts

Developers rebuild otpauth QR codes from known test secrets while keeping generation local to the browser.

FAQ

2FA QR code generator FAQ

Practical answers about generating a 2FA QR code online, otpauth URIs, authenticator apps, and how this tool differs from a live TOTP code generator.

What is a 2FA QR code generator?

A 2FA QR code generator turns a TOTP shared secret (and optional account labels) into a scannable QR image. Authenticator apps read the otpauth://totp URI inside the QR so you do not retype the Base32 key by hand.

How do I generate a QR code from a secret key?

Paste the Base32 secret from the service setup screen, add an account name and optional issuer, then click Generate QR code. The QR is drawn in this browser tab so you can scan it with Google Authenticator, Authy, Microsoft Authenticator, or another TOTP app.

Is this the same as a 2FA code generator that shows 6-digit codes?

No. This page builds a scannable QR (and otpauth URI) from a secret. The homepage 2FA code generator calculates live six-digit TOTP codes and countdowns. Use this page to enroll a phone app; use the code generator when you need the current login code.

Does the QR encode my secret so any authenticator can scan it?

Yes for apps that support standard otpauth TOTP URIs. The QR carries the shared secret and common settings (algorithm, digits, period). Some apps ignore non-default advanced options—when unsure, keep SHA-1, six digits, and 30 seconds.

Is it safe to generate a 2FA QR code online?

This tool encodes the QR locally in your browser and does not upload the secret to a generation server. Any web page can still be risky on a compromised device or look-alike domain. Prefer a trusted device, confirm 2facode.im, and clear the page when finished.

Does my secret leave the browser?

QR encoding and preview run in page memory. The secret is not written to LocalStorage as part of generation, and there is no generation API. Optional site analytics measure visits and are not a TOTP backend. Clearing the workspace or closing the tab removes the in-page fields.

Can I use this for Google Authenticator, Authy, or Microsoft Authenticator?

Yes when those apps accept standard TOTP setup via QR. This site is independent and is not affiliated with Google, Microsoft, Authy, or other authenticator brands. After scanning, confirm the account label and a test code on the service that issued the secret.

What is an otpauth://totp URI?

It is the standard text form of a TOTP setup string, for example otpauth://totp/Issuer:account?secret=BASE32&issuer=Issuer. The QR image is a visual encoding of that URI. You can paste a full URI into the secret field and this tool will reuse its parameters.

Why would I regenerate a QR code if I already have the secret?

Common reasons: moving to a new phone, enrolling a second authenticator, restoring from a written Base32 backup, or giving a teammate a scannable form of a shared lab secret. If you only need the current six-digit login code, open the 2FA code generator instead.

Can I download the QR as PNG?

Yes. After generation, use Download PNG to save the canvas image, or Copy otpauth URI to paste the text into another trusted tool. Treat the PNG like the secret itself—anyone who can scan it can generate codes.

How is this different from a 2FA QR code scanner?

A scanner reads a QR image to extract a secret or produce codes. This generator does the reverse: it starts from a secret or URI and draws a QR for apps to scan. If you need live codes from a pasted secret, use the homepage generator.

Can I get a secret key from a QR code image here?

Not on this page. This URL only builds QR codes from secrets you already have. Decoding a QR image is a separate job; keep screenshots offline or use a trusted local decoder, then paste the secret into the homepage if you need live TOTP digits.

Ready when you are

Generate your 2FA QR code, then leave no secret on the screen

Build the QR locally, scan it into your authenticator, and clear the tab when you are done.