imaskjs vanilla javascript input mask Docs, Examples, Demo https://imask.js.org/ Install npm install imask and import IMask from 'imask'; or use CDN: <script src="https://unpkg.com/imask"></script> Build & Test npm run make