Convert any image to a Base64-encoded data URL so you can embed it directly in HTML, CSS, or JavaScript without a separate file reference. Base64 images are useful for email templates, inline SVG styles, data URIs in stylesheets, and situations where you can't host files externally. The output is a text file containing the complete data URL string, ready to copy-paste.
Drop files here
or browse to upload · paste from clipboard
Up to 10.0 MB per file
Upload your image
Drop a JPEG, PNG, WebP, or AVIF image (max 10 MB — Base64 strings get large quickly). The tool reads the raw file bytes without re-encoding.
Click Convert
The image bytes are converted to a Base64 string and wrapped in a data URL with the appropriate MIME type prefix (e.g., data:image/jpeg;base64,...).
Download the text file
The output is a .txt file containing the complete data URL. Open it in any text editor, then copy the string.
Use in your code
Paste the data URL directly into an img src attribute, a CSS background-image property, or a JavaScript string. No separate image hosting needed.