@, so there is nothing to look up or store.
Demo
Type any work email: The preview brands itself live fromimg.logo.dev as you type; try a domain nobody has heard of and you still get a monogram.
Build it with AI
Want a branded signup preview in your app? This prompt gives your AI coding tool everything it needs to build it in your framework.
Code
This example is in React, but you can get the same result in any frontend framework: the preview is one image URL rebuilt as the input changes.OnboardingPreview.tsx is the whole component, and the Usage tab renders it with your publishable key.
Your publishable key is built for client-side code, so
you can ship it in the browser as-is.
How it works
- One image URL returns the logo.
img.logo.dev/:domainserves it, andsize,retina, andformatparameters keep the preview sharp and light. See all image parameters. - The domain comes from the email. Everything after the
@is the lookup key, so identifying the company costs zero API calls. - Unknown domains still look intentional. Logo.dev serves a generated monogram when it has no logo for a domain, so a startup nobody has heard of still gets a branded preview. See fallback images.
- The preview holds still. The logo slot keeps one fixed size whether it shows the placeholder, a monogram, or the real logo.
Make it your own
- Skip free email providers. Keep a small denylist for domains like
gmail.comand show the neutral placeholder instead, the way the logo from a domain example handles missing logos. - Pre-fill the company name. Resolve the domain with the Search API on the server to get the proper name instead of a capitalized domain.
- Theme the whole page. The Brand API returns colors and other assets to brand more than the logo slot.
Next steps
Brand API
Get full brand profiles: logo, brandmark, banners, and colors.
Logo from a domain
Render your own fallback instead of the monogram.