Base64 to image
Preview and save an image from its data URL.
Image toolsTurn a local image into an embeddable data URL.
Getting your tool ready…
Encode an image as a data URL that can be used in small HTML or CSS experiments. The tool reads the original file bytes rather than re-compressing the image. A data URL includes both its MIME type and Base64 payload, so copy the whole result when you need an embeddable source.
Choose the image file you want to encode.
Run the tool to encode the file contents as Base64 with an image MIME prefix.
Copy the data URL or save the text output for your project.
No. Base64 usually adds about one third to the byte count, plus the data URL prefix. Use ordinary image files for larger assets.
No. This tool encodes the selected file bytes. It does not resize or re-compress the image.