Cookies can impact online privacy by tracking your browsing habits and collecting personal information. They remember your preferences and activities across websites, which advertisers use to build profiles for targeted ads. This constant data collection can lead to concerns about how your information is used and shared, potentially exposing your privacy without your explicit consent.