Soenneker.Normalizers.Ein
4.0.209
Prefix Reserved
dotnet add package Soenneker.Normalizers.Ein --version 4.0.209
NuGet\Install-Package Soenneker.Normalizers.Ein -Version 4.0.209
<PackageReference Include="Soenneker.Normalizers.Ein" Version="4.0.209" />
<PackageVersion Include="Soenneker.Normalizers.Ein" Version="4.0.209" />
<PackageReference Include="Soenneker.Normalizers.Ein" />
paket add Soenneker.Normalizers.Ein --version 4.0.209
#r "nuget: Soenneker.Normalizers.Ein, 4.0.209"
#:package Soenneker.Normalizers.Ein@4.0.209
#addin nuget:?package=Soenneker.Normalizers.Ein&version=4.0.209
#tool nuget:?package=Soenneker.Normalizers.Ein&version=4.0.209
Soenneker.Normalizers.Ein
Extracts nine ASCII digits from user input and formats them as XX-XXXXXXX.
Installation
dotnet add package Soenneker.Normalizers.Ein
Registration
using Soenneker.Normalizers.Ein.Registrars;
builder.Services.AddEinNormalizerAsSingleton();
// or: builder.Services.AddEinNormalizerAsScoped();
The implementation has no mutable per-call state and can be shared as a singleton.
Usage
using Soenneker.Normalizers.Ein.Abstract;
string? normalized = normalizer.Normalize("12 345 6789");
// "12-3456789"
Behavior is intentionally narrow:
| Input | Result |
|---|---|
123456789 |
12-3456789 |
12-3456789 |
12-3456789 |
abc12.345.6789xyz |
12-3456789 |
12345678 |
null |
1234567890 |
null |
| null, empty, or whitespace | null |
Non-ASCII digits do not count. Non-numeric characters are ignored, the original input must be between 9 and 20 characters, and the result is null unless exactly nine digits remain.
This is formatting, not EIN verification. It does not validate IRS prefix assignments, confirm that an EIN was issued, or establish that the identifier belongs to an organization. Perform any required business verification separately.
EINs are sensitive identifiers. Avoid logging raw or normalized values, and apply appropriate access controls and retention rules when storing them.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Soenneker.Extensions.String (>= 4.0.734)
- Soenneker.Normalizers.Base (>= 4.0.49)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.209 | 0 | 8/31/2026 |
| 4.0.208 | 0 | 8/31/2026 |
| 4.0.207 | 22 | 8/30/2026 |
| 4.0.206 | 33 | 8/30/2026 |
| 4.0.205 | 36 | 8/30/2026 |
| 4.0.204 | 36 | 8/30/2026 |
| 4.0.203 | 33 | 8/30/2026 |
| 4.0.202 | 35 | 8/30/2026 |
| 4.0.201 | 41 | 8/29/2026 |
| 4.0.200 | 45 | 8/29/2026 |
| 4.0.199 | 36 | 8/29/2026 |
| 4.0.198 | 36 | 8/29/2026 |
| 4.0.197 | 50 | 8/29/2026 |
| 4.0.196 | 83 | 8/26/2026 |
| 4.0.195 | 79 | 8/25/2026 |
| 4.0.194 | 73 | 8/25/2026 |
| 4.0.193 | 93 | 8/21/2026 |
| 4.0.192 | 106 | 8/18/2026 |
| 4.0.191 | 115 | 8/13/2026 |
| 4.0.190 | 92 | 8/12/2026 |
Update dependency Soenneker.Extensions.String to 4.0.734 (#718)