Use sparingly
Data URIs can reduce separate requests for tiny assets, but they increase source size and cannot be cached independently.
Make a self-contained text representation for prototypes, small icons, or debugging. Large photos are usually better as files.
Converted locally in this browser
The workspace keeps choices close to the file. Explanations stay down here.
Data URIs can reduce separate requests for tiny assets, but they increase source size and cannot be cached independently.
Create a Data URI, place it in HTML or CSS, and know when a normal image URL is the better choice.
Read and use the tool ↗02Normalize a Base64 value, detect the real image type from bytes, preview it safely, and download the result.
Read and use the tool ↗03Learn what Base64 is, why it adds overhead, when Data URIs help, and when normal image files are better.
Read and use the tool ↗04Choose image formats by content, compatibility, alpha, animation, and performance rather than fashion.
Read and use the tool ↗05Improve image loading with responsive dimensions, stable layout space, compression, priority, and measured page testing.
Read and use the tool ↗