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

  1. User requests an OTP (login, 2FA, phone verification)
  2. SMS arrives with specially formatted message
  3. Browser detects the SMS and extracts the code
  4. Code auto-fills into the input field
  5. Form can submit automatically

Browser Support

WebOTP works on Android devices only:

BrowserMinimum Version
Chrome84+
Edge84+
Opera60+
Samsung Internet14+

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 (no https:// 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?

  1. Check browser - Must be supported Android browser
  2. Verify HTTPS - Site must use SSL
  3. Check SMS format - Domain and code on last line
  4. Domain match - Must exactly match your site URL
  5. Check position - WebOTP line must be last in message

Last updated: December 28, 2025