Image to Base64 Encoding

Encode images into Base64 strings

Drag & drop or click

Max size: 15MB

Upload an image to display the Base64 string

Features

Supports both files and URLs

Encode both local image files and image URLs on the web

Supports 11 output formats

Output in various formats such as data URLs, img tags, and CSS backgrounds

Toggle data URI format

Switch output between prefixed data URLs and Base64 data only

Copy each format individually

Copy the output format that fits your purpose individually with one click

How to Use

1

Choose the input method via tabs

Pick an image on the File tab, or enter an image URL on the URL tab

2

Convert with the run button

Press the run button to encode the image into a Base64 string

3

Choose an output format to use

Check the data URI format toggle and copy or download the output for your purpose

Use Cases

Speed up embedded images

Embed small images directly into HTML or CSS to reduce the number of loads

Prepare images for email

Embed images directly into HTML email to display them without external references

Set up a favicon

Set a favicon without an external file using the Link tag format output

Pass images via API

Store images in API requests or responses in JSON or XML format

Safety and Privacy

Server-side processing

Processed temporarily on the server and discarded after the result is returned. Only the information needed for the lookup is sent.

Temporary processing only

For image retrieval, temporary processing occurs on the server, then data is discarded after results are returned.

Communications encrypted with HTTPS

All sent and received data is encrypted by TLS and cannot be read by third parties.

No transmission to third parties

Input content is not sent to external services such as ad networks or trackers.

External requests only to fetch

When a URL is specified, the server fetches only the target URL to retrieve the image