When entering a decimal value into the box you may get a warning. For example, 2345643.00 will return 2,345,643.00 Both iPhone (iOS 4.2) and Android 2.2 web browsers render as normal textbox but give users a Number keypad for data input. There is a similar question that resolves this for one decimal point by setting step=any. This function assumes what is being submitted to it is a string, with a decimal point and two places after the decimal. Form validation using HTML and JavaScript Is there's any way to format an input[type='number'] value to always show 2 decimal places? Force decimal point instead of comma in HTML5 number input , . Tip: The step attribute can be used together with the max and min attributes to create a range of legal values. There are three optional attributes that can be used to set some limits on the number element. If the range is too large for incremental increases to make sense (such as USA ZIP codes, which range from 00001 to 99999 ), the tel type might be a better option; it provides the numeric keypad while forgoing the number's spinner UI feature. The following example displays a numeric input field, where you can enter a value from 1 to 5: Example