Convert a PNG to Base64

The file bytes, exactly as they are, wrapped as a data URL. Paste it into HTML, CSS, JSON or an email template and the image travels with the code.

PNG

drop it. goon.

drop your images here, or paste them. you know you want to.

stays in your browser. nothing leaves. nothing is watching.

how to convert a PNG to Base64

  1. 1Drop your images.
  2. 2Choose the wrapper.
  3. 3press goon and download the text files.

questions

Is Base64 bigger than the file?
By about a third. Fine for icons and small graphics; for photos, link the file instead.
Is anything uploaded?
No. The whole tool runs in your browser tab. Files never leave your device.
Is it really private?
Yes. The tool is code that runs in your browser tab. Your PNGs are never sent to a server. Open the network tab and check. Nobody is watching. Goon in peace.

When inlining makes sense

Small icons, logos in email templates, single-file HTML reports and CSS backgrounds that must not make an extra request. Base64 is about a third larger than the file and cannot be cached separately, so photos and anything above a few dozen kilobytes are better linked.

more PNG tools. you know you want to.

all PNG tools →