How it works
- Select a supported image from your device.
- Choose Raw Base64 or Data URI output.
- Inspect the local preview and detected MIME type.
- Copy or download the generated text.
Practical example
A PNG becomes data:image/png;base64,... in Data URI mode. That full string can be used as an image src in HTML or CSS where embedding is appropriate.
Formula and explanation
Raw Base64 contains only the encoded bytes. A Data URI adds the detected MIME type and base64 marker, making the value self-describing and directly usable by browser APIs.
Embedding removes an extra network request, but Base64 grows the payload by about 33% and prevents normal browser caching of a separate file. It is best for small assets, prototypes or self-contained documents—not every large image.
Cifrivo checks the file signature rather than trusting only its filename. Reading, previewing and encoding take place in the browser, so the selected image never leaves the device.