Formify Docs

EIN

Validate US Employer Identification Numbers.

EIN

Validates that a value is a US Employer Identification Number (EIN). Both the dashed and plain digit forms are accepted.

Configuration

Config flagTypeDescription
einbooleanWhen true, requires the value to be a valid US EIN.

With useForm

const form = useForm({
  initialValues: { ein: '' },
  validationSchema: {
    ein: { ein: true },
  },
});

With the V builder

import { V } from 'formify-js';

V.ein();

Default message

ScenarioMessage
Value is not a valid EINMust be a valid Employer Identification Number

Examples

ValueResult
'12-3456789'✅ Valid
'123456789'✅ Valid
'12-345678'❌ Invalid (too short)
'123-45-6789'❌ Invalid (wrong shape)

Notes

  • The XX-XXXXXXX shape is enforced — with or without the dash.
  • Useful for business registration forms alongside the SSN validator.

On this page