Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles
Declares a maximum number of characters that the user can enter. Usually, the user's attempts to enter more characters beyond this limit are ignored by the UI.
Last updated on : 2023-03-20
Browser Versions
IE
Edge
Firefox
Chrome
Safari
Opera
Fully Supported
Partially
No Support
HTML Standard # the-input-element
maxlength attribute for input and textarea elements on IE is fully supported on 10-11 and partially supported on 6-9 IE versions.
maxlength attribute for input and textarea elements on Edge is fully supported on all Edge versions.
maxlength attribute for input and textarea elements on Firefox is fully supported on 4-113 and partially supported on 2-3 Firefox versions.
maxlength attribute for input and textarea elements on Chrome is fully supported on all Chrome versions.
maxlength attribute for input and textarea elements on Safari is fully supported on 5.1-16.4 and partially supported on 3.2-4 Safari versions.
maxlength attribute for input and textarea elements on Opera is fully supported on 15-95 and partially supported on 9.5-12.1 Opera versions.
maxlength attribute for input and textarea elements on Safari on iOS is fully supported on 4.2-16.4 and partially supported on 8.1-8 Safari on iOS versions.
maxlength attribute for input and textarea elements on Android Browser is fully supported on all Android Browser versions.
maxlength attribute for input and textarea elements on Opera Mobile is fully supported on 64-73 and partially supported on 10-12 Opera Mobile versions.
maxlength attribute for input and textarea elements on Chrome for Android is fully supported on all Chrome for Android versions.
maxlength attribute for input and textarea elements on Firefox for Android is fully supported on all Firefox for Android versions.
maxlength attribute for input and textarea elements on Samsung Internet is fully supported on all Samsung Internet versions.
Data sourced from
Overall Browser Compatibility Score
Note:maxlength attribute for input and textarea elements shows a browser compatibility score of 100. This is a collective score out of 100 to represent browser support of a web technology. The higher this score is, the greater is the browser compatibility. The browser compatibility score is not a 100% reflection for every browser and the web technology support. However, it does give you an estimate on how much you should rely on a particular web technology in terms of browser compatibility.
Test on 3000+ browsers for maxlength attribute for input and textarea elements & more
Test your website for maxlength attribute for input and textarea elements and other web technologies. Get 100 FREE automation test minutes!
Test NowKaneAI - Testing Assistant
World’s first AI-Powered E2E testing agent.
Did you find this page helpful?