Base64 jpg encoder
World's simplest image tool
Free online JPG to base64 encoder. 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 engineers from team Browserling.
We created a cloud browser!
Browserling
Check out our project Browserling – anonymous cloud browser.
A link to this tool, including input, options and all chained tools.
Click here to select an image from your device, press Ctrl+V to use an image from your clipboard, drag and drop a file from desktop, or load an image from any example below.
Release your mouse to import this file.
Your file is being imported...
Can't convert.
What is a base64 jpg encoder?
learn more about this tool
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!
Base64 jpg encoder examples
Click to useBase64-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
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
Split base64 output into lines
Append data: before base64 data.
All image tools
Quickly pixelate an area of an image.
Quickly blur an area of an image.
Quickly sharpen an area of an image.
Quickly rotate any image by arbitrary angle.
Quickly resize any image to any size.
Quickly crop any image.
Quickly convert a color image to a grayscale image.
Quickly make multiple copies of an image.
Quickly flip an image horizontally.
Quickly flip an image vertically.
Quickly add text to any image.
Quickly convert any color in an image to transparent.
Quickly change the visual quality of any image.
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 BMP 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 JPEG image.
Quickly convert a GIF to base64 encoding.
Quickly decode base64 to a GIF.
Quickly view and 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 compression level of a JPG image.
Quickly convert an image to base64 encoding.
Quickly decode base64 to an image.
Quickly convert an image to a Data URL.
Quickly convert a Data URL to an image.
Quickly add a border around an image.
Quickly make corners of any image rounded.
Quickly generate a random image.
Coming soon
These image tools are on the way
Image Editor
Edit images in your browser.
Annotate an Image
Add annotations (text, labels, arrows, boxes) to images.
Replace a Color in Image
Change one color to another in any image.
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 Image from RGB Array
Create an image from an R, G, B array.
Create Image from BGR Array
Create an image from an B, G, R array.
Create Image from RGBA Array
Create an image from an R, G, B, A array.
Create Image from BGRA Array
Create an image from an B, G, R, A array.
Enhance Image Quality
Increase the quality of an image.
Reduce Image Quality
Decrease the quality of an image.
Reduce Number of Colors in an Image
Decrease the number of colors in an image.
Extract Text from Image
Apply OCR on an image and extract all text from it.
Remove Text from Image
Erase text or label from an image.
Remove Object from Image
Erase any object from an image.
Remove Image Background
Make the background of an image transparent.
Add Image Background
Add a background to a transparent image.
Make an Image Semitransparent
Add translucency to the given image.
Censor an Image
Hide information in an image by blurring it or blacking it out.
Generate an Empty Image
Create an empty image of arbitrary size.
Generate a Custom Image
Create a custom image of any color and width/height.
Adjust Image Brightness
Increase or decrease the brightness of an image.
Adjust Image Contrast
Increase or decrease the contrast of an image.
Adjust Image Hue
Increase or decrease the hue of an image.
Adjust Image Saturation
Increase or decrease the saturation of an image.
Adjust Image Lightness
Increase or decrease the lightness of an image.
Split an Image
Split an image into parts.
Slice an Image
Slice a part of an image.
Skew an Image
Skew an image by the given angle.
Shift an Image
Shift an image to the left or to the right.
Swirl an Image
Create a pixel vortex anywhere in an image.
Invert Image Pixels
Invert the color of an image.
Create a Thumbnail
Convert an image to a thumbnail
Add Artefacts to an Image
Add compression artefacts to an image.
Create a Glitch Image
Convert a PNG, GIF, JPG or BMP to glitch art.
Explode an Image
Explode an image into a bunch of tiny pieces.
Run Zalgo on an Image
Let Zalgo destroy an image.
Convert Image Color Space
Change an image color space to HSL, HSV, CMYK, or RGB.
Create a Web-safe Image
Convert the colors in an image to the web-safe color palette.
Convert Image Bits Per Pixel
Change an image bit depth to 32, 24, 16, 8, 4, 2 bits or just 1 bit.
Compress an Image
Make the file size of an image smaller.
Optimize an Image
Optimize the quality of an image.
Create an Image Mosaic
Create a mosaic wall from multiple images.
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.
Generate Unicode Art from an Image
Create a Unicode art image from a regular image.
Generate Braille Art from an Image
Create a Braille art image from a regular image.
Convert an Image to Black/White
Convert all colors in an image to just black and white.
Select a Color in an Image
Use a color picker to select a color in an image.
Add a Label to an Image
Add a short one-line label to an image.
Add a Watermark to an Image
Add copyright protection to an image.
Apply Dithering to an Image
Run a dithering algorithm on an image.
Add Halftone Effect to an Image
Create an image made out of dots of varying size and spacing.
Blockify an Image
Convert an image to a bunch of blocks.
Add Progressive Effect to an Image
Create a GIF from the original image with interlacing effect.
Image Viewer
Open and view images in your browser.
Subscribe!
Never miss an update
Cool!
Notifications
We'll let you know when we add this tool
Cool!