# Input Mask

## Content



The InputMask control provides a way to govern values entered by a user. The control lets a user edit strings using a mask that prevents invalid input and skips over literals as the user types, such as slashes in date. You can use the [Mask](/componentone/api/mvc/online-mvc-core/dotnet-api/C1.AspNetCore.Mvc/C1.Web.Mvc.InputMask.Mask.html) property to specify the value of the InputMask control.

![](https://cdn.mescius.io/document-site-files/images/9b6a6cfe-b8e8-42e9-8a04-da6cb7762977/images/inputmaskqs.png)

The mask used to validate the input is defined by the mask property, which may contain one or more of the following special characters:

|   **0**   |   Digit.   |
| --- | --- |
|   **9**   |   Digit or space.   |
|   **#**   |   Digit, sign, or space.   |
|   **L**   |   Letter.   |
|   **l**   |   Letter or space.   |
|   **A**   |   Alphanumeric.   |
|   **a**   |   Alphanumeric or space.   |
|   .   |   Localized decimal point.   |
|   **,**   |   Localized thousand separator.   |
|   ****:   |   Localized time separator.   |
|   **/**   |   Localized date separator.   |
|   **$**   |   Localized currency symbol.   |
|   **<**   |   Converts characters that follow to lowercase.   |
|   **\>**   |   Converts characters that follow to uppercase.   |
|   **|**   |   Disables case conversion.   |
|   **\\**   |   Escapes any character, turning it into a literal.   |
|   **９**   |   (\\uff19)  DBCS Digit.   |
|   **Ｊ**   |   (\\uff2a)  DBCS Hiragana.   |
|   **Ｇ**   |   (\\uff27)  DBCS big Hiragana.   |
|   **Ｋ**   |   (\\uff2b)  DBCS Katakana.   |
|   **Ｎ**   |   (\\uff2e)  DBCS big Katakana.   |
|   **K**   |   SBCS Katakana.   |
|   **N**   |   SBCS big Katakana.   |
|   **Ｚ**   |   (\\uff3a)  Any DBCS character.   |
|   **H**   |   Any SBCS character.   |
|   **All others**   |   Literals.   |