Foam earplugs, are mainly made from either polyvinyl chloride (PVC) or polyurethane (PU) (memory foam), which are compressed (rolled) and put into the ear canal, where they expand to plug it.
Custom earplugs are made from a mold of the wearer's ear and designed to precisely fit all ear canal shapes. They also provide higher noise isolation.