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

# Google Sheets

> Display company logos in Google Sheets with Logo Link

Logo Link URLs return images directly, so you can embed company logos in Google Sheets with a simple `IMAGE()` formula — no code required.

<img src="https://mintcdn.com/branddev/U6_YUbxBeaDzLIAE/images/logolink-google-sheets.png?fit=max&auto=format&n=U6_YUbxBeaDzLIAE&q=85&s=8069a754608d9ad6a382396bba0c7f57" alt="Logo Link in Google Sheets" width="1024" height="308" data-path="images/logolink-google-sheets.png" />

## Basic Usage

Use the built-in `IMAGE()` function with a Logo Link URL:

```
=IMAGE("https://logos.context.dev/?publicClientId=brandLL_xxx&domain=stripe.com")
```

<Info>Get your API key from the Context.dev [dashboard](https://www.context.dev/dashboard/logolink) to get started.</Info>

## Dynamic Domains

Reference a cell containing the domain instead of hardcoding it. For example, if cell `A2` contains `stripe.com`:

```
=IMAGE("https://logos.context.dev/?publicClientId=brandLL_xxx&domain=" & A2)
```

Drag the formula down a column to fetch logos for an entire list of domains.

## Sizing

Set the second parameter of `IMAGE()` to control how the logo fits in the cell:

| Mode           | Value | Behavior                                                                  |
| -------------- | ----- | ------------------------------------------------------------------------- |
| Fit to cell    | `1`   | Resizes the image to fit inside the cell, maintaining aspect ratio        |
| Stretch to fit | `2`   | Stretches or compresses the image to fill the cell, ignoring aspect ratio |
| Original size  | `3`   | Uses the original image dimensions (may cause cropping)                   |
| Custom         | `4`   | Specify custom height and width in pixels as additional parameters        |

```
=IMAGE("https://logos.context.dev/?publicClientId=brandLL_xxx&domain=stripe.com", 2)
```

<Tip>Adjust row height and column width so logos display at a reasonable size. `IMAGE()` mode `1` (fit to cell) works well since Logo Link logos are always square.</Tip>

## Fallbacks

If a logo isn't found for a domain, Logo Link automatically returns a generated monogram — cells will never show a broken image.
