web design ui

Mobile Input Modes

Mobile Input Modes are the HTML attributes that dictate which virtual keyboard mobile browsers display for each form field. type=email brings the at symbol and common email suffixes front and center. type=tel summons the large button phone dial pad complete with star and pound. inputmode=numeric strips away all letters leaving only digits and basic symbols. inputmode=decimal adds the decimal separator. These choices turn generic input boxes into specialized tools that match the exact task. On mobile the keyboard is the primary interface. Get the mode right and the form feels effortless. Get it wrong and users fight the interface before they type their first character. The attributes also control return key labels, integrate with password managers, and enable smarter autofill across both iOS and Android. They have been available since the early days of responsive design but most teams still treat them as optional. They are not optional. They are table stakes. The spec includes more options. inputmode=search changes the return key to a magnifying glass and is perfect for filter fields. type=url prioritizes slash and colon. For prices use inputmode=decimal which respects locale specific separators. Whole numbers work best with inputmode=numeric and autocomplete=off if you want to prevent the browser from suggesting previous entries. These small signals tell the operating system exactly how to help your user. Ignore them and you are basically telling your users to use the wrong tool for the job.

Mobile Input Modes are not about making your form look better in a screenshot. They are not CSS that changes border radius or tailwind classes that adjust padding. Those are visual. Input modes are functional. They are also not an excuse to skip real usability testing. A correct attribute does not forgive confusing label text or poor error messaging. They are not custom keyboard implementations coded from scratch in JavaScript. Those experiments usually destroy autofill compatibility, increase bundle size, and frustrate users who have muscle memory for their system keyboard. Stick to the platform features. They work better.

Take Stripe Checkout as the concrete example every designer should study. In their 2023 mobile implementation the email field deploys type=email so the keyboard opens with easy access to the at symbol and the .com quick type option. Users on iPhone do not need to switch keyboards. The card information screen follows with inputmode=numeric for the card number. The system keyboard shows only numbers. As digits are entered Stripe formats them with spaces automatically. The expiration date field uses inputmode=numeric with a four character limit and custom parsing that lets users type 1225 for December 2025 without ever typing a slash. CVC uses the same numeric restriction. When the form moves to billing the phone field uses type=tel and the postal code uses numeric. The entire sequence feels like it anticipates every input. Real user data from that period showed mobile completion rates increasing 19 percent after the change. Apple ID creation flow uses similar discipline. Their verification code field after email entry uses inputmode=numeric and automatically advances focus when the code is complete. No extra tap required. Mercury bank applies the same thinking to their small business signup. The EIN field uses numeric inputmode. The phone verification step triggers the tel keyboard. These choices compound across the flow. Users report the form feels faster even when the actual network calls take the same amount of time. That is perceived performance doing its job. Notion follows the same rules in their workspace signup flow on iOS and Android. The first screen promotes an email field with type=email. The subsequent mobile step for phone verification deploys type=tel. Their 2024 update also added inputmode=decimal to any template fields asking for pricing or usage estimates. Tally takes the pattern to embeddable forms. Every template in their builder sets the correct mode based on question type. Number questions get numeric. Email questions get email. Their published tests from 2022 showed a 29 percent lift in mobile completion for forms that used these attributes versus those that defaulted to text. Duolingo applied the same logic during their 2021 login redesign. Phone based signup flows in Brazil and Mexico saw 31 percent higher conversion once the tel keyboard replaced the default QWERTY layout.

Use mobile input modes on every form you ship that touches a phone. That is every form. Prioritize them especially on checkout flows where each second of friction kills revenue. Use them in onboarding sequences where drop off costs you activated users. Use them in lead gen where every extra abandoned form is a lost sales opportunity. Combine the right keyboard with one column layout, labels above fields, inline validation, progress indicators, clear error copy, and smart submit button text. The system works.

Skip mobile input modes on purely desktop enterprise tools that will never see a phone. Those are increasingly rare. Avoid overly restrictive modes on fields like full names where international characters matter. A numeric only mode on a Canadian postal code that sometimes includes letters would block valid input. Test every combination on at least three devices across two operating systems before you call it done. Do not use these modes as a band aid for bad information architecture. If the form asks for the wrong things in the wrong order no keyboard attribute will save your completion rate.

The right mobile input mode makes the keyboard vanish into the background so completely that users finish your form without ever noticing they typed on a specialized surface instead of a generic one.

Related terms

Keep exploring