The molecular formula of dodecyl dimethyl betaine is C24H50N2O2, and its structure is formed by the substitution of two methyl groups in betaine molecules by dodecyl groups. Dodecyl dimethyl betaine is a nonionic surfactant, and its molecule contains nonpolar alkyl chain and polar amino methyl group, which makes it hydrophilic and hydrophobic at the same time.