Encoding
encoding
web
images
What is Data URI?
Definition
A Data URI (Uniform Resource Identifier) embeds small files directly in HTML or CSS using the data: scheme. The format is data:[mediatype][;base64],data — for example, data:image/png;base64,iVBOR... embeds a PNG image inline.
Why It Matters
Data URIs eliminate extra HTTP requests for small assets like icons and thumbnails, improving page load performance. They are commonly used for embedding small images in CSS, email templates, and single-file HTML documents.