100+ free online tools for PDF, calculators, finance, text, SEO, developer tasks and more.

Privacy Policy Generator

Create a custom privacy policy for your website

Enter Your Details

What kind of personal information do you collect from users?

How can users contact you regarding your Privacy Policy?

Additional Options

Viren K. Used Tool
Converted PDF to Editable Word Document
📍 Singapore 📄 PDF Tool ⏱️ 12 seconds ago
`], { type: 'text/html' }); const link = document.createElement('a'); link.href = URL.createObjectURL(blob); link.download = filename; link.click(); URL.revokeObjectURL(link.href); }); async function generatePolicy() { // Collect form values const websiteName = document.getElementById('websiteName').value.trim(); const websiteUrl = document.getElementById('websiteUrl').value.trim(); const email = document.getElementById('email').value.trim(); const country = document.getElementById('country').value; const date = document.getElementById('date').value; const ownerType = document.getElementById('ownerType').value; const ownerName = document.getElementById('ownerName').value.trim(); // Validate inputs if (!websiteName) throw new Error('Website Name is required.'); if (!websiteUrl || !validateURL(websiteUrl)) throw new Error('Please enter a valid Website URL (e.g., https://example.com).'); if (!email || !validateEmail(email)) throw new Error('Please enter a valid Email Address.'); if (!country) throw new Error('Country is required.'); if (!date) throw new Error('Effective Date is required.'); if (!ownerType) throw new Error('Owner Type is required.'); if (ownerType === 'Individual' && !ownerName) throw new Error('Owner Name is required for Individual owner type.'); if (document.getElementById('collectOther').checked && !document.getElementById('otherInfo').value.trim()) { throw new Error('Please specify the other information collected.'); } if (contactPhone.checked && !phoneNumber.value.trim()) throw new Error('Phone Number is required when "By phone number" is selected.'); if (contactMail.checked && !mailAddress.value.trim()) throw new Error('Mailing Address is required when "By sending mail" is selected.'); // Format date const formattedDate = new Date(date).toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' }); // Data collection const collects = []; if (document.getElementById('collectEmail').checked) collects.push('email address'); if (document.getElementById('collectName').checked) collects.push('first and last name'); if (document.getElementById('collectPhone').checked) collects.push('phone number'); if (document.getElementById('collectAddress').checked) collects.push('address, state, province, ZIP/postal code, city'); if (document.getElementById('collectSocial').checked) collects.push('social media profile information'); if (document.getElementById('collectOther').checked) { collects.push(sanitizeHTML(document.getElementById('otherInfo').value.trim().toLowerCase())); } // Contact methods const contactMethods = []; if (document.getElementById('contactEmail').checked) { contactMethods.push(`By email: ${sanitizeHTML(email)}`); } if (document.getElementById('contactPage').checked) { contactMethods.push(`By visiting this page on our website: ${sanitizeHTML(websiteUrl)}/contact`); } if (contactPhone.checked) { contactMethods.push(`By phone number: ${sanitizeHTML(phoneNumber.value.trim())}`); } if (contactMail.checked) { contactMethods.push(`By sending post mail to: ${sanitizeHTML(mailAddress.value.trim())}`); } // Additional options const usesCookies = document.getElementById('useCookies').checked; const hasThirdParty = document.getElementById('hasThirdParty').checked; const hasChildren = document.getElementById('hasChildren').checked; // Generate policy sections const sections = [ { title: `Privacy Policy for ${sanitizeHTML(websiteName)}`, content: `

Effective Date: ${sanitizeHTML(formattedDate)}

At ${sanitizeHTML(websiteName)}, accessible from ${sanitizeHTML(websiteUrl)}, one of our main priorities is the privacy of our visitors. This Privacy Policy document contains types of information that is collected and recorded by ${sanitizeHTML(websiteName)} and how we use it.

If you have additional questions or require more information about our Privacy Policy, do not hesitate to contact us.

`, headingLevel: 1 }, { title: 'Information We Collect', content: `

The personal information that you are asked to provide, and the reasons why you are asked to provide it, will be made clear to you at the point we ask you to provide your personal information.

${collects.length > 0 ? `

If you contact us directly, we may receive additional information about you such as your ${formatList(collects)} and any other information you may choose to provide.

` : `

We do not collect personal information directly from our users, except as necessary to provide our services or as indicated in other sections of this policy (e.g., cookies).

`} ` }, ...(usesCookies ? [{ title: 'Cookies and Web Beacons', content: `

Like any other website, ${sanitizeHTML(websiteName)} uses 'cookies'. These cookies are used to store information including visitors' preferences, and the pages on the website that the visitor accessed or visited. The information is used to optimize the users' experience by customizing our web page content based on visitors' browser type and/or other information.

` }] : []), { title: 'How We Use Your Information', content: `

We use the information we collect in various ways, including to:

` }, ...(hasThirdParty ? [{ title: 'Third Party Privacy Policies', content: `

${sanitizeHTML(websiteName)}'s Privacy Policy does not apply to other advertisers or websites. Thus, we are advising you to consult the respective Privacy Policies of these third-party ad servers for more detailed information. It may include their practices and instructions about how to opt-out of certain options.

` }] : []), ...(hasChildren ? [{ title: "Children's Information", content: `

Another part of our priority is adding protection for children while using the internet. We encourage parents and guardians to observe, participate in, and/or monitor and guide their online activity.

${sanitizeHTML(websiteName)} does not knowingly collect any Personal Identifiable Information from children under the age of 13. If you think that your child provided this kind of information on our website, we strongly encourage you to contact us immediately and we will do our best efforts to promptly remove such information from our records.

` }] : []), { title: 'Contact Us', content: `

If you have any questions or suggestions about our Privacy Policy, do not hesitate to contact us using one of the following methods:

` } ]; // Generate policy HTML let sectionNumber = 1; const policyHTML = sections.map((section, index) => { const tag = section.headingLevel === 1 ? 'h1' : 'h2'; const number = section.headingLevel === 1 ? '' : `${sectionNumber++}. `; return ` <${tag}>${number}${sanitizeHTML(section.title)} ${section.content} `; }).join(''); // Display result document.getElementById('policyResult').innerHTML = policyHTML; document.getElementById('resultSection').classList.remove('hidden'); document.getElementById('resultSection').scrollIntoView({ behavior: 'smooth' }); } });