A virtual teacher who reveals to you the great secrets of Base64

Base64 to JPG

Convert Base64 to JPG online using a free decoding tool that allows you to decode Base64 as JPG image and preview it directly in the browser. By and large, the “Base64 to JPG” converter is similar to Base64 to Image, except that it this one forces the MIME type to be “image/jpeg”. If you are looking for the reverse process, check JPG to Base64.


How to convert Base64 to JPG online

  1. Paste your string in the “Base64” field.
  2. Press the “Decode Base64 to JPG” button.
  3. Click on the filename link to download the JPG image.

Important notes about the decoder

The “Base64 to JPG” converter will force the decoding result to be displayed as a JPG image, even if it is a different file type. Therefore, if you are not sure that your Base64 string is JPG image, use the Base64 to file converter since it is capable of displaying various file types. In any case, feel free to give it a try, since this converter will inform you if something is wrong.

About JPG

  • Name: JPEG
  • Developer: Joint Photographic Experts Group
  • MIME types: image/jpeg
  • File Extensions: .jpg, .jpeg, .jpe, .jif, .jfif, .jfi
  • Uniform Type Identifier: public.jpeg
  • Type of Format: Lossy image
Comments (7)

I hope you enjoy this discussion. In any case, I ask you to join it.

  • Prashanth,
    Can I get source code to this decoder please? Thank you!
    • Administrator,
      Hello! This decoder is a bit more complex than it might seem: it uses several classes/functions that were developed only for this specific project. Therefore, it may be much easier for you to develop a new decoder from scratch. If you do not know where to start, please take a look at PHP Base64 Examples.
  • luc,
    Hi, thx for this wonderful page :-) Needed some evidence for the tax people. That was in a very old Thunderbird back-up file, like 20 versions. But it could be extracted with 7-zip and read with Sublime. Scans of submitted documents were saved in Base64 which could be decoded here. Took me a few tries but that WebDev course from some years back helped. Me happy :-)
  • Pooja,
    I wanted to use this image in my emails. How can i do that? Where can i find the code for it?
  • DARSH,
    can i know how to use use some thing like that to decode a http response that have a image data encrypted with base64 utf-8
    i use a requests py lib and i cannot get the response data within this site decrypt the file
    i tried to decrypt the image like a txt file but the image resalt is corrupted, any help :(
  • nqhXncMU,
    -5) OR 511=(SELECT 511 FROM PG_SLEEP(15))--
  • nqhXncMU,
    -1)) OR 424=(SELECT 424 FROM PG_SLEEP(15))--
Add new comment

If you have any questions, remarks, need help, or just like this page, please feel free to let me know by leaving a comment using the form bellow.
I will be happy to read every comment and, if necessary, I will do my best to respond as quickly as possible. Of course, spammers are welcome only as readers.