iPhone keyboard types: what each input opens

One table: the keyboard an iPhone shows for every common type and inputmode, and the characters people cannot type on it.

MarkupKeyboard on iPhoneCannot typeGood for
type="text" (default)Standard keyboard—Names, free text, anything mixed
type="email" or inputmode="email"Email keyboard: @ and . beside the space bar— (nothing blocked)Email addresses
type="url" or inputmode="url"URL keyboard: . / and .com keysSpaceWeb addresses
type="tel" or inputmode="tel"Phone pad: 0–9 and + * #Letters, space, - ( ) .Phone numbers
type="number"Full keyboard, opened on the 123 page— on the keyboard, but the browser throws away values that are not numbersQuantities you count up and down
inputmode="numeric"Number pad: 0–9Everything except 0–9: no minus, no decimal pointCodes made of digits: ZIP, OTP, card
pattern="[0-9]*" with no inputmodeNumber pad: 0–9Everything except 0–9Older iOS versions; same as numeric
inputmode="decimal"Decimal pad: 0–9 and . (a comma in some regions)Minus, space, / ' " and lettersPrices, weights, plain decimals
type="search" or inputmode="search"Standard keyboard with a Search or Go key—Search boxes
inputmode="none"No keyboardEverythingFields with your own on-screen picker
type="date", time, monthDate or time pickerTypingDates and times

US English layouts. We confirmed the standard keyboard and the decimal pad on real iPhones running iOS 17 and iOS 18. Other languages add or move keys, and Android keyboards differ.

inputmode changes the keyboard, not the rules

inputmode only tells the phone which keyboard to show. It does not validate anything, and it does not stop someone pasting text. MDN describes the values this way: numeric needs only the digits 0–9, decimal adds the decimal separator for the user's locale, and on both "devices may or may not show a minus key". On iPhone they don't. When the value has to be a real email, phone number or URL, MDN recommends the matching type instead.

The three mistakes that block people

1. A number pad for something that is not only digits

The decimal pad has ten digits and a point. It has no minus sign, no slash, no space and no quote marks. A field for a temperature below zero, a date like 11/30, a fraction like 3 1/2 or a height like 5' 10" cannot be filled in. The person taps around and leaves. We made this exact mistake on a measurements calculator and only found it on a real iPhone: see feet and inches inputs.

2. type="number" for codes

ZIP codes, card numbers and one-time codes are made of digits, but they are not numbers. A number field drops the leading zero of 02134 and lets "e" through. Use type="text" inputmode="numeric". The full story is in type="number" vs inputmode="numeric".

3. The standard keyboard for email and phone

A plain text field for an email address starts with a capital letter and hides @ on another page. A plain text field for a phone number shows letters. type="email" and type="tel" fix both, with no JavaScript.

enterkeyhint: the label on the return key

enterkeyhint sets the return key's label: enter, done, go, next, previous, search or send. It does not change what the key does, so a "Next" key still needs your own code to move focus. Use it to match the action your form takes.

Check your own form

Paste the HTML into the checker. It draws the keyboard for each field and names any character in your example that the keyboard cannot type.

Frequently asked questions

Which keyboard does type="number" open on iPhone?

The full keyboard, opened on its numbers and symbols page. People can still type letters, but the browser treats a value that is not a valid number as empty.

How do I show the number pad on iPhone?

Use inputmode="numeric" (iOS 13 and later). For older iOS versions add pattern="[0-9]*" as well.

Does the decimal pad have a minus key?

Not on iPhone. If a value can be negative, use the standard keyboard or type="number" and validate it yourself.

Found a mistake or want a check added? Write to contact (at) mobileformcheck.com.