Hard boiled eggs with the shell intact stay fresh for around 7 days. If the shell has been removed, they stay fresh for 4 or 5 days.
Hard boiled eggs are eggs that have been gently boiled for approximately 10 minutes so that the egg is entirely cooked. Keeping the shell on the egg until it is ready for consuming helps the egg retain its flavor. Eggs, whether boiled or raw, should always be kept in the refrigerator and used before the expiration date printed on the package. Freezing eggs is not recommended as it causes the food to lose its flavor and texture. Eggs should also be fully cooked in order to prevent Salmonella poisoning.