---
title: "IMask"
description: "Vanilla JS input masking supporting pattern, number, date, regex and dynamic masks, with official React, Vue, Svelte and Solid bindings."
canonical: "https://vibing.inc/library/imask-vg-1868"
category: "UI Components & Libraries"
subcategory: "Forms & inputs"
license: "MIT"
author: "Alexey Kryazhev (@uNmAnNeR)"
source: "https://imask.js.org"
---

# IMask
Vanilla JS input masking supporting pattern, number, date, regex and dynamic masks, with official React, Vue, Svelte and Solid bindings.
## Facts
- Source: https://imask.js.org
- Category: UI Components & Libraries / Forms & inputs
- Author: Alexey Kryazhev (@uNmAnNeR)
- Licence: MIT
- Tags: input-mask, forms, vanilla-js, react
## Why it's a gem
The only mask library that handles dynamic masks (card type switching) without hacks
---
Listed in The Vibeary: https://vibing.inc/library/imask-vg-1868 · JSON: https://vibing.inc/api/public/library/gems/imask-vg-1868