# Smart Monogram Fallbacks

> Never show a broken image. When a logo isn't available, LoadLogo automatically generates a clean monogram using the brand's initials.

## How It Works

1. **Multi-strategy fetch** — The worker tries R2 cache, Firecrawl branding, common logo paths, and Google favicons.
2. **Monogram generation** — If no logo is found, an SVG monogram is generated using the first letter with a deterministic color from the domain hash.
3. **Not cached in R2** — Monograms are served directly without R2 storage, ensuring real logos can be stored later without being overwritten.
4. **Clean SVG output** — The monogram is a scalable SVG with rounded corners and consistent typography.

## Benefits

- Never show broken `<img>` tags — every request returns a valid image
- Deterministic colors — same domain always gets the same color
- Clean SVG format — scales to any size without quality loss
- Intelligent letter selection from the domain name
- Monograms don't overwrite real logos in the cache
- Zero configuration — works automatically

## Code Example

```html
<!-- Automatic monogram fallback for unknown domains -->
<img src="https://img.loadlogo.com/some-unknown-startup.com" />

<!-- Force 404 instead of monogram -->
<img src="https://img.loadlogo.com/unknown.com?fallback=404" />
```

## Related

- [Domain Logo Lookup](/features/domain-lookup.md)
- [Global CDN Delivery](/features/cdn-delivery.md)
- [Full API Reference](/docs.md)
