Advertise here

NEW  Video tutorials for jQuery and Javascript are now on Videos page.

imask.js – Vanilla Javascript Input Mask

November 25, 2017     421     Form Elements
imask.js – Vanilla Javascript Input Mask

imask.js is a vanillajavascript library to create input masks.


  • get and set raw and unmasked values easily
  • no external dependencies
  • RegExp mask
  • Functional mask
  • Number mask (integer and decimal)
  • Date mask (various format support)
  • Dynamic/on-the-fly mask
  • Pattern mask
    • show placeholder always and only when necessary
    • unmasked value can contain fixed parts
    • optional input parts (greedy)

Related Plugins

Latest Plugins

Subscribe to Newsletter

Subscribe to email newsletter for latest jQuery plugins & tutorials.


AdvertisementAdvertise with us!
Angular, React and Javascript MV* Frameworks | MVish