autocomplete

Browser autofill hints for one-tap form completion. The single most impactful attribute for form conversion on mobile devices.

Overview

The autocomplete attribute tells the browser what kind of data a field expects, enabling one-tap autofill. On mobile, this means users can complete an entire checkout form by tapping a single autofill suggestion instead of typing on a small keyboard.

Getting autocomplete values right is the single highest-impact change you can make for form conversion on mobile devices.

Applies to: <input>, <select>, <textarea>

Personal Information

ValuePurpose
nameFull name
given-nameFirst name
family-nameLast name
honorific-prefixTitle (Mr., Dr., etc.)
nicknameDisplay name or handle
emailEmail address
telFull phone number with country code
tel-nationalPhone number without country code
bdayDate of birth
organizationCompany or organization name
organization-titleJob title

Address

Prefix address values with shipping or billing to distinguish multiple address forms on the same page.

ValuePurpose
street-addressFull street address (may be multiline)
address-line1First line of street address
address-line2Apartment, suite, unit
address-level2City
address-level1State, province, or region
postal-codeZIP or postal code
countryCountry code
country-nameCountry name (localized)

Payment

ValuePurpose
cc-nameCardholder name
cc-numberCard number
cc-expExpiration date (MM/YY)
cc-exp-monthExpiration month
cc-exp-yearExpiration year
cc-cscSecurity code (CVV/CVC)
cc-typeCard type (Visa, Mastercard, etc.)

Authentication

Use current-password for sign-in forms and new-password for registration or password-change forms. This distinction helps password managers generate and store passwords correctly.

ValuePurpose
usernameUsername or account identifier
current-passwordExisting password (sign-in)
new-passwordNew password (registration or change)
one-time-codeSMS or email verification code

One-Time Codes

The one-time-code value triggers platform-specific autofill from SMS or email. On iOS, the verification code appears directly in the keyboard suggestions. On Android, it appears as a notification action. Pair with inputmode="numeric" for the right keyboard.

Special Values

ValueEffect
onBrowser determines the autocomplete type (default)
offDisable autofill for this field

Note: Browsers may ignore autocomplete="off" for login fields. If you need to prevent autofill on a non-login field, use a non-standard value like autocomplete="nope" as a workaround.

See Also