Convert any image to a Base64 data URL instantly in your browser. No upload, fully private.
Drop an image here or click to browse
PNG, JPEG, GIF, WebP, SVG, BMP supported
Click the upload area or drag and drop any image file onto it.
Copy the full data URL to use in HTML/CSS, or copy the bare base64 string for API payloads.
A preview of your image is shown so you can confirm the conversion is correct.
Base64 is a way to represent binary data, like an image, using only text characters. Converting an image to Base64 produces a data URL you can embed directly in HTML or CSS, so the image travels inside your code instead of as a separate file request.
Drop in an image and the tool returns the full data URL, ready to paste into an img tag or a CSS background. Everything happens in your browser, so your image is never uploaded to a server.
Embedding is handy for small icons, logos, and inline assets in emails or single-file pages, because it removes a separate network request and keeps everything in one place. It is also useful when you cannot host a file separately, such as in a self-contained HTML document or a CSS-in-JS component.
Base64 encoding makes the data about a third larger than the original file, and embedded images are not cached separately by the browser. For large or frequently reused images, a normal file reference is usually faster. The sweet spot for embedding is small images that appear once or twice.
For HTML, paste it into the src of an img tag: <img src="data:image/png;base64,...">. For CSS, use it in a background: background-image: url("data:image/png;base64,..."). The prefix before the comma tells the browser the file type and that the data is Base64-encoded, so keep it intact.
Base64 to Image
Decode Base64 image strings into a live preview and download the decoded image.
Base64 Encoder/Decoder
Encode text to Base64 or decode Base64 strings back to text.
URL Encoder/Decoder
Encode or decode URLs and query parameters for safe transmission.
Base32 Encoder/Decoder
Encode text to Base32 or decode Base32 strings back to text instantly.
UTF8 Encoder/Decoder
Encode or decode UTF-8 text strings.
HTML to Markdown
Convert HTML to clean Markdown. Supports headings, links, images, lists, tables, and code blocks.