Security

2FA QR Code Generator

Live

2FA QR Code with subject-specific controls, reviewable intermediate detail, and private browser processing.

About 2FA QR Code Generator

2FA QR Code with subject-specific controls, reviewable intermediate detail, and private browser processing. Enter base32 secret, account label, issuer, digits, period in a purpose-built 2fa qr code generator interface designed for this subject. An RFC-compatible otpauth URI and current HMAC-SHA-1 code are generated locally for enrollment testing. The result includes current code, seconds remaining, provisioning uri, supporting detail, and clear units or diagnostics. Results depend on entered assumptions, supported formats, browser capabilities, and rounding. Processing stays in your browser, and UtilityPages does not store the values you enter.

Set up 2FA QR Code Generator

Workspace

Source workbench

Edit the source fields below and inspect the rendered output alongside your work.

Complete the fields to prepare a result.

Enter base32 secret.

Enter account label.

Enter issuer.

Enter digits.

Enter period.

2FA QR Code Generator result

Enter the values above, then process to see a detailed result.

How 2FA QR Code Generator works

An RFC-compatible otpauth URI and current HMAC-SHA-1 code are generated locally for enrollment testing.

How it works

An RFC-compatible otpauth URI and current HMAC-SHA-1 code are generated locally for enrollment testing. Results depend on entered assumptions, supported formats, browser capabilities, and rounding.

Examples

2FA QR Code Generator worked example

Example input
{
    "secret": "JBSWY3DPEHPK3PXP",
    "account": "[email protected]",
    "issuer": "UtilityPages",
    "digits": 6,
    "period": 30
}
Expected result
{
    "code": "343403",
    "seconds_remaining": 26,
    "provisioning_uri": "otpauth://totp/UtilityPages:test%40utilitypages.org?secret=JBSWY3DPEHPK3PXP&issuer=UtilityPages&period=30&digits=6"
}

Privacy

This tool does not store your inputs or results on UtilityPages.org.

Citations & sources

  1. Web Cryptography API
  2. Internet standards

Frequently asked questions

How does the 2FA QR Code Generator work?

An RFC-compatible otpauth URI and current HMAC-SHA-1 code are generated locally for enrollment testing.

What information should I enter?

Enter base32 secret, account label, issuer, digits, period. Use values and units from the same scenario so the result is internally consistent.

What results does this tool provide?

It reports current code, seconds remaining, provisioning uri, including intermediate context where it helps you review the answer.

What limitations should I know about?

Results depend on entered assumptions, supported formats, browser capabilities, and rounding.