How size of hex file is calculated?

my program size is 14kb (pgm.uvproj) and size of hex file is 25kb.
now my question is how these sizes are calulated?

Thanks in advance

More questions in this forum