What is a data URI
A data URI is a scheme that embeds resource bytes directly in a URL string. For images, the format is data:image/png;base64, followed by encoded content. Browsers treat it like any other URL when assigned to src or background-image.
The MIME segment — image/jpeg, image/png, image/webp — tells the decoder which format to expect. Incorrect MIME labels can cause render failures even if bytes are valid.
Unlike relative file paths, data URIs travel with the HTML or CSS that references them. That makes prototypes portable and email self-contained, but also couples image updates to document edits unless you regenerate from a tracked source file.
Prototype branches that inline data URIs should regenerate strings before merge so production HTML does not carry stale embedded icons.