O represents one atom of oxygen element. It is the smallest individual particle of oxygen element and cannot stand on its own.
O2 represents one molecule of oxygen element formed from two atoms of oxygen. It is the smallest part of elemental oxygen that can stand on its own.