FindSoftware

Inputmask

JavaScript library that applies an input mask to a form field, so the text a user types follows a predefined format such as a date, a number or a phone number.

Inputmask applies an input mask to a form field: a predefined format that the text a user types must follow, such as a date, a number or a phone number. It can run in memory without a DOM element, for example for use in Node.js, and it supports the dir=“rtl” attribute for right-to-left input.

The core package is framework-agnostic and runs against vanilla JavaScript, jQuery and jqlite. First-party packages wrap it for React, Vue, Svelte, Angular and jQuery.

Worth knowing

The README asks anyone using Inputmask in a commercial setting to make a small donation, and says the license stays permissive.

Identity

Status
Active
Maintainer
Robin Herbots1
Maintained by
Individual1
First release
20127

Rendering and deploy

Install with
script tag with the dist folder files, npm install inputmask, for module bundlers, npm install of a framework wrapper with inputmask (React, Vue, Svelte, Angular, jQuery), jQuery plugin file jquery.inputmask.umd.js for script tags3

Releases

Current major version
55
Last release
2026-07-316

Adoption

GitHub stars
6,4512
npm downloads a week
649,8238
Contributors
909
Dependent repositories
20,40410
Dependent packages
27510

Why these figures do not compare

Sources

  1. 2026-11-16: links, Maintainer, Maintained by, Categories, License, License model
    github.com/RobinHerbots/Inputmask/blob/5.x/README.md
  2. 2026-11-16: links, Written in, GitHub stars
    api.github.com/repos/RobinHerbots/Inputmask
  3. 2026-11-16: Runtime, Install with
    github.com/RobinHerbots/Inputmask/blob/5.x/inputmask-pages/src/assets/Documentation.md
  4. 2026-11-16: Multilingual
    github.com/RobinHerbots/Inputmask/blob/5.x/inputmask-pages/src/assets/Introduction.md
  5. 2026-11-16: Current major version
    registry.npmjs.org/inputmask/latest
  6. 2026-11-16: Last release
    registry.npmjs.org/inputmask
  7. 2026-11-16: First release
    api.github.com/repos/RobinHerbots/Inputmask/commits/8fe24babc6ecf31024d0a1377d0523968df677fe
  8. 2026-11-16: npm downloads a week
    api.npmjs.org/downloads/range/2026-11-01:2026-11-07/inputmask
  9. 2026-11-16: Contributors
    api.github.com/repos/RobinHerbots/Inputmask/contributors?per_page=1
  10. 2026-11-16: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/inputmask

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON