Outbound & GTM

Get Company Domains from a list of Company Names

Turn a list of company names into verified domains without paying for enrichment tools. Paste this free Google Apps Script to automate your lead sourcing workflow instantly.

Free Company Name to Domain Finder

A simple Google Sheets script that helps you find company domains from company names.

No paid enrichment tool.

No manual Google searches.

No complicated setup.

You add company names in Google Sheets, paste the script into Apps Script, run it, and get domains back.


What it does

If your sheet looks like this:

Company Name Domain
HubSpot
Stripe
Notion
Salesforce

The script fills the domain column like this:

Company Name Domain
HubSpot hubspot.com
Stripe stripe.com
Notion notion.so
Salesforce salesforce.com

How to set it up

Step 1: Create your Google Sheet

Create two columns:

A B
Company Name Domain

Put your company names in column A.

Leave column B empty.


Step 2: Open Apps Script

In your Google Sheet, go to:

Extensions → Apps Script

Delete anything already there.

Paste the script below.

Save it.


Step 3: Run the script

Click Run inside Apps Script.

Google may ask for permission the first time.

Approve it.

Then go back to your sheet and the domains should start appearing in column B.


The script

Copy and paste this exact script into Google Apps Script:

function FIND_DOMAINS() {
  var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
  var lastRow = sheet.getLastRow();

  for (var i = 2; i <= lastRow; i++) {
    var companyName = sheet.getRange(i, 1).getValue().toString().trim();
    var domainRange = sheet.getRange(i, 2);

    // Skip row if the company name is empty or domain column is already populated
    if (companyName === "" || domainRange.getValue() !== "") continue;

    // Clean up parenthetical variations like "Alphabet (Google)" to avoid query distortion
    var cleanName = companyName.replace(/\s*\(.*?\)\s*/g, "").trim();

    try {
      // Use the open, free Clearbit Autocomplete API instead of scraping raw search engines
      var url = "https://autocomplete.clearbit.com/v1/companies/suggest?query=" + encodeURIComponent(cleanName);
      var response = UrlFetchApp.fetch(url, {muteHttpExceptions: true});

      if (response.getResponseCode() === 200) {
        var data = JSON.parse(response.getContentText());

        // If the API locates a match, pull the clean domain string directly
        if (data && data.length > 0 && data[0].domain) {
          domainRange.setValue(data[0].domain);
        } else {
          domainRange.setValue("Not Found");
        }
      } else {
        domainRange.setValue("API Error " + response.getResponseCode());
      }

      // Short delay to avoid rate limit constraints
      Utilities.sleep(300);

    } catch(e) {
      domainRange.setValue("Fetch Exception");
    }
  }
}

How to use it

  1. Add company names in column A
  2. Keep column B empty
  3. Run FIND_DOMAINS
  4. The script will add domains in column B

The script skips rows where column B is already filled, so you can safely run it again without overwriting existing results.


Example

Company Name Domain
HubSpot hubspot.com
Stripe stripe.com
Notion notion.so
Salesforce salesforce.com

Important note

This is a free first-pass domain finder.

It is useful for cleaning lead lists, preparing outbound data, and quickly matching company names to websites.

It is not perfect.

Sometimes generic company names may return the wrong domain or no result.

For important campaigns, always verify the final domains before using them.


Best use cases

Use this for:

  • Cold email lead lists
  • Company enrichment
  • Outbound prep
  • CRM cleanup
  • Data cleaning
  • Prospect research
  • Finding missing company websites

Quick reminder

Clean input gives better output.

Use company names like:

  • HubSpot
  • Stripe
  • Notion
  • Salesforce

Avoid messy names like:

  • HubSpot lead list 2026
  • Stripe old prospect
  • Notion USA contact
  • Salesforce exported data

Built for people who hate manual work

If you are preparing lead lists, cleaning company data, or building outbound systems, this should save you a lot of time.

Follow for more practical AI, outbound, GTM, and automation workflows:

@lifeofarjav

instagram.com/lifeofarjav

Related in Outbound & GTM

Outbound & GTM EMAIL: Cold Email Fix Framework Outbound & GTM Google X-Ray Formula For LinkedIn Founder Leads Outbound & GTM Google X-Ray Formula For Instagram Store Leads
← Back to Writing