- What is a Base64 data URI?
- A data URI embeds a file directly in text as data:[type];base64,[data]. In HTML or CSS it lets a small image load without a separate network request.
- When should I inline an image as Base64?
- It works best for small, frequently used assets like icons and logos, where saving a request matters. Base64 adds about a third to the byte size, so large photos are better left as normal files.
- Which image formats are supported?
- PNG, JPEG, GIF, SVG, and WebP. The data URI keeps the original format; it does not re-encode the image.
- Is my image uploaded?
- No. The file is read and encoded locally with the browser FileReader, so it never leaves your device.