Vinegar is a source of acetic acid
Method of preparation of acetic acid
The sugar ferments with yeast to give alcohol, then the alcohol gets oxidized by bacteria to acetic acid
industrial method
Most acetic acid is produced by methanol carbonylation. In this process, methanol and carbon monoxide react to produce acetic acid