Basic usage

Loading Demo...
  • index.cshtml
  • IndexController.cs

Also available for:

devcraft ninja image

The MaskedTextBox component is part of Telerik UI for ASP.NET Core, a professional grade UI library with 110+ components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.


The Telerik UI for ASP.NET Core MaskedTextBox component allows you to implement specific formatting to ease and validate user’s input.

You can define a mask value, set custom mask rules, add characters, and assign culture names. The masks include mask rules and literals. The latter appears automatically for the user and cannot be deleted.

Furthermore, there are predefined rules for specifying optional digit, letter, or character input which can be easily utilized.

Key Features

  • Mask rules – predefined and custom rules
  • Labels – associate the component with a label HTML element
  • Globalization translation and adaptation of messages to specific cultures
  • Validation – predefined rules for user validation
  • RTL Support – right-to-left content rendering
  • Built-in Accessibility – screen readers and keyboard support

Support & Learning Resources