Formify Docs

EIN

Format US Employer Identification Numbers as the user types

EIN

The ein formatter masks a US Employer Identification Number into XX-XXXXXXX (two digits, dash, seven digits) as the user types.

Usage

validationSchema: {
  ein: { format: "ein" },
}

Result

TypedResult
12345678912-3456789

Things to know

  • Pair with the ein validator (ein: true) for full validation.
  • For the individual TIN variant, see itin; for a custom letter mask, see tin.

On this page