Coverage · United States
US SSN detection and redaction
OpenAnonymizer finds the US SSN in text and replaces it with a placeholder when its official label confirms it. It runs on a CPU, with no GPU and no API calls.
At a glance
- Country
- United States US
- Format
- SSNSocial Security number
- Placeholder
- Each distinct value gets its own number: US_SSN_1, US_SSN_2, and so on.
- How it is confirmed
- Official label
- Used for
- Social Security benefits, employment and tax in the US, and in practice identity checks for credit, banking and health care.
About the SSN
The SSN is issued by the Social Security Administration. It is nine digits, written AAA-GG-SSSS, and has no check digit.
Numbers are assigned at random since 2011. 078-05-1120 is a famous number that was printed on a sample card in the 1930s and later voided.
- In
- SSN: 078-05-1120
- Out
- SSN:
How OpenAnonymizer handles it
Confirmed by its label. The library does not verify a check digit for this format, even where one exists. The number is masked when its official label is in the text, in the local language and script.
- It runs locally on a CPU, with no GPU and no API calls, so the text never leaves your machine.
- Every package ships every detector, so this format is covered in each of them.
- It covers 34 languages.
Related formats
The same country, or the same kind of number elsewhere.