Using geometric inversion with respect to the origin we extend the definition of box dimension to the case of unbounded subsets of Euclidean spaces. Alternative but equivalent definition is provided using stereographic projection on the Riemann sphere. We study its basic properties, and apply it to the study of the Hopf-Takens bifurcation at infinity.