SO2 is not an ionic compound but a covalent molecule. This is so as both sulfur and oxygen are non metallic elements hence atoms of both elements need to gain electrons to fill up the valence electron shell to obtain stable electronic configuration. Hence they can only share electrons to do so, thus when atoms share electrons they form covalent bonds instead