Format-Preserving Encryption
Format-preserving encryption (FPE) is a way of encrypting data so that the scrambled output keeps the same format as the original input, such as a 16-digit card number producing another 16-digit number. This lets encrypted values fit into existing systems, forms, and databases that expect a specific structure, without changing field lengths or character types. FPE protects the confidentiality of the data while leaving its shape recognizable to downstream applications.
Format-preserving encryption is a symmetric encryption technique in which the ciphertext conforms to the same format and domain (for example, alphabet, length, or character set) as the plaintext. NIST SP 800-38G specifies the FF1 and FF3 (later FF3-1) block-cipher modes as approved FPE methods. As a cryptographic confidentiality control, FPE belongs to information security rather than data governance; it does not by itself address data ownership, lineage, or retention. Critically, FPE is a reversible transformation keyed by a secret, so encrypted values remain re-identifiable and therefore should generally be treated as personal data (not anonymized) where the source data is personal; applying FPE does not remove data from the scope of most data protection regimes. This entry defines the concept and its cryptographic function only; it does not cover key management practices, applicable lawful bases for processing, cross-border transfer requirements, or the distinction between FPE and vendor-specific tokenization implementations, some of which market FPE under the term tokenization despite differing security properties.
Why it matters
Format-preserving encryption addresses a practical constraint that conventional encryption often cannot: legacy systems, databases, and application forms frequently expect a specific field format, such as a fixed-length numeric string. Because standard block-cipher output changes both the length and character set of a value, retrofitting encryption into these systems can require costly schema changes. FPE lets organizations protect the confidentiality of structured data, such as account or card numbers, while keeping the ciphertext in the same shape the downstream system expects, reducing integration friction.
Who it's relevant to
Inside FPE
Common questions
Answers to the questions practitioners most commonly ask about FPE.