Remember that the boiling process can create hairline fractures in the egg shell, which exposes the egg inside to outside air and bacteria. This means a hard boiled egg will not stay fresh as long as a raw egg. Hard boiled eggs will stay fresh for about 1 week in the fridge and must be refrigerated within 2 hours of cooking.