Related Tools
Frequently Asked Questions
Yes, it's 100% free with no signup, no watermark, and no limit on how many images you convert.
No. Encoding and decoding both happen locally in your browser using the FileReader API — your image never leaves your device.
PNG, JPG, WebP, GIF, and SVG are all supported for both encoding and decoding.
Paste the generated data URL directly into an <img> tag's src attribute, e.g. <img src="data:image/png;base64,...">, with no separate image file needed.
Use the data URL as a background-image value, e.g. background-image: url("data:image/png;base64,...") — useful for small icons or sprites you want bundled into your stylesheet.
Base64 is a text encoding scheme that represents binary data — like an image file — as a string of letters, numbers, and a few symbols, so it can be embedded anywhere plain text is allowed, such as HTML, CSS, or JSON.
Base64 encoding increases file size by roughly 33% compared to the original binary, since every 3 bytes of image data becomes 4 characters of text. Larger or high-resolution images produce proportionally longer strings.
Yes, SVG files encode the same way as raster images — upload the .svg file and copy the resulting data URL.
You can encode images up to 20MB. Keep in mind very large Base64 strings are impractical to embed inline in HTML or CSS.
Switch to the Base64 to Image tab, paste a full data URL or a raw Base64 string, preview the result, then click Download image to save it as a file.