Stop iPhone zoom on input focus

Safari zooms the page when someone taps a field whose text is smaller than 16px. The fix is one line of CSS.

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

Why it happens

When a field's text is 16px or larger, Safari on iPhone focuses it normally. At 15px or less, it zooms the page in so the text is readable, and the person has to pinch back out after typing. The behavior has been in iOS for years and also applies to Chrome and other browsers on iPhone, because they all use Safari's engine.

The fix

input, select, textarea {
  font-size: 16px;   /* or 1rem */
}

That is all. If your design uses smaller text in fields on a computer, scope the rule to small screens:

@media (max-width: 600px) {
  input, select, textarea { font-size: 16px; }
}

What not to do

A common shortcut is to stop the zoom with maximum-scale=1 or user-scalable=no in the viewport tag. That also stops people with low vision from zooming the page, which fails WCAG 1.4.4 (Resize Text). Recent iPhones ignore it for pinch zoom anyway, so you get the accessibility problem for little gain. Fix the font size instead.

Check the computed size, not your CSS

The rule uses the size the browser actually draws. A field set to 0.875rem on a page whose root is 16px draws at 14px and zooms. A component library may set 14px on inputs deep inside its own stylesheet. The checker measures the computed size of each field in its preview, so paste your form together with its styles.

Does 16px look too big?

16px is the default body text size in every browser, so it rarely looks out of place next to normal text. If a field looks oversized, reduce its padding or height rather than the text. Keep the whole field at least 44px tall on phones so it is easy to tap: see touch target size.

Which sizes zoom

Computed font sizeWhat CSS often produces itZooms on iPhone?
12pxfont-size: .75remYes
14px.875rem, Tailwind text-sm, Bootstrap .form-control-smYes
15pxa "compact" design tokenYes
16px1rem, Bootstrap .form-control, browser default textNo
17px and uplarge or "comfortable" inputsNo

The rule applies to every control that takes typing or opens a picker on the page: input, textarea and select. A 14px select box in a filter bar zooms the page just like a text field does.

A real example

A sign-in form uses a component library whose inputs are 14px. On a computer it looks tidy. On an iPhone, tapping Email zooms the page by about 14%, the Sign in button slides off the right edge, and after typing the person has to pinch out to find it. Changing the one rule to font-size: max(16px, 1em) for inputs fixes all of it. The layout barely changes, because the field's height comes mostly from padding.

How to test it

  1. Open the page on an iPhone in Safari, or in Chrome on iPhone (both use the same engine).
  2. Tap each field, including selects and the search box in the header.
  3. If the page grows, inspect that field's computed font-size in Safari's Web Inspector on a Mac, or paste the form and its CSS into the checker, which reports the size per field.

Frequently asked questions

Does the zoom happen on Android?

Chrome on Android does not zoom on focus this way. The 16px rule is mainly about iPhone and iPad.

Is 16px measured in CSS pixels?

Yes, the computed font-size of the field. Text inside the field at 16px or more is not zoomed.

Does the zoom happen in Chrome on iPhone?

Yes. Every browser on iPhone uses Safari's engine, so the same 16px rule applies.

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