Supported Data TypesSupported Formats

Supported Formats

Complete list of format names for structure-preserving masking — use these exact strings in the format field of masking requests.

Formats are used to preserve the structure of the original value while masking the actual data, or to override auto-detection when the entity type is known.

Using formats

Provide the format field in your masking request to specify which format to apply:

{
  "mask": [
    {
      "value": "(408) 426-9989",
      "format": "Phone Number",
      "token_name": "Numeric Token"
    }
  ]
}

Format names are case- and spelling-sensitive. Use the exact strings listed below. Invalid format names return errors such as format name not defined.

Complete format list

Format NameAllowed DelimitersExampleMasked
Person Name" " , . - 'John D. Smithwewe m. Sdfd
Email Address" " @test.user@example.comtqwq.ere@eer.vdf
Phone Number" " . - ( ) + x extension ext ,+1 (234) 567-8900-9588
Address" " , . - / ( ) #123, Main St. Apt#4***, M*** S*. A**#4
Organization" " , . -Protect_Inc.wew_ewe
URL/ : // ? & # , = + .https://example.com/path?id=1https://MMDSD/ddw?we=\*
IP Address" " .192.168.1.1345.232.3.1
Mac Address- :00:1A:2B:3C:4D:5E43:56:67
Fax Number- ( ) . " " + / ,+1 (555) 123-4567+4 (334) 534-6789
Social Identification Numbers- " "123-45-6789434-45-6789
Passport Number" " - , : ; .M123-4567f233-rwt
Driving License Number" " -TN 45 20230012345RE 43 34343
Licence Number- / . _DL-042011014964634-43434343
Nationality(none)Indianuhrwt
Vehicle Identification Number- :1H_GCM82633A12345645_dadae
Registration Number" " - , :MH-12-AB-123432-WE-56-1234
Username" " , . - _ @ 'john_doe@example.comjfd@emp.dwe
Credit Card(none)4111111111111111435452345
Credit Card Expiration Date/ - , : " "27-Dec83-hbr
CVV(none)123***
Bank Account Number- " " / .123456/8901232323/9012
Routing Number" " -1100_00425_00
Swift" " (none)HD,FCINBB****INBB
TAN" " - (none)ABC-D12345E343-ERE
Policy No" " - , :POL-123-456ret-656-456
Pan(none)ABCDE1234Fere1234F
Insurance Number" " - , :123-45-67893456-54-6789
Pin(none)7865yhtj
Medical Record Number" " -MRN-123456TYE-ER456
Date/ - , : " "6/24/20216/24/2021

When to use formats

SituationUse format?
Auto-detection is sufficientNot required
Downstream system requires specific structureYes
Detection is ambiguous (value could be multiple types)Yes
You want to override what auto-detection would pickYes

When both format and auto-detection are possible, format always wins.