Image to Base64

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

Tool Panel

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 Compressor
Image Tools

Image Compressor

Shrink image file size while keeping it visually intact.

Image Tools
Image Crop
Image Tools

Image Crop

Crop a precise pixel region out of an image.

Image Tools
Image Resizer
Image Tools

Image Resizer

Resize an image to exact pixel dimensions.

Image Tools
Image Rotate
Image Tools

Image Rotate

Rotate or mirror an image.

Image Tools
Image Stitch
Image Tools

Image Stitch

Join two images into one, horizontally or vertically.

Image Tools
Image to WebP
Image Tools

Image to WebP

Convert common image formats into smaller WebP files.

Image Tools