Forked from text-mask/text-mask

Input mask for React, Angular, Ember, Vue, & plain JavaScript


Language: JavaScript

Text Mask

Build Status

Text Mask is an input mask library. It can create input masks for phone, date, currency, zip code, percentage, email, and literally anything!

There are convenient wrappers for React, Angular 2, Ember, and Vue.

Live demo

See it in action, check out the demo page.

Installation and usage

Expected to work with...

IE9+, Android, Samsung Internet, Windows Phone, iOS, Opera, Firefox, Safari, and Chrome


Text Mask is very configurable and allows you to create any type of input mask with minimal APIs. See the documentation for details.


You can easily expand the base functionality of Text Mask with addons for more mask types. Checkout existing addons.


Text Mask supports pasting, browser auto-fill, and all operations that a user would expect while interacting with an input field.

It works on mobile, has no 3rd party dependencies, and has a tiny footprint (less than 4KB gzipped).

For any questions, suggestions, or feature requests

Please file an issue!

Project Statistics

Sourcerank 2
Repository Size 3.66 MB
Stars 1
Forks 0
Watchers 1
Open issues disabled
Dependencies 91
Contributors 28
Tags 239
Last updated
Last pushed

Top Contributors See all

M.K. Safi Loz Jackson Greenkeeper Thomas Jason Brown Andrew Ibby Hadeed Bill Columbia sky-coding Kiran Michael Zedeler Semir Alexandre Bonaventure Geissmann Alexander Mathieu Neron marcocarosi Marcio Junior Jason Gerbes Josemar Luedke Sean Lavine

Recent Tags See all

vue-v4.0.0 March 22, 2017
vanilla-v4.0.0 March 22, 2017
react-v3.0.0 March 22, 2017
ember-v5.0.0 March 22, 2017
core-v4.0.0 March 22, 2017
angular2-v7.0.0 March 22, 2017
angular1-v5.0.0 March 22, 2017
vue-v3.1.3 March 20, 2017
vanilla-v3.2.3 March 20, 2017
react-v2.3.1 March 20, 2017
core-v3.2.3 March 20, 2017
angular1-v4.3.3 March 20, 2017
angular2-v6.3.2 March 13, 2017
addons-v3.5.0 March 13, 2017
vanilla-v3.2.2 March 12, 2017

Something wrong with this page? Make a suggestion

Last synced: 2017-03-29 14:05:33 UTC

Login to resync this repository