Your tonsils are filled with nooks and crannies where bacteria and other materials, including dead cells and mucous, can become trapped. When this happens, the debris can become concentrated in white formations that occur in the pockets. Tonsil stones, or tonsilloliths, are formed when this trapped debris hardens, or calcifies.