# imaskjs

Vanilla JavaScript input mask library that formats values typed into input fields and returns raw and unmasked values.


Source: https://findsoftware.frbit.cloud/imask/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- home: https://imask.js.org
- repository: https://github.com/uNmAnNeR/imaskjs
- docs: https://imask.js.org/
- forum: https://github.com/uNmAnNeR/imaskjs/discussions

### Identity

- status: active
- maintainer: uNmAnNeR
- maintainerType: individual
- parent: unknown
- firstRelease: 2017
- hqCountry: unknown

### Kind

- category: forms
- hosting: unknown
- language: javascript
- runtime: unknown
- runtimeMin: unknown
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: unknown
- renderingModes: not applicable
- installMethod: npm, script tag from unpkg

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 7
- latestReleaseDate: 2024-05-21

### Adoption

- githubStargazers: 5177
- packagistDownloads: not applicable
- npmWeeklyDownloads: 2105113
- contributors: 31
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 2304
- dependentPackages: 322

### Sources

- urls: https://imask.js.org/ (read 2026-11-16)
- urls: https://api.github.com/repos/uNmAnNeR/imaskjs (read 2026-11-16)
- urls: https://github.com/uNmAnNeR/imaskjs/blob/master/README.md (read 2026-11-16)
- firstRelease: https://api.github.com/repos/uNmAnNeR/imaskjs/tags?per_page=100 (read 2026-11-16)
- maintainer: https://raw.githubusercontent.com/uNmAnNeR/imaskjs/master/LICENSE (read 2026-11-16)
- category: https://github.com/uNmAnNeR/imaskjs/blob/master/README.md (read 2026-11-16)
- language: https://api.github.com/repos/uNmAnNeR/imaskjs (read 2026-11-16)
- installMethod: https://imask.js.org/guide.html (read 2026-11-16)
- installMethod: https://imask.js.org/guide.html (read 2026-11-16)
- license: https://raw.githubusercontent.com/uNmAnNeR/imaskjs/master/LICENSE (read 2026-11-16)
- licenseModel: https://raw.githubusercontent.com/uNmAnNeR/imaskjs/master/LICENSE (read 2026-11-16)
- currentMajor: https://api.github.com/repos/uNmAnNeR/imaskjs/releases (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/uNmAnNeR/imaskjs/releases (read 2026-11-16)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-11-01:2026-11-07/imask (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/uNmAnNeR/imaskjs (read 2026-11-16)
- contributors: https://api.github.com/repos/uNmAnNeR/imaskjs/contributors?per_page=1 (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/imask (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/imask (read 2026-11-16)

## Notes

imaskjs is a vanilla JavaScript input mask that applies a mask to an HTML input element and gives access to raw and unmasked values. Masks can be a regular expression, a function, a number or date format, a pattern with fixed parts and custom definitions, or a dynamic mask chosen on the fly. A pipe converts and formats values, and the library also works with web components and contenteditable elements.

## Worth knowing

The guide says a mask applied to an input element needs `type="text"`, because other input types are not supported. The repository is a monorepo that also ships packages for Vue, Angular, React, React Native, Svelte and Solid, listed in the README as plugins.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
