Canadian Data Residency for Websites and Web Apps: When Hosting Location Actually Matters
Must a Canadian website be hosted in Canada? What PIPEDA, Quebec's Law 25, BC and Nova Scotia actually require, plus a layer-by-layer hosting checklist.
Key takeaways
- PIPEDA does not prohibit processing personal information outside Canada; it requires accountability, contracts and clear notice to individuals.
- Quebec's private-sector Act (section 17) requires a privacy impact assessment and a written agreement before personal information is communicated or entrusted outside Quebec, which includes other provinces.
- Nova Scotia public bodies, municipalities and their service providers must generally store and access personal information only in Canada; BC replaced its strict rule with a risk assessment in 2021.
- Hosting in Canada is a set of decisions, not one: Vercel Functions, for example, run in Washington, D.C. by default unless you choose the Montréal region.
Does a Canadian website have to be hosted in Canada?
Usually not. The question comes up in almost every web project with Canadian users, and the answer depends on who you are and whose data you handle, not on the fact that your business is Canadian. A marketing site with a contact form, an online store and a customer portal can all legally run on servers in the United States or elsewhere, provided the business meets its privacy obligations. The exceptions are specific: Quebec's rules on information leaving the province, public-sector bodies in provinces such as Nova Scotia, and contracts where a customer has made Canadian hosting a condition.
It helps to separate two terms. Data residency is where the data physically sits. Data sovereignty is whose laws can reach it. The Government of Canada's Digital Sovereignty Framework, published in November 2025, makes the distinction plainly: storing data in Canada does not guarantee it is outside the jurisdiction of foreign courts when the supplier operates in other countries. It cites the U.S. CLOUD Act and FISA as examples, and notes that full legal control is only possible when a provider operates entirely under Canadian jurisdiction.
What PIPEDA says about storing data outside Canada
The Office of the Privacy Commissioner of Canada's guidelines on processing personal data across borders state directly that PIPEDA does not prohibit organizations in Canada from transferring personal information to an organization in another jurisdiction for processing. The guidelines date from January 2009 and remain the OPC's published position. What the law does require is accountability: the organization that collected the information stays responsible for it after the transfer, and is expected to protect it mainly through contracts with the processor.
There are two limits that matter for web projects. First, a contract cannot override the laws of the country where the data sits, so a foreign court or national security agency may still be able to access it. Second, the OPC expects transparency: people should be told, in clear language and ideally at the time of collection, that their information may be processed in another country and accessed by that country's courts, law enforcement and national security authorities. In practice that means your privacy policy should name the countries where your hosting, email and analytics providers process data.
Quebec's Law 25: an assessment before data leaves the province
Quebec is where hosting location most often changes the work. Section 17 of the Act respecting the protection of personal information in the private sector, as amended by Law 25, requires a privacy impact assessment before a business communicates personal information outside Quebec, or entrusts a person or body outside Quebec with collecting, using, communicating or keeping that information on its behalf. The Commission d'accès à l'information's guide to privacy impact assessments (version 3.1, April 2024) gives storing personal information in the cloud outside Quebec as an example of a project that calls for one. Note the wording: outside Quebec, not outside Canada.
According to the CAI guide, the assessment must consider the sensitivity of the information, the purpose of its use, the protection measures it would receive, including contractual ones, and the legal regime of the place it goes to, including the privacy principles that apply there. The information can be sent only if the assessment shows it would receive adequate protection. The transfer must then be covered by a written agreement that takes the assessment's results into account and, where needed, includes terms to reduce the risks it identified.
Provinces with public-sector residency rules: Nova Scotia and British Columbia
If you build for a public body, or sell software to one, provincial public-sector law can apply to you as a contractor. Nova Scotia's Personal Information International Disclosure Protection Act requires public bodies, municipalities and their service providers to ensure personal information is stored, accessed and disclosed only in Canada, unless an exception applies. The head of a public body can allow storage or access outside Canada when it meets the necessary requirements of the organization's operation, and must report that decision to the Minister of Justice. The province lists fines of up to $500,000 for a corporation.
British Columbia went the other way. Its Freedom of Information and Protection of Privacy Act used to require personal information to stay in Canada with limited exceptions, but amendments enacted on November 25, 2021 replaced that rule. Public bodies now complete an additional assessment in their privacy impact assessment when sensitive personal information is disclosed to be stored outside Canada, weigh the risks, and make a risk-based decision. The province's guidance specifically notes that a cloud provider based outside Canada may be subject to laws that require it to disclose the information it holds.
Where a modern website actually stores personal data
Choosing a Canadian data centre for the main server rarely makes a site Canadian-hosted. A typical business website or web app sends personal information to a chain of services, and each one has its own location. Before deciding whether residency matters, list every place a name, email address, IP address or uploaded file ends up.
- Server-side code: serverless functions and API routes, which may run in a different region from the static pages.
- Database, file storage and backups, including point-in-time recovery copies kept by the provider.
- Form handlers, transactional email and newsletter tools that receive every submission.
- CRM, help desk and chat widgets connected to the site.
- Analytics, error monitoring and server logs, which often contain IP addresses and user identifiers.
- AI features such as chatbots or document summaries that send user input to a model provider's API.
Hosting in Canada on common platforms: the defaults to check
Defaults are where projects drift out of Canada without anyone deciding it. Vercel, a common host for Next.js sites, lists 19 compute-capable regions, including yul1 in Montréal, which maps to AWS ca-central-1. Its documentation also states that Vercel Functions run in iad1, Washington, D.C., by default, and that the function region should be changed to sit next to the database. Requests first reach one of more than 126 points of presence worldwide before being routed to a region, and during a regional outage traffic is rerouted to the next closest region. A Canadian-hosted Next.js app therefore needs the function region, the database region and the failover behaviour all set deliberately.
The same pattern applies elsewhere: a Canadian region on the hosting account does not move the email service, the analytics tool or the AI API. For Quebec projects and public-sector work, record each service, its processing location and the contract that covers it in a single table during discovery, so the privacy impact assessment and the privacy policy are written from the same facts.
A decision checklist: do you need Canadian hosting?
Work through these questions in order. The first one that applies usually settles the requirement; the rest shape how you meet it.
- Is the site run for, or sold to, a public body in a province with a residency rule such as Nova Scotia? If yes, plan for storage and access in Canada and get any exception approved in writing.
- Does a customer contract, RFP or procurement policy require Canadian hosting? Contract terms often go further than the law, so read them before choosing a platform.
- Do you collect personal information from people in Quebec and send it to any service outside Quebec? If yes, complete a privacy impact assessment and sign a written agreement first, or keep that data in Quebec.
- Is the data sensitive, such as health, financial or biometric information? Higher sensitivity raises the bar for the assessment and makes in-country hosting easier to justify.
- If none of the above applies, foreign hosting is generally allowed under PIPEDA: sign processor contracts, name the countries in your privacy policy, and keep the service inventory current.
About the author
Jayson Hao
Founder of Innovation Trigger Lab and a University of Toronto Computer Science graduate with an AI/ML focus. He designs and ships production RAG systems, AI chatbots, web platforms and mobile products.
View profileFrequently asked questions
Does PIPEDA require data to be stored in Canada?
No. The OPC's guidelines state that PIPEDA does not prohibit transferring personal information to another jurisdiction for processing. The organization remains accountable and should tell people their information may be processed and accessed abroad.
Does hosting in Canada protect data from the U.S. CLOUD Act?
Not fully. The Government of Canada's Digital Sovereignty Framework says storing data in Canada does not guarantee it is outside the jurisdiction of foreign courts when the supplier operates in other countries. The same document notes that it found no documented cases of foreign governments seeking access to Canadian enterprises' data held by suppliers.
Does Quebec's Law 25 apply if my servers are in Ontario?
Section 17 is worded around communicating information outside Quebec, not outside Canada, so a Quebec business sending personal information to a data centre in another province should treat it as a transfer that needs a privacy impact assessment. Confirm the details for your case with privacy counsel.
Can a Next.js site on Vercel be hosted in Canada?
Vercel offers a Montréal region (yul1), but functions run in Washington, D.C. by default, so you must set the function region and place the database in Canada as well. Static assets are still delivered through Vercel's global network of points of presence.
Sources and further reading
- 1.Guidelines for processing personal data across bordersOffice of the Privacy Commissioner of Canada, January 27, 2009
- 2.Guide d'accompagnement : Réaliser une évaluation des facteurs relatifs à la vie privée (version 3.1)Commission d'accès à l'information du Québec, April 1, 2024
- 3.Guidance on Disclosures Outside of CanadaGovernment of British Columbia, February 13, 2025
- 4.FAQ: Personal Information International Disclosure Protection ActGovernment of Nova Scotia
- 5.Digital Sovereignty: A Framework to improve digital readiness of the Government of CanadaGovernment of Canada, November 12, 2025
- 6.Global network and regionsVercel, August 11, 2026