Data processing agreement (DPA): what it must contain, with a template

What a data processing agreement (DPA) is, when the GDPR requires one, what article 28 says must be in it, how sub-processors and transfers outside the EU fit in, and a free template you can copy and complete.

Last checked on 24 November 2026

In short

  • If a company processes personal data on your behalf, such as your host or email provider, the GDPR requires a written contract with it.
  • Article 28(3) lists what the contract must cover: instructions, confidentiality, security, sub-processors, assistance, deletion and audits.
  • The European Commission has published standard clauses you can use instead of writing your own.
  • Both the controller and the processor can be fined if the contract is missing.

What is a data processing agreement?

A data processing agreement, usually shortened to DPA, is the contract between an organisation that decides what happens with personal data and a company that processes that data on its behalf. Think of your website: your hosting provider stores your visitors' data, your email service sends your newsletter, your chat tool stores conversations. They all work with personal data for you, and the GDPR says that relationship must be set out in a contract.

The obligation comes from article 28 of the GDPR. It requires a "contract or other legal act" that binds the processor to the controller, in writing, which includes electronic form. Spoken agreements, however good, don't count. Some providers call it a data processing addendum, because it is added to their terms of service.

Controller and processor

The GDPR distinguishes two roles:

  • Controller (article 4(7)): the person or organisation that, alone or jointly with others, determines the purposes and means of the processing. For your website, that is you.
  • Processor (article 4(8)): the person or organisation that processes personal data on behalf of the controller. The hosting company, the email service and the chat tool.

What counts is what happens in practice, not what the contract says. The EDPB guidelines on controller and processor explain that a provider who uses the data for its own purposes is not acting on your behalf for that part. Article 28(10) adds that a processor who starts determining the purposes and means itself is treated as a controller for that processing.

A provider that drafts its own terms on a take-it-or-leave-it basis can still be your processor. According to the EDPB, the fact that the service provider prepared the contract does not make it a controller. It also doesn't free you from your obligations: by accepting the terms and using the service, you take responsibility for them.

When do you need one?

You need a DPA whenever a company processes personal data on your behalf. For a typical website or webshop:

  • Hosting. Storing data on servers is processing. The EDPB uses exactly this example: a hosting service that only stores data for a customer is a processor, and a contract under article 28 is required.
  • Email marketing. The provider stores your subscriber list and sends your mailings.
  • Analytics. An analytics tool that collects visitor data for your statistics.
  • Consent management platform (CMP). The tool that shows your cookie banner and stores the consent of each visitor.
  • Live chat and customer service tools. They store the conversations and the contact details of your visitors.
  • IT support and web developers, if they have access to personal data, for example in your CMS or database.

Most of these providers offer a standard DPA, which you accept in your account or which is part of their terms. Download or save it, and check what it says.

When you don't need one

Not every company that receives personal data from you is your processor:

  • Independent controllers. Some service providers decide themselves how they process the data, often because their profession or the law prescribes it. The EDPB gives the example of an accounting firm that audits your books: it decides which data it needs and how long it keeps it, so it is a controller of its own. With very detailed instructions from you, the same firm could be a processor. You then don't sign a DPA, but you need a legal basis to share the data.
  • Joint controllers (article 26). If you decide together with another organisation on the purposes and means, you are joint controllers. Instead of a DPA, you make an arrangement that sets out who does what, in particular towards the people whose data you process.
  • No personal data. Purely technical work without access to personal data does not require a DPA.

What must be in it?

Article 28(3) first requires a description of the processing: the subject matter and duration, the nature and purpose, the type of personal data and the categories of data subjects, and the obligations and rights of the controller. The EDPB stresses that this description must be specific: "personal data under article 4(1) GDPR" is not enough; name the data, such as email addresses or chat messages, and the people, such as visitors or customers.

The contract must then say that the processor:

  • (a) acts only on documented instructions from the controller, including for transfers outside the EU, unless the law requires otherwise;
  • (b) ensures confidentiality: the people who process the data have committed to confidentiality or have a legal duty of confidentiality;
  • (c) takes the security measures required by article 32;
  • (d) respects the conditions for sub-processors in article 28(2) and (4);
  • (e) helps you respond when people exercise their rights, such as access or erasure;
  • (f) helps you comply with articles 32 to 36: security, reporting data breaches, data protection impact assessments and prior consultation;
  • (g) deletes or returns all personal data at the end of the service, at your choice, and deletes copies unless the law requires storage;
  • (h) provides the information needed to demonstrate compliance and allows audits, including inspections.

The processor must also immediately tell you if it believes an instruction infringes data protection law.

The EDPB adds that a DPA should not just repeat the text of the GDPR. It should say concretely how the requirements will be met, for example which security measures apply and within how many hours the processor reports a data breach. Article 33(2) only says "without undue delay"; a fixed number of hours in the contract makes it measurable.

The European standard clauses

You don't have to write a DPA from scratch. On 4 June 2021 the European Commission adopted standard contractual clauses between controllers and processors (Implementing Decision (EU) 2021/915). They cover all requirements of article 28(3) and (4) and come with four annexes: the parties, a description of the processing, the technical and organisational measures, and the sub-processors.

Using them is optional: you may also negotiate your own contract with the compulsory elements. If you use them, you may not change the clauses themselves, but you may include them in a broader contract and add clauses, as long as these don't contradict them. The clauses do not by themselves cover transfers outside the EU.

Sub-processors and transfers outside the EU

A processor often uses other companies itself, such as a data centre or a support tool. These are sub-processors. Article 28(2) says a processor may only engage one with your prior written authorisation:

  • Specific authorisation: you approve each sub-processor separately.
  • General authorisation: you approve a list, and the processor tells you in advance about any addition or replacement, so that you can object.

Under article 28(4), the processor must impose the same data protection obligations on the sub-processor by contract, and it remains fully liable to you if the sub-processor fails. The EDPB recommends that the processor gives you a list of sub-processors with their location, what they do and which safeguards apply.

If data goes to a country outside the European Economic Area, Chapter V of the GDPR also applies. For the US, the European Commission's adequacy decision for the EU-US Data Privacy Framework (Decision (EU) 2023/1795) covers transfers to companies on the Data Privacy Framework List. For other recipients, the usual tool is the standard contractual clauses for international transfers (Decision (EU) 2021/914); for a transfer from a controller to a processor, these also fulfil article 28(3) and (4). Name the country and the safeguard for each sub-processor in the DPA, and in your privacy policy.

Cookie Confirm processes the consent data of your visitors on your behalf. Customers get our data processing agreement, including the standard contractual clauses, and we publish our sub-processors with what they do and where.

What happens without a DPA?

Article 28 contains obligations for both parties, and article 83(4) makes infringements of articles 25 to 39 punishable with fines of up to €10 million or 2% of worldwide annual turnover, whichever is higher. The fine can hit the controller and the processor. A missing DPA also makes it hard to show that you only use processors that provide sufficient guarantees, as article 28(1) requires.

There is liability too: under article 82, a processor is liable for damage when it hasn't complied with its own obligations or has acted outside or against your lawful instructions. Otherwise, the controller is the one people can hold liable.

Checklist

  • List your processors. Hosting, email, analytics, CMP, chat, payment, CRM, developers. Your record of processing activities and your cookie scan are good starting points.
  • Check the role. Is the provider really acting on your behalf, or also for its own purposes?
  • Find or sign the DPA. Most providers offer one in their account settings or terms. Save a copy with the date.
  • Check the eight points of article 28(3) and the description of the processing.
  • Check the sub-processors: where they are, what they do, and how you are told about changes.
  • Check transfers outside the EEA and the safeguard for each.
  • Review regularly. A new feature, more data or a new sub-processor can mean the DPA no longer fits.

The template

Below is a template you can copy. Fill in everything between [brackets], choose one of the two options for sub-processors and describe the processing and security measures concretely. A template is not legal advice: for complex or sensitive processing, have it reviewed by a lawyer, or consider the European Commission's standard clauses.

Sources

Data processing agreement template

Data processing agreement

This data processing agreement ("Agreement") is entered into on [date] between:

[Company name of the customer], [address], registered under number [number], represented by [name and position] ("Controller"); and

[Company name of the service provider], [address], registered under number [number], represented by [name and position] ("Processor").

Together "the Parties".

1. Background and scope
1.1 The Processor provides [description of the service, for example hosting of the website / sending of newsletters / live chat software] to the Controller under the [main agreement / terms of service] dated [date] ("Main Agreement").
1.2 In doing so, the Processor processes personal data on behalf of the Controller. This Agreement sets out the Parties' obligations under Article 28 of Regulation (EU) 2016/679 (GDPR). In case of conflict, this Agreement prevails over the Main Agreement as far as the processing of personal data is concerned.

2. Subject matter, duration, nature and purpose
2.1 Subject matter: [short description, for example storage of website data and backups].
2.2 Duration: the processing lasts as long as the Main Agreement, and until the personal data has been deleted or returned under clause 10.
2.3 Nature of the processing: [for example storage, hosting, sending, analysing, deleting].
2.4 Purpose: the Processor processes the personal data only to provide the service described in clause 1.1.
2.5 Types of personal data and categories of data subjects: as described in Annex 1.

3. Instructions
3.1 The Processor processes the personal data only on documented instructions from the Controller, including with regard to transfers to a country outside the European Economic Area (EEA), unless Union or Member State law to which the Processor is subject requires otherwise. In that case, the Processor informs the Controller of that legal requirement before processing, unless that law prohibits this on important grounds of public interest.
3.2 The Main Agreement, this Agreement and the settings the Controller chooses in the service are the Controller's instructions. The Controller can give further instructions in writing, including by email.
3.3 The Processor immediately informs the Controller if, in its opinion, an instruction infringes the GDPR or other Union or Member State data protection law.
3.4 The Processor does not use the personal data for its own purposes.

4. Confidentiality
The Processor ensures that everyone it authorises to process the personal data has committed to confidentiality or is under an appropriate statutory obligation of confidentiality.

5. Security
5.1 The Processor takes all measures required under Article 32 GDPR. The technical and organisational measures are described in Annex 2.
5.2 The Processor may update these measures, as long as the level of security does not decrease.

6. Sub-processors
[Choose one option and delete the other.]
[Option A, specific authorisation: The Processor does not engage another processor ("Sub-processor") without the Controller's prior specific written authorisation. The Processor submits a request at least [number] days before the engagement, with the information the Controller needs to decide.]
[Option B, general authorisation: The Controller authorises the Processor to engage the Sub-processors listed in Annex 3. The Processor informs the Controller in writing of any intended addition or replacement of a Sub-processor at least [number] days in advance. The Controller can object within [number] days on reasonable grounds. If the Parties cannot resolve the objection, the Controller may terminate the affected service [without penalty].]
6.2 The Processor imposes the same data protection obligations as in this Agreement on every Sub-processor, by a written contract, in particular sufficient guarantees for appropriate technical and organisational measures.
6.3 If a Sub-processor fails to meet its data protection obligations, the Processor remains fully liable to the Controller for the performance of that Sub-processor's obligations.

7. Transfers outside the EEA
The Processor transfers personal data to a country outside the EEA, or allows access from there, only on the Controller's documented instructions and in compliance with Chapter V GDPR, for example on the basis of an adequacy decision or the European Commission's standard contractual clauses. Annex 3 states, for each Sub-processor, the country and the safeguard used.

8. Assistance to the Controller
8.1 Taking into account the nature of the processing, the Processor assists the Controller with appropriate technical and organisational measures, insofar as possible, in responding to requests from data subjects who exercise their rights (such as access, rectification, erasure and objection). If the Processor receives such a request directly, it forwards it to the Controller without delay [within [number] working days] and does not respond itself unless authorised.
8.2 The Processor assists the Controller in complying with Articles 32 to 36 GDPR (security, personal data breaches, data protection impact assessments and prior consultation), taking into account the nature of the processing and the information available to it.

9. Personal data breaches
The Processor notifies the Controller without undue delay, and in any case within [number] hours, after becoming aware of a personal data breach. The notification contains at least the information the Controller needs to notify the supervisory authority and, where required, the data subjects: the nature of the breach, the categories and approximate number of data subjects and records concerned, the likely consequences, the measures taken or proposed, and a contact point. Information that is not yet available is provided as soon as it is.

10. End of the processing
At the end of the services, the Processor, at the choice of the Controller, deletes all personal data or returns it to the Controller [within [number] days], and deletes existing copies, unless Union or Member State law requires storage. On request, the Processor confirms the deletion in writing.

11. Information and audits
11.1 The Processor makes available to the Controller all information necessary to demonstrate compliance with Article 28 GDPR and this Agreement.
11.2 The Processor allows for and contributes to audits, including inspections, by the Controller or an auditor mandated by the Controller. [The Controller gives at least [number] days' notice. Costs: [who pays].] [A recent independent certification or audit report, such as [ISO 27001 / SOC 2], can be provided first.]

12. Liability
[Refer to the liability clause of the Main Agreement, or set out a separate arrangement. The GDPR's rules on liability towards data subjects (Article 82) apply regardless.]

13. Term and changes
13.1 This Agreement applies as long as the Processor processes personal data on behalf of the Controller.
13.2 Changes to this Agreement are only valid if agreed in writing, including in electronic form.
13.3 This Agreement is governed by the law of [country]. Disputes are submitted to [the competent court in [city]].

Signed (in writing or electronically):
For the Controller: [name, position, date]
For the Processor: [name, position, date]

Annex 1: Description of the processing
- Categories of data subjects: [for example website visitors, customers, newsletter subscribers, employees]
- Types of personal data: [for example name, email address, IP address, order data, chat messages]
- Special categories of personal data (Article 9 GDPR): [none / describe, with additional safeguards]
- Processing operations: [for example storage, sending, analysing]
- Location of the processing: [country or countries]
- Retention: [period, or "for the duration of the Main Agreement"]

Annex 2: Technical and organisational measures
[Describe the measures concretely, not in general terms, for example: encryption in transit and at rest; access only for named roles, with two-factor authentication; logging of access; backups and how quickly data can be restored; regular security testing; staff training; how deleted data is removed.]

Annex 3: Sub-processors
- [Name] – [what it does] – [country] – [safeguard for transfers outside the EEA, if any]
- [Name] – [what it does] – [country] – [safeguard]

Rather not fill it in yourself?Cookie Confirm writes your cookie declaration from what the scanner finds on your site, and keeps it up to date when cookies change.

Frequently asked questions

What does DPA mean?

DPA stands for data processing agreement: the contract between a controller and a processor that article 28 of the GDPR requires. It is also called a data processing addendum when it is added to a service agreement. In other contexts DPA can also mean data protection authority, the regulator, or the UK Data Protection Act.

Does a DPA have to be signed?

The GDPR requires the contract to be in writing, which includes electronic form. Accepting a provider's DPA online is therefore possible. The EDPB recommends making sure the necessary signatures are in place, so that you can show the contract is actually in force.

Who has to provide the DPA, the controller or the processor?

The law doesn't say. In practice, large providers offer their own DPA, often as part of their terms. That is allowed, but as controller you remain responsible for checking that it meets article 28. The EDPB adds that a processor may not change such a DPA simply by publishing a new version on its website: changes must be notified to and approved by the controller.

Do I need a DPA with Google Analytics or my email marketing tool?

If the provider processes personal data for you, yes. Most email marketing, analytics, hosting and chat providers offer a DPA you can accept in your account or that is part of their terms. Check whether the provider also uses data for its own purposes: for that part, it is not your processor and the DPA doesn't cover it.

Is a DPA enough to transfer data to the US?

No. A DPA covers article 28; a transfer outside the EEA also needs a basis under Chapter V of the GDPR, such as the adequacy decision for the EU-US Data Privacy Framework (only for certified US companies) or the standard contractual clauses for international transfers. Many US providers include those clauses in their DPA.

This guide is general information, not legal advice. We check it regularly, but laws and guidance change. Not sure about your situation? Ask a lawyer.

Enjoy the first 7 days completely free

Create a free account and see if Cookie Confirm is the right fit for you. Live in 5 minutes.

  • No credit card required
  • €7.95 per month after
  • Plug & play installation
Start my free trial

5.0/5 5,000+ websites

Enjoy the first 7 days completely free

No credit card required

Start free trial