Privacy Policy
Last updated: March 6, 2026
1. Who We Are
Diagram2Code (“we”, “us”, “our”) operates the website diagram2code.com. This policy explains how we collect, use, and protect information when you use our service.
2. Information We Collect
2.1 Diagram Data
When you use the converter, your diagram text is sent to our server for processing. We do not store your diagram input or generated SQL output beyond the duration of the HTTP request. No diagrams are logged, saved to disk, or retained in any database.
2.2 Analytics Data (Google Analytics 4)
We use Google Analytics 4 (measurement ID G-HY357EXTCS) to collect anonymous usage data, including:
- Pages visited, time on page, and navigation paths
- Browser type, operating system, and screen resolution
- Approximate geographic location (country / region level)
- Referral source (how you found us)
Google Analytics uses cookies to distinguish unique visitors. This data is aggregated and cannot identify you personally. Analytics data is only collected if you accept cookies via our consent banner.
2.3 Local Storage
We store small values in your browser’s localStorage. These never leave your device:
| Key | Purpose |
|---|---|
d2c-theme | Remembers your light / dark mode preference |
d2c-cookie-consent | Remembers whether you accepted or declined analytics cookies |
2.4 Display Advertising
We display non-intrusive advertisements to support the free operation of this service. We prefer privacy-first, contextual ad networks (such as Carbon Ads or EthicalAds) that do not use tracking cookies and serve ads based on page content rather than user behavior.
If a tracking-based ad network (e.g., Google AdSense) is used in the future, personalized ads will only be served with your consent. Non-personalized ads may still appear without consent, but they do not track you across sites.
Ad networks may collect limited, anonymous data such as:
- Ad impressions served (aggregate, not tied to individuals)
- Whether an ad was clicked
- General geographic region (country level) for ad targeting
2.5 Affiliate Links
Some links on this site are affiliate links to third-party products and services (e.g., database hosting providers). When you click an affiliate link and make a purchase, we may earn a commission at no additional cost to you. We only recommend products we genuinely believe are useful to our users.
Affiliate partners may set their own cookies when you visit their sites. We have no control over third-party cookies — please review the respective partner’s privacy policy.
3. Cookies
Cookies are only set after you click “Accept” on our consent banner.
| Cookie | Provider | Purpose | Duration |
|---|---|---|---|
_ga | Google Analytics | Distinguishes unique visitors | 2 years |
_ga_HY357EXTCS | Google Analytics | Maintains session state | 2 years |
You can opt out at any time by:
- Clearing your browser cookies and declining the banner on your next visit
- Installing the Google Analytics Opt-out Browser Add-on
- Using an ad blocker to prevent display advertising
- Opting out of personalized ads via Google Ad Settings or Your Online Choices
4. How We Use Information
We use analytics data solely to:
- Understand which features are used most
- Identify and fix performance issues
- Improve the user experience
We do not sell, rent, or share your data with third parties for marketing purposes.
5. Data Sharing
We share data only with:
- Google LLC — anonymous analytics statistics, governed by Google’s Privacy Policy
- Ad network partners — contextual ad networks (e.g., Carbon Ads, EthicalAds) receive page-level context to serve relevant ads. No personal data is shared. If a tracking-based network is used, it operates under its own privacy policy and is subject to your consent.
- Affiliate partners — when you click an affiliate link, the destination site may identify the referral source (diagram2code.com). No personal data is transmitted by us.
6. Data Retention
| Data | Retention |
|---|---|
| Diagram input / SQL output | Not retained — processed in memory and discarded immediately |
| Google Analytics data | 14 months, then automatically deleted by Google |
7. Your Rights
Depending on your jurisdiction (GDPR, CCPA, etc.) you may have the right to:
- Access the personal data we hold about you
- Request deletion of your data
- Opt out of analytics tracking
- Withdraw consent for cookies at any time
To exercise any of these rights, contact us at the email below.
8. Security
All communication with diagram2code.com is encrypted via HTTPS / TLS. We follow industry best practices to protect our infrastructure.
9. Children’s Privacy
Our service is not directed at children under 13. We do not knowingly collect personal information from children.
10. Changes to This Policy
We may update this policy from time to time. Changes will be posted on this page with an updated “Last updated” date.
11. Contact
If you have questions about this Privacy Policy, please contact us at: privacy@diagram2code.com