HTML5 Please

<input type=number>

Safe to use with polyfillhtml

A number input will fallback to a plain text input if it's not supported.

Verdict
Safe to use
Category
HTML features
Browser support
Can I Use
Works in
all modern browsers

Should you use <input type=number> in 2026?

It is supported by all major browsers. Jonathan Stipe's Number polyfill doesn't need any additional code changes but does require jQuery and CSS to style buttons.

Safari on iOS and the Browser on Android 4.0 (Ice Cream Sandwich) do show number input, but do not use "step", "min" or "max" attributes and neither show increment/decrement buttons.

Polyfills and fallbacks

Number polyfill