Skip to main content
The Logo API returns any company’s logo as a cacheable image URL. Request https://img.logo.dev/:domain with your publishable key and embed it anywhere you’d use an <img> tag: web apps, emails, spreadsheets, and dashboards. A global CDN serves every logo in PNG, JPG, and WebP, so you never host a logo file yourself.

Lookup modes

Look up a logo with whatever identifier you have:

Parameters

Every lookup mode accepts the same parameters:
ParameterTypeDefaultDescription
tokenstringRequired. Your publishable key (pk_…).
sizeinteger128Width and height in pixels (max 800), keeping the logo’s aspect ratio.
widthintegerExact width in pixels (max 800). Use with height; short alias w.
heightintegerExact height in pixels (max 800). Use with width; short alias h.
formatstringjpgjpg, png, webp, or svg (Enterprise plans).
themestringautoauto, light, or dark — adjusts colors for your background.
greyscalebooleanfalseReturns a black-and-white logo.
retinabooleanfalseRenders at 2× the requested size for high-density screens.
fallbackstringmonogrammonogram or 404 when no logo is found.
For per-identifier details and more worked examples, see Display from domain.

Examples

Request a logo with just a domain and your token:
<img src="https://img.logo.dev/shopify.com?token=LOGO_DEV_PUBLISHABLE_KEY" alt="Shopify logo" />
Shopify logo
Use theme to adapt a transparent logo to a dark or light background:
<img
  src="https://img.logo.dev/apple.com?token=LOGO_DEV_PUBLISHABLE_KEY&theme=dark&format=png"
  alt="Apple logo for dark backgrounds"
/>
Apple logo for dark backgrounds

Fallback images

When no logo is found, the API returns a black-and-white monogram of the domain’s first letter with a 200 OK, so images never break in your UI.
Example fallback monogram
To handle missing logos yourself, pass fallback=404 to get an empty 404 Not Found instead of a monogram, then swap in your own image on error:
<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';"
/>
New to Logo.dev? Create a free account to get a publishable key. The free tier covers most projects. See rate limits for usage details.