Kharabeesh
On-device ع

Image to Base64 & Back

Turn an image into a data URL, raw Base64 or ready CSS, HTML and Markdown snippets, or paste Base64 to get the image back and download it. All in your browser.

Free, no sign-up Your data stays on your device Works offline after first open

The tool

Loading the tool…

How to use

  1. In “Image → Base64” choose an image, pick the output format, then copy it or save it as text.
  2. In “Base64 → Image” paste a data URL or Base64 string, preview the image and download it with the right extension.

Privacy & how it works

Processes your data in the browser and stores nothing.

  • Engine: lightweight in-page code, no external libraries.
  • Works offline after you open it once.

Frequently asked questions

Why is Base64 bigger than the image?

Every 3 bytes become 4 characters, so it grows by about a third. Use it for small images such as icons.

How is the type detected?

From the file’s first bytes (its signature), not the name. PNG, JPG, GIF, WebP, BMP, ICO, AVIF and SVG are recognised.

Is the image uploaded?

No. The conversion happens entirely in your browser.

Related tools