In any dimension n≥3, we prove an optimal stability estimate for the Möbius group among maps u:Sn−1→Rn, of the form infλ>0,ϕ∈Mo¨b(Sn−1)∫Sn−1λ1∇Tu−∇Tϕn−1dHn−1≤CnEn−1(u). Here, En−1(u) is a conformally invariant deficit which measures simultaneously lack of conformality and the deviation of u(Sn−1) from being a round sphere in an isoperimetric sense. This entails in particular the following qualitative statement: sequences with vanishing deficit, once appropriately normalized by the action of the Möbius group, are compact. Both the qualitative and the quantitative results are new for all dimensions n≥4.