# Two-factor QR code

> Create a two-factor (TOTP) QR code for Google Authenticator and others. The key is generated in your browser and never sent anywhere.

- Web page: <https://getklyk.io/en/qr-code-generator/two-factor>
- Breadcrumb: [Klyk](https://getklyk.io/en) › [Features](https://getklyk.io/en/features) › [QR code generator](https://getklyk.io/en/qr-code-generator) › Two-factor QR code
- Version française: <https://getklyk.io/generateur-qr-code/double-authentification.md>

## A two-factor authentication QR code

To set up two-factor authentication for a service you run: type the key, or generate one, and the code adds it to Google Authenticator, Microsoft Authenticator or any TOTP app. The key never leaves your browser.

The generator runs on the web page, in the browser; this is what it offers.

### Content

- Link: The code leads straight to this address.
- Text: The text shown when scanned
- Wi-Fi: When scanned, the phone offers to join the network without typing anything.
- Contact: When scanned, the phone offers to add the card to its contacts. Empty fields are left out.
- Email: When scanned, the mail app opens with the email ready to send.
- Call: When scanned, the phone offers to call this number.
- SMS: When scanned, the messages app opens with the text already written: all that is left is to send it.
- WhatsApp: When scanned, WhatsApp opens the chat with this number, the message ready to send.
- Event: When scanned, the phone offers to add the event to its calendar, at the right time wherever it is.
- Place: Paste coordinates, or the link to a place copied from Google Maps, Apple Maps or OpenStreetMap.
- 2FA: When scanned, the authenticator app adds the account and starts producing its codes.

### Design

- Palette: Ink, Riso, Midnight, Candy, Forest, Sunset, Ocean, Orbit
- Modules: Square, Dots, Rounded, Classy, Fluid, Vertical bars, Horizontal bars
- Eyes: Ring (Square, Rounded, Circle, Leaf, Dotted), Centre (Square, Rounded, Round, Leaf)
- Background: Solid, Gradient, Radial, Transparent background
- Logo: PNG, JPEG, WebP or SVG, under about 80 KB. The modules under the logo are erased: correction goes to H.
- Frame: Label, Ticket, Bubble, Badge, Phone, Text only. The text is drawn as outlines: it prints exactly as shown, with no font to go missing.
- Advanced: Margin, Error correction (L, M, Q, H)

### Readability

- Contrast
- Quiet zone
- Logo
- Module shape
- Density
- Frame text
- Test scan

### Download

- SVG: Vector, for print
- PNG 512, 1024, 2048, 4096 px, 300 dpi
- Copy
- Print

Computed in your browser. Nothing is sent, nothing is kept.

## From the key to six-digit codes

### 1. The code is scanned

From the authenticator app, with « Add an account ».

### 2. The account is created

Under the service and account typed, with the code’s key.

### 3. Codes start rolling

A new code every 30 seconds, the one the service expects.

## For those who manage access

### Your own application

Show your users’ enrolment key as a QR code, during development or a test.

### A key received as text

A service gives the key in plain text only: the code saves copying it by hand.

### Shared accounts

Hand access to a colleague, in person, without sending the key in a message.

### Backups

Recreate the QR code of a key kept somewhere safe, for a new phone.

## Security first

### Computed here, sent nowhere

The key is generated with the browser’s random generator (160 bits) and encoded on the page. Nothing is sent, nothing is kept.

### A code not to show around

Whoever scans it gets the same sign-in codes: show it on screen, to its owner only, and do not print it.

### The otpauth:// format

The one every authenticator app reads, with the key in base32. SHA-1, 6 digits and 30 s by default, the most compatible settings.

### The service’s key comes first

For an existing account, use the key the service provides: a key generated here only works for a service you set up yourself.

## Frequently asked questions

### Which apps read this QR code?

Every TOTP app: Google Authenticator, Microsoft Authenticator, 1Password, Bitwarden, Aegis, FreeOTP and the rest.

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

Here, the computing happens entirely in your browser: the key is neither sent nor kept. You can check by going offline before typing it: the code is drawn all the same.

### When should I change the algorithm, digits or period?

Only if the service requires it. Google Authenticator ignores these settings and assumes SHA-1, 6 digits and 30 seconds.

### Can I use this for my Google account or my bank?

Those services show their own QR code when you turn two-factor on: scan that one directly. This generator is for keys you manage yourself.

## Keep exploring

- [Wi-Fi QR code](https://getklyk.io/en/qr-code-generator/wifi): Guests join the network with one scan, no password to type.
- [Business card QR code](https://getklyk.io/en/qr-code-generator/vcard): Your contact card goes into the phone’s contacts with one scan, nothing to copy.
- [Dynamic QR code](https://getklyk.io/en/dynamic-qr-code): Change where a printed code leads, and count its scans.

## What if the destination changes one day?

Create the code from a short link: the same look, a destination you can change at any time, and scans counted.

[Create a dynamic QR code](https://getklyk.io/en/signup) · [QR code generator](https://getklyk.io/en/qr-code-generator)
