Skip to content
Local

Images

Image to Base64

Turn an image into a Base64 data URL, ready to paste into HTML, CSS or JSON. Or turn a data URL back into an image.

Runs in your browser. Files stay on this device.

Open Image to Base64

Free, no account, no watermark and no daily limit.

Open Image to Base64

How to use Image to Base64

  1. 1Drop an image, or click to choose it.
  2. 2Pick the format you need: data URL, plain Base64, an <img> tag or a CSS background.
  3. 3Copy it. To go the other way, switch to Decode and paste a data URL.

Questions

Why is the text bigger than the file?

Base64 uses 4 characters for every 3 bytes, so the text is about a third larger than the image.

When should I inline an image?

For small icons and logos, usually under 10 KB. Larger images load faster as normal files.

Is my image uploaded?

No. It is encoded in your browser and never leaves your device.

Is it free?

Yes. No account, no watermark and no daily limit.

Esc