onlineimagetools logo

Jpeg to base64 converter

World's simplest image tool

Free online JPG to base64 converter. Just drag and drop your JPEG and it will automatically get converted to a base64-encoded image. There are no ads, popups or nonsense, just an awesome JPG to Base64 encoder. Load a JPG – get a base64 string. Created by developers for developers.
sneak preview ssshhhh
We're currently working on the next network site — Online UTF8 Tools — utilities for working with UTF8 encoding. Check it out!
fullscreen fullscreen_exit
Base64 Line Splitting
Split base64 output into lines
Length of each base64 line
Encode as Data URI
Append data: before base64 data.
Jpeg to base64 converter tool What is a jpeg to base64 converter?
This tool base64-encodes JPEG images. For readability, it offers to split base64 output data into individual lines. You can do that by enabling line splitting option. You can configure the length of each line as well by specifying line length in options. As an extra option this tool offers you to represent a base64 JPG as a valid Data URI. Simple and easy!
Jpeg to base64 converter examples Click to use
Base64-encode a JPEG image
In this example we convert a JPG image of a sparkler to base64 encoding. As base64 encoding is entirely ASCII characters (and not binary bytes) it increases the output size by 1/3.
/9j/4AAQSkZJRgABAQEASABIAAD/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAABtbnRyUkdCIFhZWiAHzgACAAkABgAxAABhY3NwTVNGVAAAAABJRUMgc1JHQgAAAAAAAAAAAAAAAQAA9tYAAQAAAA [...]
Required options
These options will be used automatically if you select this example.
Split base64 output into lines
Append data: before base64 data.
Convert a JPG Image to Base64
In this example we encode a JPEG image of reading glasses to base64-encoding and we enable the Data-URI option that makes the base64 output string a valid Data-URL.
data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABQAAD/4QMdaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+ [...]
Required options
These options will be used automatically if you select this example.
Split base64 output into lines
Append data: before base64 data.
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.
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 glitch art.
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.