Image to Base64
Convert images to Base64 data URIs and back.
Files never leave your device · Processed in your browser
What is Base64 / data URI?
Base64 encodes binary data like images as plain text (letters, digits, symbols). Prefixing that text with data:image/png;base64, makes it a data URI, letting you embed an image directly inside HTML or CSS without a separate file.
How to use it
① Image → Base64: pick or drop an image and the Base64 result is generated automatically. Choose whether to include the data: prefix and pick a snippet type (raw text, <img>, CSS background).
② Base64 → Image: paste a Base64 string or data URI to preview it, then download the resulting image.
Size increase
Base64 encoding is roughly 33% larger than the original binary. It's convenient as text, but keep the size trade-off in mind.
Privacy & safety
Encoding, decoding, previewing and downloading all happen entirely in your browser — files are never uploaded or stored on a server.