Cookie Consent Generator
All tools
Generate cookies with modern way
A Free Cookie Consent solution for your website to comply with ePrivacy Directive & GDPR. Create your Cookie Consent notice banner code in 1 minute and comply with.
Start to Generate
Create a Cookie Consent for your website
2. Customize your Cookie Consent
Website name
Upload a company logo (optional)
Drag and drop or click to select
Upload a transparent logo.
Choose your notice popup style
Head Dialog
Bottom Dialog
Simple Dialog
Choose a mode
Choose a your default language
Language missing? We accept user submissions! Contact us.
Enter the ID of a button/link to open the Preferences Center
Users should be able to change their preferences. Include a button/link anywhere on your website pages so that users can open the Preferences Center. Example:
<a href="#" id="open_preferences_center">Change your preferences</a>
Link to your Privacy Policy
Yes, I have a Privacy Policy
3. Add and organize your JavaScript scripts
This is an optional step, but you can organize your JavaScript scripts directly from this page.
For example, you can copy-paste your Google AdWords code here and select "Targeting & Advertising" and we will automatically convert your script code as required by the Cookie Consent tool.
Script name
Script type
Strictly Necessary
ie. account login related cookies
ie. remembering users choices
Tracking & Performance
ie. Google Analytics
Targeting & Advertising
ie. Google AdSense, Google AdWords
Script code
4. Copy your Cookie Consent code
How to integrate Free Cookie Consent on your website
  1. Copy the generated code from Step 4 above and add it right before closing your <body> tag in your website.
  2. Tag any JavaScript <script>that you're using by changing the type="text/javascript" to type="text/plain".
  3. For each tagged <script>, add the corresponding consent level:
    • cookie-consent="strictly-necessary"for strictly necessary scripts that are loaded regardless of user choice
    • cookie-consent="functionality"for functionality scripts, such as language preference scripts
    • cookie-consent="tracking"for tracking scripts, such as Google Analytics
    • cookie-consent="targeting"for targeting scripts, such as Google Ads remarketing
  4. Done.

    <!-- Login Cookies -->
    <script type="text/plain" cookie-consent="strictly-necessary" src="/js/login-session.js"></script>

    <!-- Google Analytics -->
    <script type="text/plain" cookie-consent="tracking">
        (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
        ga('create', GOOGLE_PROPERTY_ID_GOES_HERE, 'auto');
        ga('send', 'pageview');

Preview your
cookie popup