What is Base64?
Base64 is a way to represent binary data as text using a set of 64 characters. It lets image data travel in text-based formats such as HTML, CSS, and JSON.
A simple tool for developers
Convert images to Base64 or convert Base64 image data back into downloadable images directly in your browser.
Choose an image or drop it below. Nothing leaves your device.
Paste a Data URI or raw Base64 string to preview and download it.
The essentials
Move image data between a file and the formats commonly used in web development.
Base64 is a way to represent binary data as text using a set of 64 characters. It lets image data travel in text-based formats such as HTML, CSS, and JSON.
Your browser reads the selected image and encodes its bytes as Base64. For decoding, the tool turns valid Base64 data back into image bytes and previews them.
Embedding a small image can reduce separate requests, but it increases text size and can’t be cached independently. For larger images, a regular image file is often more efficient.
Quick guide