Format Converters · Free · Browser

Convert an image to Base64 text.

Drop an image and get a Base64 data URL you can copy into HTML, CSS, JSON, or small test fixtures. Everything stays in your browser.

Local processing. Conversion and export happen in this tab; selected files are not sent to imgrove. Privacy details

Result will appear here

How to use Image to Base64

  1. Drop a JPG, PNG, or WebP image and let the browser turn it into a Base64 data URL.
  2. Copy the output as a Data URI, HTML image tag, CSS background, JSON string, or raw Base64.
  3. Download the .txt output when you want to save the full Data URI.

How it works

Formats and limits

InputJPG, PNG, WebP, and other browser-readable image files.
OutputData URI, HTML <img>, CSS background-image, JSON string, raw Base64, and TXT download.
TransparencyPreserved because the original image bytes are encoded, not redrawn.
AnimationPreserved for formats where the original file bytes are encoded as-is.
MetadataPreserved because Base64 wraps the original file bytes.
Batch and browserSingle-file utility; large photos produce very long strings.

Real failure cases

Example result to verify

OriginalA 24x24 PNG icon, 1.2 KB.
TargetCSS background-image copy mode.
OutputA data:image/png;base64 string around 1.6 KB, plus CSS syntax ready to paste.
VerifyPaste the CSS into a local page and confirm the icon renders without a network request.

Best for

What you get

Before you download