Used glass jars and bottles may retain odors from food once stored in them. Even when the jar or bottle held only water, it may be left with a musty smell. If you want to reuse these items, you must get rid of the odor. Cleaning the bottles and jars will help diminish the odor somewhat, but to completely get rid of the smell, you will need to add an ingredient such as vinegar that neutralizes odor.
Allow the glass jars and bottles to come to room temperature if they've been refrigerated or are otherwise hot or cold. Exposing glass jars or bottles to sudden changes in temperature, via cleaning agents or water, may cause the glass to break.
Pour 1 tbsp. of liquid dish soap into each jar and bottle. Fill the jars and bottles with warm water. If the interiors contain stuck-on food, allow them to sit for half an hour.
Brush the interior of the jars and bottles with a bottle brush to remove grime. Rinse the bottles with warm water.
Fill each bottle and jar 1/4 of the way with white vinegar. Cover each with a lid or your hand, and shake them to expose all the interior surfaces with white vinegar.
Allow the vinegar to remain in the jars and bottles overnight. Rinse them with warm water the next morning, and let them air-dry.