🖼️

Drop an image here or click to browse — PNG, JPEG, GIF, WebP, SVG.

About the Image to Base64 encoder

Convert any image into a Base64 string so you can embed it directly in HTML, CSS, JSON or Markdown — no separate file request needed. Drop in a PNG, JPEG, GIF, WebP or SVG and Bytewrench produces the raw Base64, a full data URI, and ready-to-paste CSS, <img> and Markdown snippets.

Inlining small images as Base64 removes an HTTP request, which can speed up icons and above-the-fold assets. Everything is encoded locally in your browser.

📋
Multiple output formats

Raw Base64, data URI, CSS background-image, HTML <img> tag and Markdown — copy any of them.

🖼️
Live preview

See the image and confirm it encoded correctly before copying.

📊
Size comparison

Compare the original file size against the larger Base64 output.

🔒
Local & private

Images are read and encoded in your browser and never uploaded.

Frequently asked questions

When should I inline an image as Base64?

Base64 inlining works best for small, frequently-used images like icons — it saves an HTTP request. For large images it inflates the file ~33% and hurts caching, so keep those as normal files.

Which image formats are supported?

Any format the browser can read, including PNG, JPEG, GIF, WebP, SVG and BMP.

Why is the Base64 larger than my image?

Base64 encodes 3 bytes into 4 characters, so the text is roughly 33% bigger than the original binary file.

Is the image uploaded to a server?

No. Encoding happens entirely in your browser.