Cookie Consent / Banner Generator — GDPR Cookie Notice Maker
Generate GDPR-compliant cookie consent banners with customizable position, layout, and color theme. Get ready-to-use HTML/CSS code for your website.
Cookie Consent
Results update instantly as you type
Enter Values
Color Theme
Light
Embed Code
Copy and paste this HTML snippet into any web page to embed this calculator directly.
<iframe src="http://127.0.0.1:54963/embed/engineering/cookie-consent-banner-generator?ref=embed" title="Cookie Consent / Banner Generator — GDPR Cookie Notice Maker" width="100%" style="max-width:600px; border:none; height:500px;" loading="lazy"></iframe>
Direct Link
Share this link to let others open the calculator in their browser.
Cookies & Privacy
My Website uses cookies to enhance your browsing experience, serve personalized content, and analyze traffic.
Generated Code
<!-- Cookie Consent Banner for My Website -->
<style>
/* Cookie Consent Banner Styles for bottom-banner position, Light theme */
.cookie-banner-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 9998;
}
.cookie-consent-banner {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
z-index: 9999;
}
@media (max-width: 640px) {
.cookie-consent-banner {
left: 10px !important;
right: 10px !important;
max-width: none !impor
... (truncated)Position
Bottom Banner
Layout
Default
Theme
Light
The Formula
Cookie consent banners are a legal requirement under the EU General Data Protection Regulation (GDPR) and the ePrivacy Directive (Cookie Law). Users must be informed about cookies AND give active consent before non-essential cookies are placed. The banner must include: a clear description of cookie usage, an Accept button, a Decline/Reject button, and a link to detailed privacy/cookie policies.
Variable Definitions
General Data Protection Regulation
EU regulation governing data protection and privacy. Requires valid consent for personal data processing, including cookie tracking.
ePrivacy Directive (Cookie Law)
EU directive requiring opt-in consent for storing/accessing information on a user's device. This is the "cookie law".
Strictly Necessary Cookies
Cookies required for basic website functionality (session management, authentication). These do NOT require consent.
Non-Essential Cookies
Cookies for analytics, advertising, tracking, and personalization. These require explicit opt-in consent.
How to Use This Calculator
- 1
Enter your website name.
- 2
Choose the banner position (bottom, center modal, or corner widget).
- 3
Select a layout style (default, minimal, or developer).
- 4
Choose a color theme (light, dark, or custom).
- 5
Copy the generated HTML/CSS code and paste it into your website.
- 6
The live preview updates in real time as you change settings.
Common Applications
- Adding GDPR-compliant cookie consent banners to European-facing websites to meet legal privacy requirements
- Generating ready-to-use HTML and CSS code for cookie consent banners with different layouts, positions, and color themes
- Understanding cookie consent legal requirements under GDPR and the ePrivacy Directive to avoid regulatory fines
Cookie consent banner — users must actively choose before non-essential cookies load
Understanding the Concept
Cookie consent banners are legally required for websites serving users in the European Union and European Economic Area. Under GDPR Article 7 and the ePrivacy Directive, consent must be "freely given, specific, informed, and unambiguous" — meaning pre-checked boxes and implied consent are no longer valid. The banner must allow users to both accept AND reject non-essential cookies with equal ease (no "dark patterns" like making Decline harder to find than Accept). Essential cookies (session management, authentication, load balancing) are exempt. Analytics, advertising, tracking, and personalization cookies all require explicit opt-in. Fines for non-compliance can reach 4% of annual global revenue or EUR 20 million, whichever is greater.
Frequently Asked Questions
Sources & References
Related Calculators
Reviews
No reviews yet. Be the first to share your experience with Cookie Consent / Banner Generator — GDPR Cookie Notice Maker.
Write a Review
