When to embed an image as Base64
For small things that must travel with the code: an icon in a single-file HTML page, a logo in an email signature or template, an image inside a JSON payload or a test fixture, a background in a CSS file you can't pair with assets. One file, no extra request, nothing to host.