onlineimagetools logo

Image to base64 converter

World's simplest image tool

Free online image to base64 converter. Just drag and drop your image and it will automatically get converted to base64 format. There are no ads, popups or nonsense, just an awesome image to base64 encoder. Load image, get base64. Created by developers for developers.
announcement heads up!
We just launched a new site — Online MATH Tools — utilities for doing mathy things. Check it out!
fullscreen fullscreen_exit
Encoded Line Length
Enable base64 line chunks
How many characters per line
Data URI Format
Make base64 output data URI compatible
Image to base64 converter tool What is a image to base64 converter?
This tool converts images to base64 format and allows you to set base64 output line length (also known as chunk size). You can also turn the base64 output into a data:image URL. Simple and easy!
Image to base64 converter examples Click to use
Convert an Image to Base64
This example base64-encodes a JPG image. Keep in mind that base64 representation of this image is much larger in size than the real image file.
/9j/4AAQSkZJRgABAQEASABIAAD/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAABtbnRyUkdCIFhZWiAHzgACAAkABgAxAABhY3NwTVNGVAAAAABJRUMgc1JHQgAAAAAAAAAAAAAAAAAA9tYAAQAAAA [...]
Required options
These options will be used automatically if you select this example.
Enable base64 line chunks
Make base64 output data URI compatible
Convert an Image to Base64 and Split Each Line
This example base64-encodes a JPEG image and enables base64-chunks with line size of 24 characters. It also turns the base64 output into a valid image data URL.
data:image/jpeg;base64,/ 9j/4AAQSkZJRgABAQEASABIA AD/4gxYSUNDX1BST0ZJTEUAA QEAAAxITGlubwIQAABtbnRyU kdCIFhZWiAHzgACAAkABgAxA ABhY3NwTVNGVAAAAABJRUMgc 1JHQgAAAAAAAAAAAAAAAAAA9 tYAAQAAAADTLUhQICAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAA [...]
Required options
These options will be used automatically if you select this example.
Enable base64 line chunks
How many characters per line
Make base64 output data URI compatible
All image tools
Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
Quickly convert a PNG image to a JPEG image.
Quickly convert a JPEG image to a PNG image.
Quickly convert a PNG image to a GIF image.
Quickly convert a GIF image to a PNG image.
Quickly convert a PNG image to a BMP image.
Quickly convert a bitmap image to a PNG image.
Quickly base64-encode a PNG image.
Quickly decode a base64-encoded PNG image.
Quickly convert a BMP image to a GIF image.
Quickly convert a GIF image to a BMP image.
Quickly convert a JPEG image to a bitmap image.
Quickly convert a bitmap image to a JPEG image.
Quickly convert a bitmap image to base64 encoding.
Quickly base64-decode a bitmap image.
Quickly convert a JPEG image to a single-frame GIF image.
Quickly convert an animated GIF to a JPG image.
Quickly convert a GIF to base64 encoding.
Quickly decode base64 to a GIF.
Quickly extract frames from GIF animations.
Quickly play a GIF animation frame by frame.
Quickly base64-encode a JPEG image.
Quickly decode a base64-encoded JPEG image.
Quickly change the quality of a JPEG image.
Quickly convert an image to base64 encoding.
Quickly decode base64 to an image.
Quickly crop any image.
Quickly resize any image to any size.
Quickly rotate any image by arbitrary angle.
Quickly make multiple copies of an image.
Quickly flip an image horizontally.
Quickly flip an image vertically.
Quickly add text to any image.
Quickly add a border around an image.
Quickly make the corners of any image rounded.
Quickly convert a color image to a grayscale image.
Quickly blur an area of an image.
Quickly sharpen an area of an image.
Quickly pixelate an area of an image.
Quickly generate a random image.
Quickly convert an image to a Data URL.
Quickly convert a Data URL to an image.
Coming soon These image tools are on the way
Image Editor
Edit images in your browser.
Convert PNG to ICO
Convert a PNG image to an ICO icon.
Convert ICO to PNG
Convert an ICO icon to a PNG image.
Convert PNG to TIFF
Convert a PNG image to a TIFF image.
Convert TIFF to PNG
Convert a TIFF image to a PNG image.
Convert JPG to ICO
Convert a JPEG image to an ICO icon.
Convert ICO to JPG
Convert an ICO icon to a JPEG image.
Convert JPG to TIFF
Convert a JPEG image to a TIFF image.
Convert TIFF to JPG
Convert a TIFF image to a JPEG image.
Convert GIF to ICO
Convert a GIF image to an ICO icon.
Convert ICO to GIF
Convert an ICO icon to a GIF image.
Convert GIF to TIFF
Convert a GIF image to a TIFF image.
Convert TIFF to GIF
Convert a TIFF image to a GIF image.
Convert GIF to Animated PNG
Convert a GIF image to an APNG icon.
Convert Animated PNG to GIF
Convert an APNG image to a PNG image.
Convert BMP to ICO
Convert a bitmap image to an ICO icon.
Convert ICO to BMP
Convert an ICO icon to a bitmap image.
Convert BMP to TIFF
Convert a bitmap image to a TIFF image.
Convert TIFF to BMP
Convert a TIFF image to a bitmap image.
Convert Webp to ICO
Convert a Webp image to an ICO icon.
Convert ICO to Webp
Convert an ICO icon to a Webp image.
Convert Webp to TIFF
Convert a Webp image to a TIFF image.
Convert TIFF to Webp
Convert a TIFF image to a Webp image.
GIF Player
Play GIFs frame by frame.
Create an Animated GIF
Create an animated GIF image from static frames.
Create a Thumbnail
Convert an image to a thumbnail
Create a Glitch Image
Convert a PNG, GIF, JPG or BMP to a glitched image.
Convert PNG Color Space
Convert a 24-bit PNG to an 8-bit PNG and around.
Generate ASCII Art from an Image
Create an ASCII art image from a regular image.
Generate ANSI Art from an Image
Create an ANSI art image from a regular image.