A lightweight, dependency-free cookie consent banner that respects both user privacy and developer sanity. Featured on CSS Script and used by companies like KickoffLabs.

ez-consent themes

Why I Built This

While developing multiple websites, I needed a simple cookie consent solution. Every option I evaluated had deal-breakers:

  • Commercial solutions wanted monthly fees for basic compliance
  • “Free” options were tracking users themselves (ironic for a privacy tool!)
  • Existing banners were obnoxiously intrusive, hurting user experience

I wanted something that respected both users and developers—minimal, truly free, and actually privacy-focused. That’s why I built ez-consent: a consent banner that doesn’t track you, doesn’t cost anything, and doesn’t annoy your visitors.

Quick Start

Add these lines to your HTML and you’re done:

<link
  href="https://cdn.jsdelivr.net/npm/ez-consent@1.4.0/dist/themes/subtle-bottom-right.min.css"
  rel="stylesheet"
/>
<script
  src="https://cdn.jsdelivr.net/npm/ez-consent@^1/dist/ez-consent.min.js"
  defer async
  onload="ez_consent.init({ privacy_url: '/privacy' });"
></script>

Want to customize or self-host?

Features

  • Zero dependencies - Pure vanilla JavaScript, no bloat
  • Tiny footprint - Under 2KB (GZipped script size in bytes)
  • Privacy-first - Doesn’t track users itself
  • Google Consent Mode v2 - Full support for Google’s consent framework
  • Highly customizable - Every text, behavior, and style can be modified
  • Pre-built themes - Box and subtle designs included
  • Regulatory compliance - Helps meet GDPR, CCPA, LGPD, PIPEDA, POPIA, and other privacy requirements
  • Production-ready - Automated CI/CD with comprehensive testing
  • Quality-focused - ESLint, Prettier, and external URL health checks

Live Examples

Users

CSS Script logo

CSS Script  is one of the web’s most popular resources for discovering JavaScript and CSS libraries. They manually curate thousands of tools, featuring only those they find genuinely useful to developers.

When they featured ez-consent, they highlighted it specifically as “minimal” and “non-intrusive” - exactly the problems I set out to solve. Among thousands of tools they reviewed, they recognized that ez-consent’s vanilla JavaScript approach and zero-dependency philosophy made it worth recommending to their developer audience.

Their curation matters because developers trust CSS Script to filter through the noise and surface quality tools.

KickoffLabs

KickoffLabs logo

KickoffLabs  is a platform for creating viral marketing campaigns, landing pages, and referral programs. They help businesses run contests, giveaways, and waitlists with built-in viral sharing mechanics.

KickoffLabs handles user data for thousands of campaigns across different countries. They needed a GDPR-compliant solution that wouldn’t break their existing landing pages or add bloat to their platform.

As a tech company with developers, KickoffLabs could have built their own solution or paid for an enterprise tool. Instead, they chose ez-consent and officially recommended for other businesses they serve. Their customers trust them to recommend reliable solutions. They evaluated options and found ez-consent met their criteria: lightweight (won’t slow down landing pages), reliable (won’t break campaigns), and simple (their users can implement it easily). They didn’t just mention ez-consent in passing - they created a full implementation guide, linked to their own cookie documentation to work with ez-consent and made it their official recommended solution for GDPR cookie consent.

This validates the original problem: businesses needed a consent solution that was truly free, genuinely lightweight, and wouldn’t track users itself.