Privacy Policy Generator

Generate a professional, legally-compliant privacy policy in seconds. Free.

🔒 GDPR 🏛 CCPA/CPRA 🛡 COPPA 🌎 LGPD ⚡ Instant 💻 Client-Side ✅ Free

1. Your Company / Website

2. Data You Collect

3. Third-Party Services

4. Compliance Frameworks

Your Privacy Policy

Need unlimited generations & custom branding? Upgrade to Pro →

`; let textLines=[`PRIVACY POLICY`,co,`Effective: ${c.effective_date}`,'='.repeat(60),'']; sections.forEach((s,i)=>{textLines.push(`${i+1}. ${s.title.toUpperCase()}`);textLines.push('-'.repeat(40));textLines.push(s.content.replace(/\*\*(.+?)\*\*/g,'$1'));textLines.push('')}); textLines.push('='.repeat(60),'Generated by Privacy Policy Generator — Tool Factory'); return{html,text:textLines.join('\n')}; } function showHTML(){currentMode='html';document.getElementById('preview').innerHTML=policyHTML;document.getElementById('preview').classList.remove('text-mode');document.getElementById('btn-html').classList.add('active');document.getElementById('btn-text').classList.remove('active')} function showText(){currentMode='text';document.getElementById('preview').textContent=policyText;document.getElementById('preview').classList.add('text-mode');document.getElementById('btn-text').classList.add('active');document.getElementById('btn-html').classList.remove('active')} function copyPolicy(){const t=currentMode==='html'?policyHTML:policyText;navigator.clipboard.writeText(t).then(()=>{const b=document.getElementById('btn-copy');b.textContent='Copied!';setTimeout(()=>b.textContent='Copy',2000)})} function downloadPolicy(){const t=currentMode==='html'?policyHTML:policyText;const ext=currentMode==='html'?'html':'txt';const b=new Blob([t],{type:currentMode==='html'?'text/html':'text/plain'});const a=document.createElement('a');a.href=URL.createObjectURL(b);a.download=`privacy-policy.${ext}`;a.click()} init();