A data URL stores an image’s bytes inside a text string. It can be convenient for a tiny standalone demonstration or an asset that must travel with a document. ERITHRA’s Image to Base64 Converter creates that string from one image without asking you to upload it to a server.
Convert one suitable image
Choose a JPEG, PNG, or WebP file and inspect the upload preview. This tool accepts one image at a time, limited to 5 MB and 40 megapixels. Unlike the batch image tools, it does not produce a ZIP or apply a shared setting to multiple files.
Select Create Base64. The result begins with a media type and an encoding marker, followed by the encoded image data. Copy the complete value or download the text result. Leaving out the prefix can prevent a destination field from recognizing it as an image.
The tool reads the source file into a data URL after checking that the image can be decoded. It does not resize or recompress the image first. Make any necessary size changes before creating the string, and avoid including accidental whitespace when placing it into another application.
Recognize a working embedding example
For a PNG, the result begins data:image/png;base64,. The remaining characters represent that file’s bytes. In HTML, place the complete value inside an image source: <img src="PASTE_COMPLETE_DATA_URL_HERE" alt="Small blue icon">. Replace the placeholder with the result rather than typing the example prefix by itself.
If the source is 96 by 96 pixels, encoding does not change those dimensions. A browser can still display it at a chosen CSS size, but that is a separate presentation decision. Test the finished document to confirm both the asset and its alternative text work in context.
Base64 increases the encoded payload by roughly one third before considering the prefix. It is therefore unsuitable as an automatic file-size optimization, particularly for photographs already measured in megabytes.
Treat the string like the source file
Base64 is an encoding, not encryption. Anyone who receives the string can recover the image. Because this operation embeds the original bytes, do not assume it strips metadata or removes information you did not intend to share. Review the source before distributing the result.
Conversion happens in your browser. Destination applications can impose their own limits or block data URLs, so test the actual workflow. Use Image Resizer to prepare a smaller asset first. Base64 Encoder / Decoder serves text workflows and should not be confused with this image-specific data URL operation.