Within that window of time, your eggs will be at their highest quality, meaning the yolk will be high and upstanding, and the white will be tall and firm when you whip them. According to Foodsafety.gov, raw eggs in the shell can be kept in the refrigerator for three to five weeks. Freezing in the shell is not recommended. Instead, crack those eggs, beat them, and then store them in a freezer-safe container. More: 10 smart ways to use up leftover egg yolks.