Hydrofluoric acid (HF) is the only common acid capable of dissolving glass. It reacts with silicon dioxide (SiO₂), the main component of glass, forming silicon tetrafluoride and water. Hydrochloric, nitric, and sulfuric acids do not react with glass.