No Mess Hard-Boiled Eggs Add a pinch of salt to the water before hard-boiling eggs to prevent the shells from cracking.