JPEG to HEX

Description:

Python Code to convert a JPEG file (note labeled in code as JPG, both file types are the same) to a Hex output as a text file. This was initially made to quickly look for file markers for a JPEG using a text editor; however, I recommend using hexed.it or Hexdump on a Linux machine. This code should work for any file type since the code just reads in the data as a binary.

Hexed.it

The wonderful thing about this web application is that it runs on the client side, works well with little RAM, and has been tested with files up to 150 GiB. The application allows for files HEX values and ASCII values to be seen, and even provide tools for file format identification, histogram, and a file hash generator.Â