Email input on mobile
One attribute fixes most email field problems on a phone.
Last updated November 30, 2026 · Keyboards checked on real phones: iPhone (iOS 17 and 18), Galaxy S24 and S25, Pixel 9, Motorola Edge 50 Fusion
<label for="em">Email</label>
<input id="em" name="email" type="email" autocomplete="email">
What type="email" gives you
- The email keyboard. @ and . sit next to the space bar instead of on the symbols page.
- No automatic capital. In a plain text field, the iPhone capitalizes the first letter, so "anna@" becomes "Anna@". Many sign-in systems treat the two as different addresses.
- Basic validation by the browser, which you can style with
:invalidor replace with your own messages.
When you cannot use type="email"
Some sign-in forms take "email or username" in one field. Then use type="text" with inputmode="email", autocapitalize="none", autocorrect="off", spellcheck="false" and autocomplete="username". That keeps the @ keyboard, stops the capital letter and lets password managers fill it.
Validation that does not reject real addresses
Check for one @ with something on both sides and a dot in the domain; that is all you can verify without sending a message. Strip spaces at the start and end, because autofill and paste sometimes add one. Do not reject plus addresses such as [email protected].
Confirm-email fields
Asking people to type their email twice mostly leads to copy and paste of the same typo. Show the address back to them clearly instead, or send a confirmation link.
The email keyboard on each phone
| Phone | Extra keys on the type="email" keyboard |
|---|---|
| iPhone | @ and . beside the space bar |
| Galaxy (Samsung Keyboard) | @, . and a .com key |
| Pixel / Motorola (Gboard) | @ and ., with the space bar still present |
Every one of them still has a space bar, and autofill sometimes adds a trailing space, so always trim the value before you check or store it.
What goes wrong with type="text"
| Person types | type="text" gives | type="email" gives |
|---|---|---|
| [email protected] | [email protected] (capital A) | [email protected] |
| [email protected] | [email protected] after autocorrect — or worse, a different word | [email protected], unchanged |
| [email protected] | keyboard switching to reach @ and . | @ and . on the first page |
Autocorrect is the subtle one: on a plain text field, an iPhone may "fix" part of an address into a dictionary word. Email fields are left alone.
Catching real typos
The browser's check accepts [email protected], because it is a valid address. If you want to catch it, compare the domain with a short list of common ones (gmail.com, yahoo.com, outlook.com, icloud.com, hotmail.com) and suggest a fix: "Did you mean [email protected]?". Make the suggestion a button, and never change the address without asking.
const email = input.value.trim();
const ok = /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email);
Checklist
type="email"andautocomplete="email"(orusernameon a sign-in form).- A visible label, not just a placeholder.
- Trim spaces before checking.
- A gentle typo suggestion for common domains, as a button.
- No second "confirm email" field.
- Text at 16px or larger so the iPhone does not zoom: see stop iPhone zoom on input focus.
Paste the field into the checker to see the keyboard each phone opens and whether autofill is set up.
Frequently asked questions
Does type="email" stop capital letters on iPhone?
Yes. The iPhone does not auto-capitalize email fields. For a text field, add autocapitalize="none".
Which autocomplete value for email?
email. On a sign-in form where the email is the account name, username is also accepted by password managers.
Should I lowercase email addresses?
Lowercase the domain part safely. Most providers also ignore case before the @, but store what the person typed and compare case-insensitively.
Found a mistake or want a check added? Write to contact (at) mobileformcheck.com.