Choose an image and copy or download its Base64 representation.
The Image to Base64 Converter turns a selected image into a text representation. Choose a file, review Base64 string, then copy or download the text for the destination that will read it.
An image data URI can begin with a prefix such as data:image/...;base64,. Check whether the output contains that prefix or only the Base64 payload, because applications may expect different forms.
CSS can use a suitable data URI in background-image: url(data:...), while HTML can use it in <img src="data:...">. These are syntax examples, not separate snippet outputs shown by the interface.
Base64 adds roughly 33% to the original byte size. Embedded content becomes part of its containing document, not a separately cached image. Use it where that tradeoff fits your task rather than assuming it makes a page faster.
Check the destination's supported formats and size limits. Do not assume every image type or a particular maximum file size is accepted. Email clients can restrict embedded data, so Base64 does not guarantee that an image will bypass blocked external-image settings.
For an SVG, inline <svg> markup is another approach when appropriate. Review the markup and destination rules before embedding content from an untrusted source.
How to Use Image to Base64 Converter - Encode an Image File
Drop an image into the file area, or click to browse for the file you want to encode.
Inspect Base64 string. Check whether your destination needs the complete data URI or only its Base64 payload.
Use Copy or Download Base64 text, then test the result in the application or document that will read it.
Choose an image and copy or download its Base64 representation.
Tool Use:
1.2k+Added:
Oct 5, 2023Type:
Free ToolPrivacy:
Client SideByte array to string converter for decimal UTF-8 bytes. Paste comma-separated or whitespace-separated values and review the decoded text.
Enter encoded image data and inspect the image before downloading it.