Tested tool guide
Tested browser tools
Checked August 16, 2026
What OTP URI Parser does, with a checked example
An otpauth URI is the text normally carried inside an authenticator enrollment QR code. This parser separates the otpauth scheme, TOTP or HOTP mode, label, shared secret, issuer, and mode-specific query parameters, then flags malformed or incomplete configurations. Percent-encoded label characters are decoded so an account such as alice%40example.com can be inspected as [email protected]. The shared secret is key material, not the temporary numeric code shown by an authenticator. Because exposing that secret compromises the enrollment, parsing occurs in the browser and the URI is not uploaded.
Worked example
A concrete input and expected output from the current implementation.
Input
otpauth://totp/Example:alice%40example.com?secret=JBSWY3DPEHPK3PXP&issuer=Example&algorithm=SHA1&digits=6&period=30
->
Expected output
Valid TOTP configuration; type: totp; label: Example:[email protected]; issuer: Example; secret: JBSWY3DPEHPK3PXP; algorithm: SHA1; digits: 6; period: 30 seconds
The URI selects TOTP, and the path label decodes alice%40example.com to [email protected]. The remaining values come directly from the query parameters: period 30 specifies a 30-second time step, and digits 6 specifies six-digit codes.