Privacy laws worldwide
Brazil's LGPD and cookie consent: what websites need to do
Brazil's data protection law, the LGPD, treats most cookie data as personal data. The national regulator's cookie guidance points to consent for advertising and tracking cookies, with a reject option on the first layer of the banner.
- Plain English
- Written for website owners
- Free to read
On this page
Brazil's General Data Protection Law (Lei Geral de Proteção de Dados, LGPD) applies to cookies whenever they collect personal data, which most analytics and advertising cookies do. The national regulator, the ANPD, published cookie guidance in 2022 that says consent is the right legal basis for non-essential cookies, particularly those used for advertising and behavioral profiling, and that banners should offer a way to reject them on the first layer. Strictly necessary cookies can run without consent, but you still have to tell people about them.
The LGPD in brief
The LGPD is Federal Law No. 13.709/2018. It came into force in September 2020, and the ANPD's power to impose administrative sanctions began in August 2021. It is closely modeled on the GDPR, but it isn't identical, and Brazil has no separate ePrivacy-style cookie law. That means cookie rules come entirely from the general framework: you need a legal basis for processing, you must be transparent, and you must respect data subject rights.
Under Article 3, the LGPD applies regardless of where the controller is based if:
- the processing takes place in Brazil;
- it aims to offer or supply goods or services to, or process data of, individuals located in Brazil; or
- the personal data was collected in Brazil.
A site in Portuguese, prices in reais or shipping to Brazil are strong signs that you target Brazilian users.
Personal data is "information related to an identified or identifiable natural person" (Art. 5, I). Cookie IDs, advertising IDs and IP addresses tied to browsing behavior usually qualify.
Legal bases for cookies
Article 7 lists ten legal bases for processing personal data. For cookies, two matter in practice:
Consent (Art. 7, I)
The LGPD defines consent as a free, informed and unambiguous expression by which the data subject agrees to processing for a specific purpose (Art. 5, XII). Article 8 adds the operational rules:
- the controller bears the burden of proving that consent was obtained in line with the law (Art. 8, §2);
- consent must refer to specific purposes, and generic authorizations are void (Art. 8, §4);
- consent can be revoked at any time through a free and facilitated procedure (Art. 8, §5).
That last point means withdrawing must be as straightforward as giving consent, for example via a persistent link or button that reopens the banner.
Legitimate interest (Art. 7, IX, and Art. 10)
Legitimate interest allows processing to support the controller's legitimate purposes, considered from concrete situations, provided the data subject's fundamental rights and freedoms don't prevail. Article 10 requires that only strictly necessary data is used, that transparency is ensured, and the ANPD can ask for a legitimate interest impact report.
The ANPD's cookie guidance accepts that legitimate interest can support cookies the site needs to function. It's more cautious about analytics, and it says the balancing test generally won't favor tracking-based or behavioral advertising cookies, especially third-party ones that follow people across sites. Our guide on using legitimate interest for cookies explains the European version of this debate, which is similar.
What the ANPD's cookie guidance expects
In October 2022 the ANPD published its guide on cookies and personal data protection (Guia Orientativo: Cookies e Proteção de Dados Pessoais). It isn't a binding regulation, but it shows how the regulator reads the LGPD. Its main points for website owners:
- Classify your cookies by purpose and origin: necessary or non-necessary, first-party or third-party, session or persistent.
- Use consent for non-necessary cookies, especially advertising and profiling cookies.
- Offer a reject option on the first layer. The banner's top layer should include a button to reject all non-necessary cookies, not just "Accept" and "Settings".
- Put detail in a second layer: granular choices by category and information about each cookie.
- Be transparent about purposes, retention and third parties, typically through a cookie policy.
- Make withdrawal easy at any time after the first choice.
Because the LGPD requires consent to be free and unambiguous, pre-ticked boxes and treating continued browsing as acceptance are hard to defend. Designs that make rejecting harder than accepting are also risky. Our article on cookie banner dark patterns covers the designs European regulators reject, and the same reasoning applies under the LGPD's consent definition.
Which basis fits which cookie
| Cookie type | Likely legal basis | Banner treatment |
|---|---|---|
| Session, security, load balancing, cart, consent cookie | Legitimate interest or contract performance | Always on; explain in the cookie policy |
| Functional (language, saved preferences) | Legitimate interest or consent, depending on intrusiveness | Usually a switch in preferences |
| Analytics | Consent is the safer choice; legitimate interest possible for limited first-party measurement | Off by default if based on consent |
| Advertising, retargeting, social media pixels | Consent | Off until accepted |
To decide what truly counts as necessary, see what counts as a strictly necessary cookie. Brazil's guidance follows broadly the same logic as European regulators.
Transparency and the cookie policy
Article 9 gives data subjects the right to facilitated access to information about processing, which must be clear, adequate and ostensive. It should cover the specific purpose, the form and duration of processing, the controller's identity and contact details, shared use of data and its purpose, the responsibilities of agents carrying out the processing, and the data subject's rights.
For cookies, a cookie policy (or a cookie section in your privacy policy) should list each cookie or category, its purpose, who sets it, how long it lasts, and the legal basis you rely on. If you rely on consent and you change the purpose, Article 9, §2 requires you to inform the data subject, and they can revoke consent if they disagree.
Children and teenagers
Article 14 requires processing of children's personal data to be in their best interest, and processing data of children under 12 generally needs specific, highlighted consent from at least one parent or legal guardian. Brazil has also adopted a Digital Statute for Children and Adolescents (Law No. 15.211/2025), which adds duties for digital services likely to be accessed by minors and took effect in 2026. If your site is aimed at young people, check these rules separately: a standard cookie banner won't be enough.
The DPO, international transfers and penalties
Data protection officer (encarregado)
Article 41 requires controllers to appoint a data protection officer (the encarregado) and to publish their identity and contact information clearly, preferably on the website. The ANPD's regulation for small processing agents (Resolution CD/ANPD No. 2/2022) relieves qualifying small businesses and startups from the appointment, as long as they provide a communication channel for data subjects. Check whether you qualify, since the relief doesn't apply to high-risk processing.
International transfers
Most analytics and ad vendors process data outside Brazil. Article 33 only allows international transfers in specific cases, such as adequacy, standard contractual clauses or specific consent. The ANPD adopted a regulation on international transfers with Brazilian standard contractual clauses in 2024, with a deadline for incorporating them into existing contracts. Ask your main vendors whether their terms include the ANPD clauses.
Sanctions
Article 52 allows the ANPD to impose warnings, a simple fine of up to 2% of the company's revenue in Brazil in the prior fiscal year (excluding taxes), limited to R$50 million per infraction, daily fines, publication of the infraction, blocking or deletion of the related data, and in serious cases suspension of processing. The ANPD's role and powers have been strengthened since 2025, so expect enforcement to keep developing. Check its current regulatory agenda for priorities.
For most websites, LGPD cookie compliance looks a lot like GDPR compliance: block non-essential cookies until consent, put a reject button on the first layer, explain each category, and let people change their minds easily.
Setting up your banner for Brazil
PrivacyQuick applies opt-in mode to visitors from Brazil by default. The first layer shows Reject all, Preferences and Accept all, with Reject all styled equally to Accept all, which matches the ANPD's expectation of a first-layer reject option. Scripts tagged as analytics, functional or marketing stay blocked until the visitor allows that category, and the floating cookie button lets visitors withdraw or change consent later. The consent log records each decision with the banner version and timestamp, which helps with the burden of proof under Article 8, §2, without storing IP addresses.
The banner handles the cookie layer. You still need an accurate privacy policy, a DPO or contact channel, and transfer terms with your vendors. Our comparison of cookie rules by country is helpful if you serve several regions with one site.
LGPD cookie checklist
- Run a cookie scan and classify every cookie as necessary or non-necessary, first- or third-party.
- Choose and document a legal basis for each category, with a legitimate interest assessment where you use that basis.
- Block non-necessary cookies until consent and put a reject option on the banner's first layer.
- Offer granular choices and an easy way to withdraw consent later.
- Publish a cookie policy covering purposes, providers, duration and legal basis.
- Publish your DPO's identity and contact details, or a contact channel if you qualify as a small agent.
- Check that your international vendors use transfer mechanisms the ANPD accepts.
- Keep records of consent so you can prove it was valid.
Frequently asked questions
Does Brazil require cookie consent?
The LGPD doesn't mention cookies by name, but cookie data is usually personal data and needs a legal basis. The ANPD's 2022 cookie guidance says consent is the appropriate basis for most non-essential cookies, especially for advertising and behavioral profiling.
Can I use legitimate interest for cookies in Brazil?
Sometimes. Legitimate interest can support cookies needed to run the site and possibly some analytics, after a balancing assessment. The ANPD considers it a poor fit for tracking-based advertising cookies.
Does the LGPD apply to websites outside Brazil?
Yes, if you process data of people located in Brazil in connection with offering goods or services to them, or the data was collected in Brazil. A foreign online store selling to Brazilian customers should assume it is covered.
What are the fines under the LGPD?
The ANPD can impose a simple fine of up to 2% of the company's revenue in Brazil for the prior year, limited to R$50 million per infraction, along with warnings, daily fines, publication of the violation and other sanctions.
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.
This guide is general information, not legal advice. Laws and regulator guidance change; check the current rules for your situation or ask a lawyer.