How to Track Domain and SSL Certificate Expiry Dates in Google Sheets with Renewal Reminders (2026)

An expired SSL/TLS certificate puts a full-page security warning in front of every visitor, and an expired domain can take the website and the email on it down with it. Registrars and certificate authorities do send notices, but they go to whatever address was used at signup, often a former employee's or a client's, and Let's Encrypt stopped sending expiration emails on June 4, 2025. If you look after more than a handful of domains and certificates, for your own business or for clients, one sheet with every expiry date plus a daily reminder script is a simple safety net. This guide builds that sheet, adds formulas that show what is coming up, and gives you a free Apps Script that emails each owner one list of what to renew, with an optional step that reads domain expiry dates from the public registry data.

Why this matters more in 2026. Under CA/Browser Forum ballot SC-081v3, publicly trusted certificates issued from March 15, 2026 can last at most 200 days, from March 15, 2027 at most 100 days, and from March 15, 2029 at most 47 days (see the schedule as explained by SSL.com). A certificate you used to renew once a year now needs renewing about twice a year, then about every three months. Where you can, automate certificate renewal (ACME clients, your host's or CDN's managed certificates). The sheet is for the ones that are still renewed by hand, for domains, and for checking that automation really worked.

Step 1: a Renewals tab with one row per domain or certificate

Name the tab Renewals. The script finds columns by their header, so the order is up to you, but the formulas below assume A to H:

ColHeaderWhat goes in it
ANameThe domain (example.com) or the certificate's main host name (shop.example.com, *.example.com)
BTypeDomain or Certificate (anything containing “cert”, “SSL” or “TLS” counts). Anything else, like a hosting plan, uses the Other reminder schedule.
CProviderRegistrar or certificate authority, and where it is installed if that helps (“CA, load balancer”)
DExpiresThe expiry date (how to find it is below)
EAuto-renewYes or No (a checkbox works too)
FOwnerEmail of whoever renews it. Blank = the script owner, or DEFAULT_TO.
GStatusBlank while you keep it. Let lapse, Retired, Transferred out, Replaced, Not renewing or Cancelled stop the reminders.
HSent logLeave empty; the script records what it sent

Optional: a column headed Checked for the domain lookup in Step 4, and a helper column Days left filled down from row 2: =IF(D2="","",D2-TODAY()). Format Expires as a date (Format › Number › Date) and give Type, Auto-renew and Status Data › Data validation dropdowns so the values are spelled the way the script expects. A multi-domain or wildcard certificate is one row: put its main name in Name and list the other names in Provider or a Notes column.

Where to find the dates.

Sanity check for certificate dates. If you also record the issue date (say in column J), this gives the latest expiry a public certificate issued that day can have under the schedule above: =IF(J2="","",J2+IF(J2>=DATE(2029,3,15),47,IF(J2>=DATE(2027,3,15),100,IF(J2>=DATE(2026,3,15),200,398)))). An Expires date later than that was probably typed wrong. Certificates from your own private certificate authority are not covered by these limits.

Step 2: see what is coming up

Select A2:I, open Format › Conditional formatting, choose Custom formula is, and add these rules in this order:

Custom formulaColorMeaning
=REGEXMATCH(LOWER($G2),"^(let lapse|lapsed|retired|cancelled|canceled|transferred out|not renewing|replaced)$")Grey textNot renewing, no reminders
=AND(ISNUMBER($D2),$D2<TODAY())RedExpired
=AND(ISNUMBER($D2),$D2>=TODAY(),$D2<=TODAY()+30)AmberExpires in the next 30 days

Everything due in the next 90 days, soonest first, on a summary tab:

=SORT(FILTER(Renewals!A2:F, ISNUMBER(Renewals!D2:D), Renewals!D2:D<=TODAY()+90,
  NOT(REGEXMATCH(LOWER(Renewals!G2:G),
  "^(let lapse|lapsed|retired|cancelled|canceled|transferred out|not renewing|replaced)$"))),
  4, TRUE)

How many manual renewals (Auto-renew typed as No) fall in the next 60 days:

=COUNTIFS(Renewals!E2:E, "No", Renewals!D2:D, ">="&TODAY(), Renewals!D2:D, "<="&TODAY()+60)

And a renewal calendar, a count per month, so you can see busy months coming:

=QUERY(Renewals!A2:D,
  "select year(D), month(D)+1, count(A) where D is not null and D >= date '" &
  TEXT(TODAY(),"yyyy-mm-dd") & "' group by year(D), month(D)+1" &
  " label year(D) 'Year', month(D)+1 'Month', count(A) 'Renewals'", 0)

Step 3: email reminders before the expiry date

Google Sheets doesn't send email when a date arrives; its notification rules react to edits, not to the calendar. A short Apps Script with a daily trigger does it. Open Extensions › Apps Script, paste this and save. Then:

  1. Run sendRenewalReminders once and approve the permissions. PREVIEW is true, so every email goes to you, with the real recipient in the subject, and nothing is logged.
  2. Read the preview emails. When they look right, set PREVIEW = false and save.
  3. Add the trigger: Triggers › Add trigger › sendRenewalReminders › Time-driven › Day timer, for example 8 to 9 AM.
/**
 * Renewal reminders from a "Renewals" tab: one row per domain name or
 * SSL/TLS certificate (or any other thing that expires, like hosting).
 * Headers used (any order): Name, Type, Provider, Expires, Auto-renew,
 *   Owner, Status, Sent log, Checked. Only Name, Expires and Sent log are required.
 * Each owner gets one email per run listing what is coming up or overdue.
 * Renewed? Type the new expiry date: the reminders start over for it.
 * Optional: updateDomainExpiry() reads domain expiry dates from RDAP.
 */
const SHEET_NAME      = 'Renewals';
const REMIND_DAYS     = {                // days before the Expires date, by Type
  Domain:      [60, 30, 14, 7, 1],
  Certificate: [30, 14, 7, 1],
  Other:       [30, 7, 1],
};
const AUTO_RENEW_DAYS = [7];             // rows with Auto-renew = Yes: one "check it renewed" note
const EXPIRED_DAYS    = [1, 7];          // days after the date, until the row is updated or stopped
const DEFAULT_TO      = '';              // used when Owner is blank; blank = you
const STOP_STATUS     = /^(let lapse|lapsed|retired|cancelled|canceled|transferred out|not renewing|replaced)$/i;
const PREVIEW         = true;            // true: everything goes to you, nothing is logged
const MAX_EMAILS      = 50;              // safety cap per run (one email per owner)
const MAX_LOOKUPS     = 40;              // RDAP lookups per run of updateDomainExpiry

const SUBJECT = 'Renewals due: {{Count}} ({{Expired}} expired)';
const INTRO   = 'Hi,\n\nThese domains and certificates expire soon or have expired:';
const OUTRO   = 'After renewing, type the new expiry date in the sheet and the reminders for this one stop. If you are letting it go, set Status to Let lapse.';

const typeOf_   = (t) => /domain/i.test(t) ? 'Domain' : /cert|ssl|tls/i.test(t) ? 'Certificate' : 'Other';
const isAuto_   = (v) => v === true || /^(yes|y|true|on|auto)$/i.test(String(v).trim());

function sendRenewalReminders(now) {
  const lock = LockService.getDocumentLock();
  if (!lock.tryLock(30000)) return;  // another run is still going
  try {
    // A time-driven trigger passes an event object, so only use a real Date.
    return remind_(now instanceof Date ? new Date(now) : new Date());
  } finally {
    lock.releaseLock();
  }
}

function columns_(head) {
  const col = (name) => head.indexOf(name);
  return { name: col('Name'), type: col('Type'), prov: col('Provider'), exp: col('Expires'),
           auto: col('Auto-renew'), to: col('Owner'), status: col('Status'), log: col('Sent log'),
           checked: col('Checked') };
}

function remind_(now) {
  const ss = SpreadsheetApp.getActive();
  const sh = ss.getSheetByName(SHEET_NAME);
  if (!sh) throw new Error(`No tab named ${SHEET_NAME}.`);
  const rows = sh.getDataRange().getValues();
  const c = columns_(rows[0].map((h) => String(h).trim()));
  if ([c.name, c.exp, c.log].includes(-1)) throw new Error('Need Name, Expires and Sent log columns.');

  // Count days in the spreadsheet's own time zone (File > Settings).
  const tz     = ss.getSpreadsheetTimeZone();
  const ymd    = (d) => Utilities.formatDate(d, tz, 'yyyy-MM-dd');
  const dayNum = (d) => Date.UTC(...ymd(d).split('-').map((x, i) => +x - (i === 1 ? 1 : 0))) / 86400000;
  const today  = dayNum(now);
  const isDate = (v) => v instanceof Date && !isNaN(v);
  const EMAIL  = /^[^\s@,;]+@[^\s@,;]+\.[^\s@,;]+$/;
  const me     = Session.getEffectiveUser().getEmail();

  const byOwner = {};
  let badEmail = 0;
  for (let r = 1; r < rows.length; r++) {
    const row  = rows[r];
    const text = (i) => (i === -1 ? '' : String(row[i]).trim());
    if (STOP_STATUS.test(text(c.status))) continue;
    const exp = row[c.exp];
    if (!isDate(exp) || text(c.name) === '') continue;
    const type = typeOf_(text(c.type));
    const auto = c.auto !== -1 && isAuto_(row[c.auto]);
    const left = dayNum(exp) - today;  // negative = expired
    // 30 = 30 days before, -7 = 7 days after the date.
    const steps = (auto ? AUTO_RENEW_DAYS : (REMIND_DAYS[type] || REMIND_DAYS.Other))
                  .concat(EXPIRED_DAYS.map((n) => -n));
    // The one step that fits today: no pile of earlier ones after a gap.
    const hit = steps.filter((s) => left <= s && (left >= 0 || s < 0)).sort((a, b) => a - b)[0];
    if (hit === undefined) continue;
    const sent = String(row[c.log] || '').split(';').filter(String);
    // Keyed to the expiry date: a new date (renewed, or corrected) starts over.
    const key = `E${ymd(exp)}@${hit}`;
    if (sent.includes(key)) continue;
    const to = (text(c.to) || DEFAULT_TO || me).toLowerCase();
    if (!EMAIL.test(to)) { badEmail++; console.log(`Row ${r + 1}: check the Owner email`); continue; }
    const when = left > 1 ? `expires in ${left} days` : left === 1 ? 'expires tomorrow' :
                 left === 0 ? 'expires today' : left === -1 ? 'EXPIRED yesterday' : `EXPIRED ${-left} days ago`;
    const label = text(c.type) || type;
    const extra = [label, text(c.prov), auto ? 'auto-renew: check it went through' : ''].filter(String).join(', ');
    (byOwner[to] = byOwner[to] || []).push({
      r: r + 1, left,
      line: `- ${text(c.name)} (${extra}): ${Utilities.formatDate(exp, tz, 'EEE, MMM d, yyyy')} (${when})`,
      log: sent.concat(key).slice(-12).join(';'),
    });
  }

  // Owners with the most urgent item first, in case the quota runs out.
  const groups = Object.keys(byOwner).map((to) => {
    const items = byOwner[to].sort((a, b) => a.left - b.left || a.r - b.r);
    return { to, items, worst: items[0].left };
  }).sort((a, b) => a.worst - b.worst);

  let sent = 0;
  for (const g of groups) {
    if (sent >= MAX_EMAILS || MailApp.getRemainingDailyQuota() < 1) break;
    const expired = g.items.filter((i) => i.left < 0).length;
    const subject = SUBJECT.replace('{{Count}}', g.items.length + (g.items.length === 1 ? ' item' : ' items'))
                           .replace('{{Expired}}', expired);
    const body = [INTRO, '', ...g.items.map((i) => i.line), '', OUTRO, '', `Sheet: ${ss.getUrl()}`].join('\n');
    MailApp.sendEmail({
      to: PREVIEW ? me : g.to,
      subject: PREVIEW ? `[PREVIEW to ${g.to}] ${subject}` : subject,
      body,
    });
    sent++;
    if (!PREVIEW) {
      // Log right after each email, so a crash can't cause a repeat.
      g.items.forEach((i) => sh.getRange(i.r, c.log + 1).setValue(i.log));
      SpreadsheetApp.flush();
    }
  }
  const result = { sent, left: groups.length - sent, badEmail, preview: PREVIEW };
  console.log(JSON.stringify(result));
  return result;
}

/**
 * Optional: fill Expires for Type = Domain rows from public RDAP data
 * (the successor to WHOIS), via the rdap.org redirect service.
 * Writes only when the registry's date differs from the sheet, and notes
 * the result in a "Checked" column if you have one. Some country-code
 * domains have no RDAP or don't publish an expiry date: those stay as typed.
 */
function updateDomainExpiry(now) {
  const lock = LockService.getDocumentLock();
  if (!lock.tryLock(30000)) return;
  try {
    const ss = SpreadsheetApp.getActive();
    const sh = ss.getSheetByName(SHEET_NAME);
    if (!sh) throw new Error(`No tab named ${SHEET_NAME}.`);
    const rows = sh.getDataRange().getValues();
    const c = columns_(rows[0].map((h) => String(h).trim()));
    if ([c.name, c.type, c.exp].includes(-1)) throw new Error('Need Name, Type and Expires columns.');
    const tz    = ss.getSpreadsheetTimeZone();
    const stamp = Utilities.formatDate(now instanceof Date ? now : new Date(), tz, 'yyyy-MM-dd');
    const DOMAIN = /^(?=.{1,253}$)([a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+(?:[a-z]{2,63}|xn--[a-z0-9-]{1,59})$/;
    const res = { updated: 0, same: 0, notFound: 0, skipped: 0 };
    let lookups = 0;
    for (let r = 1; r < rows.length; r++) {
      const row  = rows[r];
      const name = String(row[c.name]).trim().toLowerCase().replace(/^https?:\/\//, '').replace(/^www\./, '').replace(/\/.*$/, '');
      if (typeOf_(String(row[c.type])) !== 'Domain' ||
          (c.status !== -1 && STOP_STATUS.test(String(row[c.status]).trim()))) continue;
      if (!DOMAIN.test(name)) { res.skipped++; continue; }
      if (lookups >= MAX_LOOKUPS) break;   // the rest go on the next run
      if (lookups++) Utilities.sleep(1000);  // be polite to the RDAP servers
      let iso = '';
      try {
        const resp = UrlFetchApp.fetch('https://rdap.org/domain/' + encodeURIComponent(name),
          { muteHttpExceptions: true, headers: { Accept: 'application/rdap+json' } });
        if (resp.getResponseCode() === 200) {
          const ev = (JSON.parse(resp.getContentText()).events || [])
            .find((e) => e.eventAction === 'expiration' && e.eventDate);
          if (ev) iso = String(ev.eventDate).slice(0, 10);  // the registry's date (UTC)
        }
      } catch (e) {
        console.log(`Row ${r + 1}: ${e.message}`);
      }
      const note = (t) => { if (c.checked !== -1) sh.getRange(r + 1, c.checked + 1).setValue(`${stamp} ${t}`); };
      if (!/^\d{4}-\d{2}-\d{2}$/.test(iso)) { res.notFound++; note('no expiry date in RDAP, check the registrar'); continue; }
      const cur = row[c.exp];
      if (cur instanceof Date && !isNaN(cur) && Utilities.formatDate(cur, tz, 'yyyy-MM-dd') === iso) {
        res.same++; note('RDAP matches'); continue;
      }
      // Written as text in ISO form, which Sheets reads as a date in any locale.
      sh.getRange(r + 1, c.exp + 1).setValue(iso);
      res.updated++; note('Expires updated from RDAP');
    }
    SpreadsheetApp.flush();
    console.log(JSON.stringify(res));
    return res;
  } finally {
    lock.releaseLock();
  }
}

How it behaves:

Step 4 (optional): read domain expiry dates from RDAP

Domain expiry dates are public. RDAP is the registration data service that replaced WHOIS for generic domains, and it returns the expiry date in a machine-readable form. The updateDomainExpiry function in the script above looks up every row with Type = Domain through rdap.org, a free service that forwards each lookup to the right registry, and writes the registry's expiry date into Expires when it differs. That keeps auto-renewed domains up to date without typing, and when a renewal goes through, the reminders roll over to the new date by themselves.

  1. Run updateDomainExpiry once. It asks for one extra permission, to connect to an external service. If you have a Checked column it notes the result per row.
  2. Add a second daily trigger for it an hour before the reminder trigger, for example 7 to 8 AM, so reminders use fresh dates.

It only reads public data and only writes Expires and Checked. It pauses a second between lookups and does at most MAX_LOOKUPS per run. Some country-code domains have no RDAP service or don't publish an expiry date; those rows are noted and keep the date you typed. Internationalized domains need their xn-- form. The registry's date can be a day off your registrar's dashboard because of time zones; when they disagree, the registrar's renewal page is the one to trust. Certificates can't be looked up this way from Apps Script, so keep typing those dates, or use a certificate monitoring service for automated certificates.

Tips

Want reminders without maintaining a script? SheetReminders (disclosure: we make it) is a Google Sheets add-on that watches a date column, such as Expires, and emails the right person on time: several reminders per date (like 30, 7 and 1 days before), reminders after a date for items still open, personalized messages with {{Column name}} and {{Days left}}, a digest mode with one email per person, skipping rows marked as finished, and a sent log written back to the row. Sheet data stays inside your Google account and it uses narrow scopes. 14-day free trial, no credit card required. It is live on the Google Workspace Marketplace. (The RDAP lookup in Step 4 is a separate script; SheetReminders doesn't look up dates.)
See SheetReminders
Short on time? Watch the 50-second version

Related Google Sheets guides

Instructions refer to Google Sheets, Apps Script and the certificate rules as they stood on November 14, 2026. Not affiliated with Google, ICANN, the CA/Browser Forum, Let's Encrypt, rdap.org or any other organization named here. Google Sheets is a trademark of Google LLC. Rules and services change, so verify with your registrar and certificate authority. Questions or corrections: hello@loomwise.app.