How are bubbles formed when heating water?
Saying that the liquid is converted to bubbles is not correct. The liquid simply becomes a gas (so inside the bubble there is the gas phase of your liquid) this is a phase transition and depends on the pressure and temperature of the portion of liquid close to the bottom of your container.

The points where the bubbles appear depends on the local variations of temperature and pressure.