macOS 14+ · Free · Open Source

Local TOTP
on your Mac

Mac2FA generates two-factor codes locally on your Mac. Import from Google Authenticator, paste otpauth:// URIs, or add secrets manually — all stored securely in the macOS Keychain.

Keychain backed QR · Migration · Manual No cloud, no account
G
GitHub · hkilimci
428 193
30
TOTP codes rotate every 30 seconds

Everything you need for 2FA on macOS

A focused, local-first authenticator built natively for macOS with SwiftUI.

Keychain Storage

Secrets live in the macOS Keychain under the Mac2FA service — never in plain text, never synced to a cloud.

Google Authenticator Import

Bring accounts over from Google Authenticator by pasting an otpauth-migration:// link or dropping its QR code as an image.

Standard otpauth:// Support

Paste any standard otpauth://totp/... URI from your providers — Mac2FA parses it the same way mobile apps do.

QR Image Import

Drag a QR screenshot onto the window or pick a file — Mac2FA decodes the code locally without sending it anywhere.

Instant Search

Type to filter by issuer or account label. Click any row to copy its current code straight to the clipboard.

SHA-1 / 256 / 512

Supports the full TOTP spec: 6, 7, or 8 digits, 30s or 60s periods, and SHA-1, SHA-256, or SHA-512 algorithms.

Three steps to local 2FA

Download the app, bring in your accounts, and copy codes with a click — no extra service required.

1

Install Mac2FA

Download the latest build from GitHub and drag Mac2FA into Applications.

2

Import your accounts

Paste a Google migration link, drop a QR image, or type a Base32 secret by hand.

3

Copy a code

Click an account row to copy its rolling TOTP code — the countdown ring shows when it refreshes.

Native SwiftUI, end to end

A focused dark interface built with SwiftUI — accounts, imports, and manual entry all in one window.

Mac2FA — Accounts
Add Account Import QR Image Paste otpauth://
G
GitHub
hkilimci
428 193
21
A
Apple
mycloud@icloud.com
771 052
21
a
AWS
prod-admin
019 846
21
C
Cloudflare
hkilimci
605 217
21
F
Fastmail
hello@azrapps.com
312 988
21

Google Authenticator

Paste an otpauth-migration:// link or drop the migration QR.

QR Image

Drag any otpauth QR screenshot onto the window or pick a file.

otpauth:// URI

Paste any standard TOTP URI from your provider's setup page.

Manual Entry

Type a Base32 secret with issuer, label, algorithm, digits, and period.

↓ Drop a QR image here or click to choose
Issuer
Azrapps
Account
hello@azrapps.com
Secret (Base32)
JBSWY3DPEHPK3PXP
Algorithm
SHA-1
Digits
6
Period
30s
Cancel Save Account

Click any account row to copy the current TOTP code. The ring shows the time remaining before it rotates.

From download to first code

Get Mac2FA running in a few minutes.

01
Install Mac2FA

Download the latest build from the GitHub Releases page and drag Mac2FA into the Applications folder.

02
Import from Google Authenticator

In Google Authenticator, tap Transfer accounts → Export accounts to generate one or more migration QR codes. Take a screenshot, then drag it onto Mac2FA or paste the otpauth-migration:// link.

03
Add other providers

For non-Google accounts, paste the provider's otpauth://totp/... URI, drop its setup QR, or use Add Account to type the Base32 secret manually.

04
Copy codes & stay updated

Click an account row or the copy icon to put the current TOTP code on the clipboard. Mac2FA can also check GitHub releases for new versions when you launch it.

M
Mac2FA.app
8.4 MB · Universal

Drag to Applications and launch.

QR
migration
otpauth-migration://offline?data=...
5 accounts found
Issuer
Azrapps
Secret
JBSWY3DPEHPK3PXP
SHA-1 6 digits 30s

Secrets stay local

Account data lives in
~/Library/Application Support/Mac2FA and the macOS Keychain.

What you need

Mac2FA is small and focused — almost nothing required.

macOS 14+

Mac2FA targets macOS Sonoma or later and uses modern SwiftUI APIs.

Keychain Access

Standard macOS Keychain access is enough — no third-party services or cloud accounts.

Your TOTP Secrets

A Google Authenticator export, a provider QR code, or a Base32 secret to seed your first account.

Two-factor codes,
right on your Mac

Download Mac2FA for free and keep your TOTP secrets local to your machine.

Download Mac2FA