# inputmask

> Inputmask is a javascript library which creates an input mask. Inputmask can run against vanilla javascript, jQuery and jqlite.

Latest version **5.0.10** (published 2026-07-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install inputmask
pnpm add inputmask
yarn add inputmask
bun add inputmask
```

## Health

**Score 68/100 (B)** — status: active.

Positive: has types package; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.0.10 |
| Published | 2026-07-31 |
| First published | 2017-04-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/inputmask) |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.7 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6459 |
| Author | Robin Herbots |
| Maintainers | robinherbots |
| Keywords | form, input, inputmask, jquery, jquery-plugin, mask, plugins |

## Links

- npm: https://www.npmjs.com/package/inputmask
- Repository: https://github.com/RobinHerbots/Inputmask
- Issues: https://github.com/RobinHerbots/Inputmask/issues
- npm.io page: https://npm.io/package/inputmask

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 5.0.10 (latest) — 2026-07-31
- 5.1.0-beta.28 (next) — 2026-09-12
- 5.1.0-beta.27 — 2026-09-12
- 5.1.0-beta.26 — 2026-09-11
- 5.1.0-beta.17 — 2026-08-06
- 5.0.10-beta.71 — 2026-06-09
- 5.0.10-beta.70 — 2026-06-09
- 5.0.10-beta.64 — 2026-03-24
- 5.0.10-beta.63 — 2026-03-24
- 5.0.10-beta.61 — 2025-10-27
- 5.0.10-beta.60 — 2025-10-27
- 5.0.10-beta.59 — 2025-09-16
- 5.0.10-beta.52 — 2025-09-02
- 5.0.10-beta.49 — 2025-08-20
- 5.0.10-beta.47 — 2025-07-02
- … 202 more at https://npm.io/package/inputmask/versions

## README

# Inputmask

Copyright (c) 2010 - 2023 Robin Herbots Licensed under the MIT license (<https://opensource.org/licenses/MIT>)

The Inputmask has a very permissive license and this will stay that way. But when you use the Inputmask in a commercial setting, be so honest to make a small donation.
This will be appreciated very much.

[![donate](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZNR3EB6JTMMSS)

![npm](https://img.shields.io/npm/v/inputmask) ![npm (tag)](https://img.shields.io/npm/v/inputmask/next) ![Libraries.io dependency status for latest release](https://img.shields.io/librariesio/release/npm/inputmask)

Inputmask is a javascript library that creates an input mask. Inputmask can run against vanilla javascript, jQuery, and jqlite.

An inputmask helps the user with the input by ensuring a predefined format. This can be useful for dates, numerics, phone numbers, ...

Thanks to [Browserstack](https://www.browserstack.com) for providing a free license, so we can automate testing in different browsers and devices.

<a href="https://www.browserstack.com">
  <img src="https://www.browserstack.com/images/layout/browserstack-logo-600x315.png" alt="Browserstack" width="150">
</a>

## Documentation and demo page

<https://robinherbots.github.io/Inputmask/>

---
_Source: https://npm.io/package/inputmask · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
