WebOTP Auto-Fill
Enable automatic OTP code filling on Android browsers.
WebOTP enables automatic extraction and filling of OTP codes from SMS messages on Android browsers.
How It Works
- User requests an OTP (login, 2FA, phone verification)
- SMS arrives with specially formatted message
- Browser detects the SMS and extracts the code
- Code auto-fills into the input field
- Form can submit automatically
Browser Support
WebOTP works on Android devices only:
| Browser | Minimum Version |
|---|---|
| Chrome | 84+ |
| Edge | 84+ |
| Opera | 60+ |
| Samsung Internet | 14+ |
WARNING
Not supported on iOS Safari or desktop browsers.
SMS Format
Add this line at the end of your SMS message:
@yourdomain.com #%code%
Complete Example
Your verification code is %code%
@yourdomain.com #%code%
Format Rules
- Domain follows
@symbol (nohttps://or paths) - Code follows
#symbol - Space required between domain and code
- Must be the last line of the SMS
IMPORTANT
Subdomains matter: www.example.com is different from example.com. Use your exact domain.
Requirements
- HTTPS - Your website must use SSL
- Exact domain - Must match your site exactly
- Valid SSL certificate - Self-signed certificates won’t work
Where to Add
Add the WebOTP format to your SMS templates in:
- SMS → Settings → 2FA & Login - For login and 2FA messages
- SMS Woo Pro → Settings - For WooCommerce verification
Supported Features
WP SMS Pro
- Two-factor authentication on WordPress login
- SMS OTP login
WooCommerce Pro
- Checkout phone verification
- Account login verification
- Phone number modals
Troubleshooting
OTP Not Auto-Filling?
- Check browser - Must be supported Android browser
- Verify HTTPS - Site must use SSL
- Check SMS format - Domain and code on last line
- Domain match - Must exactly match your site URL
- Check position - WebOTP line must be last in message
Related
- 2FA & Login Settings - Configure 2FA
- WooCommerce 2FA - WooCommerce verification
- WooCommerce Variables - SMS variables
Last updated: December 28, 2025