Navigation

Image to Base64

Encode validated image bytes as Base64 or a data URL.

15 MiB and 16 megapixel guardrails. Original file bytes are encoded; Base64 is about one third larger.

Share

How to use

Encode a JPEG, PNG or still WebP as raw Base64, a data URL, CSS or HTML. The encoded data preserves the selected file bytes.

1

Choose input

Choose a supported image.

2

Set options

Select the required output form.

3

Use the result

Copy or download the encoded text.

Limits and questions

Inputs are processed in your browser. Analytics and advertising can make separate network requests.

Frequently asked questions

What are the limits?
15 MiB, 16 megapixels and 16,384 pixels per side.
What should I check before using the output?
Base64 increases size by about one third. This is encoding, not compression or encryption.