Image to Base64

Convert an image to a Base64 string, or back again.

Tool Panel

Processed locally
Loading tool...
About Image to Base64

Turns an image into a Data URI or raw Base64 and back again — the usual route for inlining small icons.

  • 1

    Both directions: image → Base64 (as a full `data:` URI or the bare string) and Base64 → image (restores a preview and reports format, dimensions and size).

  • 2

    It shows the original file size next to the Base64 size: three bytes become four characters, so the result is **about 33% larger**. The `b64Size` figure includes the `data:...;base64,` prefix.

  • 3

    The decode side validates first (optional `data:` prefix, characters limited to the standard `A–Z a–z 0–9 + /` alphabet with up to two `=` of padding) and fails loudly instead of producing a broken image.

Related tools

View all
Image Tools

Image Compressor

Shrink image file size while keeping it visually intact.

Image Tools
Image Tools

Image Crop

Crop an image freely or to a fixed aspect ratio.

Image Tools
Image Tools

Image Resizer

Resize an image to exact pixel dimensions.

Image Tools
Image Tools

Image Rotate

Rotate or mirror an image.

Image Tools
Image Tools

Image Stitch

Stitch several images into one, horizontally or vertically.

Image Tools
Image Tools

Image to WebP

Convert common image formats into smaller WebP files.

Image Tools
Image Tools

Image Watermark

Stamp a text or image watermark onto a photo.

Image Tools
Image Tools

Image Filter

Apply greyscale, blur and other filters to an image.

Image Tools