onlinejpgtools logo

Jpg to base64 converter

World's simplest jpg tool

A simple browser-based utility that converts JPEGs to base64 encoding. Just paste your JPG in the input area and you will instantly get its base64 in the output area. Fast, free, and without ads. Import a JPEG – get its base64. Created by mad scientists for mad scientists.
love pngs more than jpegs? check out png tools!
We also have Online PNG Tools — utilities for working with PNGs. Check it out!
fullscreen fullscreen_exit
Base64 Formatting
Split base64 string into lines of certain length.
Base64 line length.
Data URL Options
If enabled, preped data url meta info before base64 string.
Jpg to base64 converter tool What is a jpg to base64 converter?
This tool converts JPG photos to base64 encoding. As base64 often is transmitted and stored in text files, you can split base64 output into individual lines for better readability. Also as base64 is closely related to data URLs, you can enable data URL option that will create a base64 data URL of the JPEG image.
Jpg to base64 converter examples Click to use
Convert a JPEG to Base64 Encoding
This example converts a JPG photo of a smiling coffee face into base64 string.
/9j/4AAQSkZJRgABAQEASABIAAD/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAABtbnRyUkdCIFhZWiAHzgACAAkABgAxAABhY3NwTVNGVAAAAABJRUMgc1JHQgAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLUhQICAAAAAAAAAAAAAA [...]
Required options
These options will be used automatically if you select this example.
Split base64 string into lines of certain length.
If enabled, preped data url meta info before base64 string.
Create Baes64 Data URL from a JPG
This example encodes a JPEG file to base64 and also makes it a valid Data URI.
data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAABtbnRyUkdCIFhZWiAHzgACAAkABgAxAABhY3NwTVNGVAAAAABJRUMgc1JHQgAAAAAAAAAAAAAAAAAA9tYAAQAAA [...]
Required options
These options will be used automatically if you select this example.
Split base64 string into lines of certain length.
If enabled, preped data url meta info before base64 string.
All jpg 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 JPG picture to a PNG picture.
Quickly convert a PNG picture to a JPG picture.
Quickly convert a JPG image to a GIF image.
Quickly convert a GIF image to a JPG image.
Quickly convert a JPG file to a BMP file.
Quickly convert a BMP photo to a JPEG photo.
Quickly convert a JPG picture to base64 encoding.
Quickly convert base64 encoding to a viewable JPG picture.
Quickly change quality of a JPEG graphics file.
Quickly crop a region of a JPEG picture.
Quickly resize a JPEG picture to a new size.
Quickly rotate a JPEG image by any angle.
Quickly flip a JPEG photo vertically.
Quickly flip a JPEG photo horizontally.
Quickly convert a JPEG image to a Data URL.
Quickly convert a Data URL to a JPEG graphics file.
Quickly add text to a JPEG image.
Quickly add a border to a JPEG photo.
Quickly round corners of a JPEG image.
Quickly turn a JPEG picture grayscale.
Quickly blur an area of a JPEG photo.
Quickly sharpen an area in a JPEG picture.
Quickly pixelate an area of a JPEG photo.
Quickly generate random JPEG images.
Coming soon These jpg tools are on the way
Compress a JPEG
Reduce the size of JPG graphics files.
JPEG Editor
Edit JPG pictures in your browser.
Convert a Sequential JPG to a Progressive JPG
Convert a baseline JPEG to an interlaced JPEG.
Convert a Progressive JPEG to a Sequential JPEG
Convert an interlaced JPG to a baseline JPG.
Convert JPG to JPEG2000
Convert JPEG photos to JPG 2000 photos.
Convert JPG2000 to JPEG
Convert JPEG 2000 images to JPG images.
Convert JPG to WebP
Convert JPEG photos to WebP photos.
Convert WebP to JPEG
Convert WebP images to JPG images.
Convert JPG to ICO
Convert JPEG images to ICO icons.
Convert ICO to JPEG
Convert ICO icons to JPG images.
Convert JPG to TIFF
Convert JPEG images to TIFF images.
Convert TIFF to JPEG
Convert TIFF images to JPG images.
Convert JPG to PIK
Convert JPEG images to PIK images.
Convert PIK to JPEG
Convert a PIK image to a JPG image.
Convert JPG to PPM
Convert a JPEG image to a PPM image.
Convert PPM to JPEG
Convert a PPM image to a JPG image.
Convert JPG to BGP
Convert a JPEG image to a BGP image.
Convert BGP to JPEG
Convert a BGP image to a JPG image.
Convert JPG to FLIF
Convert a JPEG image to a FLIF image.
Convert FLIF to JPEG
Convert a FLIF image to a JPG image.
Convert JPEGs to Animated GIF
Convert multiple JPGs to a GIF animation.
Convert JPEGs to Animated PNG
Convert multiple JPGs to an APNG.
Create a Glitch JPG
Randomize bytes in a JPEG picture and create a glitched JPEG.
Create ASCII Art from a JPEG
Convert a JPG to an ASCII art image.
Create ANSI Art from JPG
Convert a JPEG to an ANSI art image.