PrivacyQuick

Privacy laws worldwide

Cookie consent rules by country: a comparison

The EU, UK, Quebec and Brazil expect opt-in consent for non-essential cookies, the US relies mainly on opt-outs, and many other countries ask for transparency first. The table below compares eleven jurisdictions side by side.

  • Plain English
  • Written for website owners
  • Free to read

Cookie consent rules differ a lot from country to country. The EU, the UK and Quebec require opt-in consent before non-essential cookies are set, and Brazil's regulator expects consent for many of them. The United States mostly requires an opt-out from the "sale" or "sharing" of data and targeted advertising. Switzerland, Australia and South Africa lean on transparency and the right to object. India and China make consent the main basis for processing personal data, without a cookie-specific rule.

The table gives the overview. The sections after it explain the details that most often trip up website owners. This is a summary, and laws change, so check the current rules for any country that matters to your business.

Comparison table (as of late 2026)

JurisdictionMain law(s)Non-essential cookiesTypical banner
EU / EEAePrivacy Directive Art. 5(3) as implemented nationally; GDPRPrior opt-in consentAccept, Reject and Preferences on the first layer
United KingdomPECR reg. 6; UK GDPR; Data (Use and Access) Act 2025Opt-in, with new exemptions for some low-risk usesOpt-in banner
SwitzerlandRevised FADP (since 1 Sept 2023); Telecommunications Act Art. 45cInform and offer a way to refuseNotice with opt-out, or opt-in for simplicity
United StatesState laws such as the CCPA/CPRA; sector lawsOpt-out of sale, sharing and targeted ads"Do Not Sell or Share" link; honor GPC
CanadaPIPEDA; Quebec Law 25Meaningful consent; Quebec: tracking off by defaultOpt-in in Quebec; notice and choice elsewhere
BrazilLGPD; ANPD cookie guidance (2022)Consent for many non-essential cookies, especially advertisingOpt-in banner
AustraliaPrivacy Act 1988 and the APPsTransparency; consent for sensitive dataNotice and privacy policy
JapanAPPI; Telecommunications Business ActNotice of external transmission; consent when recipients link data to individualsNotice, sometimes with opt-out
IndiaDPDP Act 2023; DPDP Rules 2025 (phased to 2027)Consent by clear affirmative actionOpt-in banner
South AfricaPOPIALawful basis and notice; objection right for marketingNotice or opt-in
ChinaPIPLNotice and consent as the main basisConsent prompt, often at sign-up or first visit

Three models: opt-in, opt-out and notice

Almost every cookie law fits one of three models, and your banner needs to support whichever ones apply to your visitors:

  • Opt-in. Nothing non-essential runs until the visitor actively agrees. Rejecting must be as easy as accepting, and consent must be specific to each purpose.
  • Opt-out. Tracking may run by default, but the visitor must be told and given an easy way to stop it, such as a "Do Not Sell or Share My Personal Information" link or a browser signal.
  • Notice. You must explain what you collect and why, usually through a banner and a privacy policy, but the law doesn't require a choice before tracking starts.

The differences between the first two are covered in depth in opt-in vs opt-out consent.

Europe: EU/EEA, UK and Switzerland

EU and EEA

Article 5(3) of the ePrivacy Directive requires consent before storing or reading information on a user's device, unless it's strictly necessary for a service the user requested or needed only to transmit a communication. Each member state implements this in its own law. The GDPR supplies the standard for valid consent: freely given, specific, informed, unambiguous, and given by a clear affirmative action (Art. 4(11) and Art. 7). Regulators such as France's CNIL expect a Reject option as visible as Accept. Our ePrivacy Directive guide covers the exemptions.

United Kingdom

PECR regulation 6 mirrors the EU rule. The Data (Use and Access) Act 2025 amended PECR to add exemptions for some low-risk uses, such as certain analytics to improve a website and some functionality cookies, provided users get clear information and a simple way to object. Those changes started in early 2026. Advertising cookies still need consent. See UK cookie rules for the details and the ICO's latest guidance.

Switzerland

Switzerland takes a lighter approach. Article 45c of the Telecommunications Act allows processing data on users' devices if users are told about it and its purpose, and how they can refuse. The revised Federal Act on Data Protection, in force since 1 September 2023, adds transparency duties. A notice with an opt-out generally satisfies Swiss law. Many Swiss sites still use an opt-in banner because they also serve EU visitors.

North America: United States and Canada

United States

There's no federal cookie consent law. Instead, around 20 states had comprehensive privacy laws on the books as of late 2026, led by California's CCPA as amended by the CPRA. The common pattern is a right to opt out of the sale of personal data, "sharing" for cross-context behavioral advertising, and targeted advertising, plus opt-in consent for sensitive data in many states. California requires businesses to honor opt-out preference signals such as Global Privacy Control, and several other states do too. The US state privacy laws overview explains the variations.

Separate from these laws, a wave of lawsuits under wiretapping and pen-register statutes such as the California Invasion of Privacy Act has made some US companies more cautious about session replay, chat widgets and pixels.

Canada

Under PIPEDA, consent must be meaningful. Implied consent can be acceptable for non-sensitive uses that people would reasonably expect, while sensitive information needs express consent. The privacy commissioner's guidance on online behavioral advertising accepts opt-out consent in some conditions, such as clear notice and an easy, immediate opt-out. Quebec's Law 25 is stricter: since September 2023, technology that can identify, locate or profile a person must be off by default. Sites with Quebec visitors usually apply opt-in for all of Canada, because detecting the province reliably is hard.

Latin America and Asia-Pacific

Brazil

The LGPD (Law 13.709/2018) lists ten legal bases, including consent and legitimate interest. In October 2022 the data protection authority (ANPD) published guidance on cookies. It accepts that some cookies can rely on legitimate interest, but treats consent as the expected basis for many non-essential ones, such as advertising cookies. Where you rely on consent, it must be free, informed and unambiguous, so pre-ticked boxes don't count. An opt-in banner with a visible reject option is the common approach.

Australia

The Privacy Act 1988 and its Australian Privacy Principles cover most businesses with annual turnover above A$3 million, plus some smaller ones such as health service providers. There's no cookie-specific consent rule. You must be transparent about collection (APP 1 and APP 5) and follow the direct marketing rules (APP 7). Cookies are covered when they collect personal information, meaning information about an identified or reasonably identifiable individual. The 2024 amendments added a statutory tort for serious invasions of privacy and required the regulator to develop a children's online privacy code. Further reform is under discussion, so check the current position.

Japan

Two laws matter. The Act on the Protection of Personal Information (APPI), since its amendments took effect in April 2022, regulates "personally referable information" such as cookie IDs. If you pass it to a third party that you expect to link it to personal data, you must confirm that the recipient obtained the person's consent. Separately, the Telecommunications Business Act's external transmission rule, in force since June 2023, requires many online service providers to notify or publish what user information their pages send to third parties, to whom and why, unless an exception applies.

India

The Digital Personal Data Protection Act, 2023 makes consent, given through a clear affirmative action after a standalone notice, the main basis for processing. Withdrawal must be as easy as giving consent. The DPDP Rules, 2025 phase in through May 2027. Our DPDP Act guide for websites has the timeline.

China

The Personal Information Protection Law (PIPL), in force since 1 November 2021, applies to processing inside China and, under Article 3, to processing abroad aimed at providing products or services to people in China or analyzing their behavior. Consent must be voluntary, explicit and fully informed (Art. 14), and sensitive information needs separate consent (Art. 29). Cookies that collect personal information therefore need clear notice and, in most cases, consent. PIPL also has strict rules on transferring personal information out of China.

Africa: South Africa and beyond

South Africa's Protection of Personal Information Act (POPIA) has no cookie-specific rule. Processing needs one of the lawful grounds in Section 11, people must be told about collection (Section 18), and they can object to processing for direct marketing. Electronic direct marketing needs opt-in consent under Section 69. See POPIA and website cookies.

Many other African countries, including Kenya and Nigeria, have adopted comprehensive data protection laws in recent years. If you have significant traffic there, check local regulator guidance.

Which country's rules apply to your website?

Your location usually isn't the deciding factor. Most of these laws apply based on where your visitors are and whether you target them:

  • The ePrivacy rules apply to storing or reading information on devices in the EU, wherever the site is based. The GDPR applies under Article 3(2) if you offer goods or services to people in the EU or monitor their behavior there.
  • US state laws apply to businesses that meet their thresholds and process data of that state's residents.
  • India, China and Brazil apply their laws to foreign businesses that offer goods or services to people in their territory.

Look at where your visitors actually come from before deciding how much of this table matters to you.

One banner, many rules

You have two realistic options:

  1. Strictest everywhere. Show an opt-in banner to every visitor. It's simple, there's no geolocation to get wrong, and it meets the opt-in standard in every country above. The cost is lower measured consent in regions that don't require it.
  2. Regional rules. Detect the visitor's country and apply the right model. For example, opt-in for Europe, Brazil and India, opt-out with GPC for the US, and notice elsewhere. When the country is unknown, fall back to the strictest setting.

PrivacyQuick supports both. The Free plan shows the opt-in banner everywhere. Starter and above add regional rules, with defaults of opt-in for the EU, EEA, UK, Switzerland, Canada and Brazil, opt-out with Global Privacy Control in the US, notice elsewhere, and the strictest mode when the country can't be determined. You can change any region, for example to opt-in for India. See pricing.

For a closer look at individual countries, see our guides to Brazil's LGPD, Switzerland's nFADP, the Australian Privacy Act, Canada's PIPEDA and Quebec Law 25 and India's DPDP Act.

More country guides: UK GDPR vs EU GDPR, Germany, Spain, Italy, the Netherlands, Japan, China, Singapore, South Korea and New Zealand.

Newer country guides: Mexico, Turkey, Israel, Saudi Arabia, the UAE, Vietnam, Thailand and Indonesia.

European country guides: Poland, Austria, Sweden, Denmark, Norway, Finland, Portugal and Czech Republic. Elsewhere: Argentina, Chile, Colombia, Peru, Nigeria, Kenya, the Philippines, Malaysia, Hong Kong and Taiwan.

Next steps

  • Check your analytics for the countries that send meaningful traffic.
  • Run a free cookie scan to see which cookies and trackers load before consent.
  • Decide between strictest-everywhere and regional rules, and document the reasoning.
  • Make sure non-essential scripts are actually blocked in opt-in regions, not just announced.
  • Update your privacy and cookie policies so they describe each region's choices accurately.
  • Review this table at least once a year. Several of these laws changed in 2025 and 2026.

Frequently asked questions

Which countries require opt-in consent for cookies?

EU and EEA countries and the UK require prior consent for non-essential cookies under their ePrivacy rules. Quebec requires tracking technologies to be off by default, and Brazil's regulator treats consent as the expected basis for many non-essential cookies, especially advertising ones. Elsewhere, opt-in is often the safest choice for advertising trackers even where it isn't spelled out.

If my business is in the US, do I need to follow EU cookie rules?

Usually yes, for visitors in the EU, if your site offers goods or services to them or monitors their behavior. The ePrivacy rules apply to storing or reading information on devices in the EU, wherever the website is based.

Can I just show an opt-in banner to everyone?

Yes. Showing the strictest banner worldwide is simple and meets the opt-in standard everywhere, but it lowers measured consent rates in countries that only require an opt-out or notice. Many sites use regional rules instead.

Does China require a cookie banner?

China's Personal Information Protection Law has no cookie-specific rule, but it makes consent the main legal basis for processing personal information. If cookies collect personal information, you need clear notice and, in most cases, consent.

Check your own website in 30 seconds

Our free scanner lists every cookie and tracker your site sets, sorted into categories, before you add a banner.

Run a free cookie scan Start free

This guide is general information, not legal advice. Laws and regulator guidance change; check the current rules for your situation or ask a lawyer.