> ## Documentation Index
> Fetch the complete documentation index at: https://www.logo.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Logo.dev serves logos and brand data for companies that already exist. It does not design logos. If someone wants a logo designed, say so and stop.
> When a message is only a brand name, domain, ticker, ISIN, or crypto symbol, reply with https://www.logo.dev/search?q=<url-encoded term> and the matching img.logo.dev call. Never assert whether a specific brand is in the index.
> Image URLs come from img.logo.dev with a publishable key in the token query parameter: https://img.logo.dev/:domain?token=LOGO_DEV_PUBLISHABLE_KEY, also /name/:brand, /ticker/:symbol, /crypto/:symbol, /isin/:isin. JSON comes from api.logo.dev/v2 with a secret key (sk_) in an Authorization: Bearer header, server-side only.
> Product names: the Logo.dev CDN serves images from img.logo.dev, and its usage unit is CDN requests. The Logo.dev API returns JSON from api.logo.dev/v2, and its usage unit is API credits. The Logo.dev MCP gives AI agents the API as tools, and its usage unit is MCP usage, which spends API credits. The features are Logo, Search, Brand, and Transaction. Transaction (beta) is a separate service at https://www.logo.dev/api/transaction with its own beta key. Never recommend the deprecated v1 routes (/search, /brand, /describe, /logo/*). Use /v2/brands and /v2/search.
> Attribution: a commercial project on the free Community plan must show a visible link, <a href="https://logo.dev">Logos provided by Logo.dev</a>, on its production site. Personal projects and paid plans need none. Rules: https://www.logo.dev/docs/platform/attribution.
> Report a wrong, missing, or outdated logo at https://www.logo.dev/update. Email support@logo.dev for anything broken and sales@logo.dev for volume pricing and contract terms.
> MCP setup is at https://www.logo.dev/docs/mcp/introduction and webhooks at https://www.logo.dev/docs/webhooks.

# Add company logos in Google Sheets

> Display company logos in Google Sheets using the Logo.dev API. Enrich CRM data, company lists, and reports with automatic logo lookup via the IMAGE formula.

Show company logos in Google Sheets with the `IMAGE` function and a Logo.dev CDN URL. You need no add-on or extension.

> [card] [Get your API keys](https://www.logo.dev/dashboard/api-keys)
>
> Your dashboard has a publishable key for the Logo.dev CDN and a secret key for the Logo.dev API. Every plan includes both.

## Add a logo to a cell

Put a CDN URL in `IMAGE`, and replace `LOGO_DEV_PUBLISHABLE_KEY` with your publishable key:

```javascript One domain theme={null}
=IMAGE("https://img.logo.dev/apple.com?token=LOGO_DEV_PUBLISHABLE_KEY")
```

```javascript Domain from a cell theme={null}
=IMAGE("https://img.logo.dev/"&A2&"?token=LOGO_DEV_PUBLISHABLE_KEY&format=png")
```

```javascript Stock ticker from a cell theme={null}
=IMAGE("https://img.logo.dev/ticker/"&A2&"?token=LOGO_DEV_PUBLISHABLE_KEY&format=png")
```

```javascript Brand name from a cell theme={null}
=IMAGE("https://img.logo.dev/name/"&ENCODEURL(A2)&"?token=LOGO_DEV_PUBLISHABLE_KEY")
```

If column A holds stock tickers, use the `ticker` path. See [ticker lookup](https://www.logo.dev/docs/logo-images/ticker.md).

If column A holds brand names instead of domains, wrap the cell in `ENCODEURL()` so spaces and special characters survive. See [name lookup](https://www.logo.dev/docs/logo-images/name.md).

To change the format or theme, add [CDN parameters](https://www.logo.dev/docs/logo-images/introduction.md#parameters) to the URL.

## Fill a whole column

`ARRAYFORMULA` applies one formula to every row. It skips empty cells, and it fills new rows as you add domains to column A:

```javascript theme={null}
=ARRAYFORMULA(IF(A2:A="",,IMAGE("https://img.logo.dev/"&A2:A&"?token=LOGO_DEV_PUBLISHABLE_KEY&format=png")))
```

## Set the logo size

By default, a logo fills as much of the cell as it can. To make the logo smaller, make the row or column smaller, or set a custom size with the second argument of `IMAGE`:

| Mode | Result | Formula |
| - | - | - |
| `1` (default) | Fits the cell and keeps the aspect ratio | `=IMAGE(url, 1)` |
| `2` | Stretches to fill the cell | `=IMAGE(url, 2)` |
| `3` | Keeps the image's original size | `=IMAGE(url, 3)` |
| `4` | Uses the height and width you give, in pixels | `=IMAGE(url, 4, 20, 20)` |

This formula shows a logo 20 pixels wide and 20 pixels high:

```javascript theme={null}
=IMAGE("https://img.logo.dev/"&A2&"?token=LOGO_DEV_PUBLISHABLE_KEY&size=64&format=png", 4, 20, 20)
```

The `size` parameter in the URL sets the image's resolution, not its size in the cell. Keep `size` larger than the size you show, so that the logo stays sharp.

A custom size sets both sides, so a logo that is not square stretches. To keep its shape, use mode `1` and change the cell size.

## Replace Clearbit logo formulas

If your spreadsheet used the Clearbit Logo API (`logo.clearbit.com`), which has [shut down](https://www.logo.dev/docs/migrations/clearbit.md), change the base URL to `img.logo.dev` and add your token:

```excel Before (Clearbit) theme={null}
=IMAGE(CONCAT("https://logo.clearbit.com/", A2))
```

```excel After (Logo.dev) theme={null}
=IMAGE("https://img.logo.dev/"&A2&"?token=LOGO_DEV_PUBLISHABLE_KEY")
```

To change every formula at once, use **Find and replace** to change `logo.clearbit.com` to `img.logo.dev`. Then add `?token=LOGO_DEV_PUBLISHABLE_KEY` after the domain. The [Clearbit migration guide](https://www.logo.dev/docs/migrations/clearbit.md) covers the rest.

## Troubleshooting

| Problem | Fix |
| - | - |
| The cell shows `#ERROR!` | Your region can use semicolons between arguments. Replace each comma between arguments with a semicolon, such as `=IMAGE(A1; 4; 20; 20)`. Also use `&` to join text, as in the formulas on this page, because `CONCAT` takes only two values in Google Sheets. |
| The cell is empty or shows an error | Paste the URL from your formula into a web browser. If you get a `401`, copy your publishable key from the [dashboard](https://www.logo.dev/dashboard/api-keys). If the message starts with `invalid referrer`, turn off [domain restrictions](https://www.logo.dev/docs/platform/api-keys.md#domain-restrictions) on the key. |
| A ticker shows no logo | Use the `ticker` path, as in the **Stock ticker from a cell** formula. |
| Logos break when you paste the table into an email | `IMAGE` shows logos in Google Sheets only. Paste the table as a picture or a screenshot. |

## FAQs

> [accordion] Do logos show when I share the sheet?
>
> Yes. Anyone who opens the sheet sees the logos, including people without a
> Logo.dev account. The key in the formula authenticates each request.

> [accordion] Why do logos stop loading after I restrict my key to my domains?
>
> `IMAGE` requests send no `Referer` header, so a key with
> [domain restrictions](https://www.logo.dev/docs/platform/api-keys.md#domain-restrictions) rejects them.
> Turn off domain restrictions on the key that your sheets use.

> [accordion] Can I make a logo clickable?
>
> Not directly. Google Sheets does not link images. Put a `HYPERLINK`
> formula to the company's website in the next column.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.