Kotopig.tools

Image to Base64 Encoder & Decoder

Turn images into Base64 data URIs — or decode them back — instantly and privately in your browser.

🔒 100% private ⚡ No upload 🆓 Free & unlimited

How to image to base64 in 3 steps

  1. 1

    Pick a direction

    Use the toggle to switch between encoding (image → Base64) and decoding (Base64 → image).

  2. 2

    Add your input

    Drop an image to encode, or paste a Base64 string / data URI to decode.

  3. 3

    Copy or preview

    Copy the Base64 as a data URI, CSS or HTML snippet, or preview the decoded image.

  4. 4

    Download

    When decoding, save the recovered image with one click — nothing was uploaded.

Why use Kotopig?

🔒

Your files stay private

Images are processed on your device and never uploaded to any server.

Instant results

No upload or download queue — processing starts the moment you drop a file.

🆓

Free, no sign-up

No account, no watermarks on output, no per-day limits. Just open and use.

Frequently asked questions

Are my images uploaded to a server?

No. Every operation runs entirely inside your browser using your device's own processor. Your files never leave your computer, so the tool works even with the page disconnected from the internet after loading.

What is a Base64 image (data URI)?

Base64 encoding represents binary image data as plain text. Wrapped as a data URI (data:image/png;base64,…), that text can be embedded directly in HTML, CSS or JSON, so the image loads without a separate file request.

When should I use a Base64 image?

It's ideal for small assets like icons, logos or email signatures, where inlining the image saves an HTTP request. Avoid it for large photos — the text is bigger than the file and can't be cached separately.

Does Base64 make the image larger?

Yes, Base64 output is roughly 33% larger than the original binary file. That's the trade-off for embedding it as text; the underlying image quality is unchanged.

How do I decode a Base64 string back into an image?

Switch to the “Base64 → Image” tab, paste your string (with or without the data: prefix), and Kotopig previews the image and lets you download it.

Which image formats are supported?

Any raster or vector image your browser can read — PNG, JPG, WebP, GIF and SVG all encode and decode correctly.