Jump to a popular page, or start typing.

    BLOG / how-to

    Confidential Matching: What It Is and How It Works

    Confidential matching lets advertisers match customer data to a platform inside a secure enclave, so raw data is never exposed. How it works and its limits.

    Key takeaways

    • Confidential matching matches customer data to an ad platform inside a sealed, secure environment, so raw data is never exposed to either side or to the operator.
    • It uses confidential computing and a trusted execution environment, a protected area of a processor that keeps data encrypted even while it is being used.
    • Data is still hashed with SHA-256 before it is sent, so the match works on irreversible values, not readable personal data.
    • Google introduced confidential matching for its advertising products, including data used for Customer Match.
    • Advertisers can verify the process through remote attestation, checking that the code running in the enclave is what was published.
    • A Google Customer Match list must reach at least 1,000 active members before it can serve, so confidential matching feeds audiences that still have a minimum size.
    • It protects data in transit and during the match; it does not decide whether you had the right to collect that data in the first place.

    What is confidential matching?

    Confidential matching is a way of matching two sets of data, an advertiser’s customer list and an ad platform’s user data, without either party being able to read the other’s records, and without the platform operator being able to read the data while the match runs. It relies on confidential computing: the match happens inside a trusted execution environment, a protected region of a processor that keeps data encrypted even while it is in use. Google introduced confidential matching for its advertising products, describing it on its blog and in Google Ads Help as a way to add a hardware-backed privacy guarantee to data matching. The advertiser’s data goes in encrypted, the match runs inside the sealed enclave, and only the result comes out.

    The data is still hashed before it ever leaves the advertiser. Identifiers such as email and phone are hashed with SHA-256, which produces an irreversible 256-bit value, as defined in the NIST Secure Hash Standard. Confidential matching adds a second layer on top of that hashing: even the hashed values are processed inside the enclave, so they are not exposed to the operator during the match.

    How does confidential matching work?

    Confidential matching works by moving the match into a sealed environment and proving that environment behaves as promised. The flow runs in order:

    1. The advertiser hashes its customer identifiers with SHA-256 before anything leaves its systems.
    2. The hashed data is encrypted and sent to the trusted execution environment, where it stays encrypted in memory.
    3. The match runs inside the enclave, comparing the advertiser’s hashed data against the platform’s, with neither side and not the operator able to read the inputs.
    4. Remote attestation lets the advertiser verify that the code in the enclave is the published, unmodified code before trusting it with data.
    5. Only the match result, the audience that can be used, comes out; the raw and hashed inputs are never exposed.

    Attestation is the part that turns a promise into a check. Rather than trusting that the operator does not read the data, the advertiser can verify that the enclave is running code that cannot expose it. That verifiability is the point of confidential matching, and what separates it from ordinary hashed matching.

    Where can you use confidential matching in Google Ads?

    Confidential matching in Google Ads applies where advertisers upload their own customer data for matching, most visibly Customer Match. Customer Match lets you target users you already know by uploading a hashed list of their details, which Google matches to signed-in accounts. Confidential matching is the technology that can carry out that match inside a secure enclave, so the uploaded data is protected during processing. Google Ads Help notes that a Customer Match list must contain at least 1,000 active members before it can serve, so the audiences confidential matching helps build still have to clear that minimum size. The combination lets an advertiser use its first-party data for targeting while adding a hardware-backed guarantee about how the data is handled.

    Standard hashed matching and confidential matching, side by side

    Confidential matching does not replace hashing; it adds a layer to it. The table shows what each provides.

    PropertyStandard hashed matchingConfidential matching
    Data is hashed before sendingYes, SHA-256Yes, SHA-256
    Operator can read data during matchPossible in principleNo, sealed in an enclave
    Advertiser can verify processingNoYes, via remote attestation

    Why does confidential matching benefit advertisers?

    Confidential matching benefits advertisers because it lowers the risk of using first-party data for matching. Without it, an advertiser hashing and uploading customer data has to trust that the platform handles that data as promised. Confidential matching replaces some of that trust with a technical control: the data is processed inside a sealed enclave, and the advertiser can verify the enclave through attestation. For a business under privacy law such as the GDPR or the DPDP Act, that verifiable handling is easier to defend to a regulator or a customer than a policy statement alone. It does not change what the data can do; it changes how safely it can be used to do it.

    What are the limits of confidential matching?

    Confidential matching protects data during the match; it does not govern whether you should have the data at all. It secures processing, but the lawful basis for collecting and using the customer data is still your responsibility, and no enclave fixes data gathered without consent. It is specific to the platforms and products that offer it, so it is not a universal feature across every ad destination. It also does not improve match quality on its own: a poorly normalised or incomplete list matches badly whether or not the match runs in a secure enclave. And it adds a dependency on the operator’s implementation and attestation being sound. Confidential matching raises the privacy floor for a match. It does not replace consent, data quality, or good governance.

    What Datahash does about this

    Datahash prepares first-party data so it is ready for privacy-preserving matching wherever a platform offers it. It hashes identifiers with SHA-256 after normalising them, applies consent, and sends data to each destination in the format that destination expects, including the hashed customer lists used for Customer Match. The same first-party data layer feeds Google, Meta, Microsoft, Pinterest, Reddit and other destinations, so one pipeline serves them all rather than a separate export each. How matching, hashing and security are handled is documented in the Datahash Signals FAQ, and the destinations that receive hashed first-party data include Microsoft and Pinterest. Datahash does not operate the enclave; it prepares and delivers the data so the platform’s confidential matching has clean, consented, correctly hashed inputs to work with.

    FAQ

    Frequently asked questions

    Can you give an example of confidential computing?

    Confidential matching is itself an example of confidential computing applied to advertising. Confidential computing runs a workload inside a trusted execution environment, a protected part of a processor that keeps data encrypted even while it is being processed. In confidential matching, the workload is comparing an advertiser's hashed customer data against a platform's data, and the enclave ensures neither side, and not the operator, can read the inputs during the match.

    Why is sharing confidential data a problem?

    Sharing confidential data is a problem because once raw data leaves your control, you depend on the recipient to handle it as promised, and any exposure becomes your liability, especially under privacy law such as the GDPR or the DPDP Act. Confidential matching reduces that problem for data matching by hashing the data first and then processing it inside a sealed enclave the advertiser can verify, so raw records are never exposed during the match.

    PUT IT TO WORK

    Reading is good. A live setup is better.