When to use it
Encode an image into text for source code, API payloads, email templates, or self-contained prototypes. Switch between a complete data URL, raw Base64, CSS background-image syntax, and an HTML image element.
- Embed a small icon directly in HTML or CSS.
- Create a Base64 image value for a JSON or API payload.
- Build a self-contained prototype without separate image files.