Boiled eggs have a shorter shelf life – they can be stored in the refrigerator for up to a week, while outside the refrigerator they should be used within 12 hours.
If you have any doubts about the quality of the eggs, break them into a separate bowl before using them. If they look or smell suspicious, it’s best to throw them away.
A simple trick to check the freshness of eggs is to soak them in water. The freshest eggs will sink to the bottom of the container, while less fresh ones will float or stand upright in the water.