Every GIF file begins with a string of six identifying characters: GIF87a. The last three characters, “87a,” constitute the version number.