> ## 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.

# Logo.dev CDN: Get Any Company Logo by Domain

> The Logo.dev CDN returns any company's logo from one image URL. Look up logos by domain, name, stock ticker, ISIN, crypto symbol, stock exchange, or market index in JPG, PNG, or WebP.

The Logo.dev CDN gives you any company's logo as an image URL. Put `https://img.logo.dev/{identifier}` in an `<img>` tag with your publishable key, and the CDN serves the latest logo from its cache. You never host a logo file yourself.

## Add a logo to your page

**1. Get a publishable key**

> [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.

The publishable key (`pk_`) is safe in client code. To stop other sites from using it, add [domain restrictions](https://www.logo.dev/docs/platform/api-keys.md#domain-restrictions).

**2. Embed the logo**

Put the identifier you have in the path and your key in `token`:

```html Domain theme={null}
<img src="https://img.logo.dev/shopify.com?token=LOGO_DEV_PUBLISHABLE_KEY" alt="Shopify logo" />
```

```html Name theme={null}
<img src="https://img.logo.dev/name/Shopify?token=LOGO_DEV_PUBLISHABLE_KEY" alt="Shopify logo" />
```

```html Ticker theme={null}
<img src="https://img.logo.dev/ticker/SHOP?token=LOGO_DEV_PUBLISHABLE_KEY" alt="Shopify logo" />
```

```html ISIN theme={null}
<img src="https://img.logo.dev/isin/US0378331005?token=LOGO_DEV_PUBLISHABLE_KEY" alt="Apple logo" />
```

```html Crypto theme={null}
<img src="https://img.logo.dev/crypto/BTC?token=LOGO_DEV_PUBLISHABLE_KEY" alt="Bitcoin logo" />
```

![Shopify logo](https://img.logo.dev/shopify.com?token=live_6a1a28fd-6420-4492-aeb0-b297461d9de2)

[https://img.logo.dev/shopify.com?token=LOGO\_DEV\_PUBLISHABLE\_KEY](https://img.logo.dev/shopify.com?token=LOGO_DEV_PUBLISHABLE_KEY)

**3. Go live**

Before you ship, check whether your plan needs an [attribution link](https://www.logo.dev/docs/platform/attribution.md), and read the [rate limits](https://www.logo.dev/docs/platform/rate-limits.md) and [fair use policy](https://www.logo.dev/docs/platform/fair-use.md).

## Lookup modes

Use the identifier your data already has. Each page covers the notes for that identifier.

* [By domain](https://www.logo.dev/docs/logo-images/get.md): the company's website, such as `shopify.com`. The most direct lookup.
* [By name](https://www.logo.dev/docs/logo-images/name.md): a brand name, such as `Shopify`, when you have no domain.
* [By stock ticker](https://www.logo.dev/docs/logo-images/ticker.md): a symbol such as `AAPL`, with suffixes for non-US exchanges.
* [By ISIN](https://www.logo.dev/docs/logo-images/isin.md): a security identifier, such as `US0378331005`.
* [By crypto symbol](https://www.logo.dev/docs/logo-images/crypto.md): a token symbol, such as `BTC`.
* [By stock exchange](https://www.logo.dev/docs/logo-images/exchange.md): an exchange code, such as `NYSE`.
* [By market index](https://www.logo.dev/docs/logo-images/market-index.md): an index symbol, such as `SPX`.

## Choose a format

The default format is `jpg`. JPG has no transparency, so the logo sits on a white box. For a transparent background, request `format=png`. For smaller files, request `format=webp`.

```html theme={null}
<img src="https://img.logo.dev/shopify.com?token=LOGO_DEV_PUBLISHABLE_KEY&format=png" alt="Shopify logo" />
```

The CDN does not serve SVG.

## Size it for retina screens

`size` sets the width and height in pixels, and the logo keeps its aspect ratio. Request the size you display, and add `retina=true` to get a 2x image for high-density screens:

```html theme={null}
<img
  src="https://img.logo.dev/shopify.com?token=LOGO_DEV_PUBLISHABLE_KEY&size=64&retina=true"
  alt="Shopify logo"
  width="64"
  height="64"
/>
```

To set each side, use `width` and `height` instead of `size`.

## Match light and dark themes

`theme` changes the colors of a transparent logo so it stays visible on your background. `theme=dark` lightens a dark logo for a dark background. `theme=light` does the reverse. Use it with `format=png` or `format=webp`, because a JPG has no transparency. Do not send `theme=dark` with the default `jpg` format: the request can return `404`.

```html theme={null}
<img
  src="https://img.logo.dev/apple.com?token=LOGO_DEV_PUBLISHABLE_KEY&theme=dark&format=png"
  alt="Apple logo"
/>
```

![Apple logo for dark backgrounds](https://img.logo.dev/apple.com?token=live_6a1a28fd-6420-4492-aeb0-b297461d9de2\&theme=dark\&format=png)

[https://img.logo.dev/apple.com?token=LOGO\_DEV\_PUBLISHABLE\_KEY\&theme=dark\&format=png](https://img.logo.dev/apple.com?token=LOGO_DEV_PUBLISHABLE_KEY\&theme=dark\&format=png)

For a black-and-white logo, add `greyscale=true`.

## Even out logo margins

Some logo files have a wide transparent border, so the logo looks smaller than others at the same size. Add `trimpad` to remove that border and put the same space on every side. The value is the space in pixels at the requested `size`:

```html theme={null}
<img
  src="https://img.logo.dev/netflix.com?token=LOGO_DEV_PUBLISHABLE_KEY&size=128&format=png&trimpad=8"
  alt="Netflix logo"
  width="128"
  height="128"
/>
```

The image stays the requested size, and `retina=true` doubles the space with it. `trimpad=0` removes the border and adds no space. A logo on a solid square has no transparent border, so it keeps its square and gets the space around it. Use `format=png` or `format=webp`. With the default `jpg` format, the space is white. Leave at least 2 pixels for the logo: `size` minus twice `trimpad` must be 2 or more. With `width` or `height`, this applies to the width and to the height. A larger value returns `404`, or `400` for a name or ISIN with no match.

## Get the wide logo or the favicon

The CDN serves each company's square logo. For the wide logo lockup, the [brandmark](https://www.logo.dev/docs/concepts.md#brandmark), call [`GET /v2/brands/brandmark`](https://www.logo.dev/docs/brand/introduction#get-only-the-logo-or-the-brandmark) from your server. The CDN does not serve a site's [favicon](https://www.logo.dev/docs/concepts.md#favicon).

## Fallback images

If Logo.dev has no logo for an identifier, the CDN returns a generated monogram. The status is `200`, or [`202`](https://www.logo.dev/docs/platform/errors#logo-cdn-status-codes) on the first request for a domain Logo.dev has not seen. Either way, your UI shows an image, not a broken one.

![Example fallback monogram](https://img.logo.dev/example.com?token=live_6a1a28fd-6420-4492-aeb0-b297461d9de2)

[https://img.logo.dev/example.com?token=LOGO\_DEV\_PUBLISHABLE\_KEY](https://img.logo.dev/example.com?token=LOGO_DEV_PUBLISHABLE_KEY)

To show your own image instead, add `fallback=404`. The CDN then returns `404 Not Found`, and your error handler swaps in your image:

```html HTML theme={null}
<img
  src="https://img.logo.dev/acme.invalid?token=LOGO_DEV_PUBLISHABLE_KEY&fallback=404"
  alt="Company logo"
  onerror="this.onerror=null; this.src='/images/default-logo.png';"
/>
```

```jsx React theme={null}
import { useState } from "react";

function CompanyLogo({ domain }) {
  const [src, setSrc] = useState(
    `https://img.logo.dev/${domain}?token=LOGO_DEV_PUBLISHABLE_KEY&fallback=404`
  );

  return (
    <img
      src={src}
      alt={`${domain} logo`}
      onError={() => setSrc("/images/default-logo.png")}
    />
  );
}
```

## Skip domains that redirect

Some domains reach a brand only through a redirect, such as an old domain that now points to a new company. By default, the CDN follows the redirect and returns the logo of the domain it points to. To treat these domains as having no logo, add `redirect=404`. The CDN then returns `404 Not Found`, whatever `fallback` is set to:

```html theme={null}
<img src="https://img.logo.dev/example.com?token=LOGO_DEV_PUBLISHABLE_KEY&redirect=404" alt="Example logo" />
```

## Parameters

Every lookup mode takes the same query parameters: `token`, `size`, `width`, `height`, `format`, `theme`, `greyscale`, `retina`, `trimpad`, `fallback`, and `redirect`. The [Get a logo reference](https://www.logo.dev/docs/api-reference/logo-cdn/get-a-logo.md) lists each value and default.

## Related

* [Errors](https://www.logo.dev/docs/platform/errors.md): what each status code from the CDN means.
* [Caching](https://www.logo.dev/docs/platform/caching.md): how browsers cache a logo, and how to get a changed one.
* [Troubleshooting](https://www.logo.dev/docs/platform/troubleshooting.md): a white box, a monogram, or a blurry logo.
* [Self-hosting](https://www.logo.dev/docs/platform/self-hosting.md): to store a logo file on your server, use the Logo.dev API with a secret key, not the CDN.


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