H.265 is a newer and more advanced codec compared to H.264 capable of compressing video data twice as efficiently as H.264. This means that video files encoded in H.265 format can be half the size of those encoded in H.264 format, while still maintaining the same level of image quality.