Image to Base64
Free

Processed in your browser. Your file is not uploaded.

Base64

Your Base64 string will appear here

Pick an image and copy it as a data URL you can paste straight into CSS or HTML.

Free Image to Base64 Converter

Encode an image as Base64 locally in your browser and copy the resulting data URL.

How it works

A picture as a string

For CSS, HTML, JSON payloads and quick tests.

  1. 1

    Pick an image

    The file is read locally with the File API.

  2. 2

    Choose the shape

    A data URL is ready to paste into src or CSS; plain Base64 is the raw string without the prefix.

  3. 3

    Copy or save

    Copy the result in one click or download it as a .txt file.

Keep going

More free browser tools on Nano Banana Lab.

FAQ

Base64 stores three bytes as four characters, so the string is about a third larger than the binary file.

For small icons and placeholders that should not cost an extra request, and for APIs that accept images as text.

The tool accepts files up to 50 MB, but very large images produce strings that are painful to handle — keep it to small graphics.

No. The encoding happens in your browser.

Encode your first image

Get a data URL you can paste anywhere.

Encode an image