This is a list of O-type stars by their distance from Earth.
The Large Magellanic Cloud (LMC) is around 163 kly distant and the Small Magellanic Cloud (SMC) is around 204 kly distant
The Andromeda Galaxy (M31) is 2.5 Mly distant and the Triangulum Galaxy is around 3.2 Mly distant