An integral basis of a degree-nn number field KK is a of its : elements ω1,,ωn\omega_1,\ldots,\omega_n such that each xOKx\in\mathcal O_K has a unique expression

x=m1ω1++mnωn,miZ.x=m_1\omega_1+\cdots+m_n\omega_n,\qquad m_i\in\mathbb Z.
Existence and distinction

Every number field has an integral basis. Its elements are also a rational basis of KK, but the converse fails even for a rational basis made of algebraic integers.

For example, (1,3)(1,\sqrt{-3}) is a rational basis of Q(3)\mathbb Q(\sqrt{-3}) but is not integral: it misses (1+3)/2(1+\sqrt{-3})/2. The pair (1,(1+3)/2)(1,(1+\sqrt{-3})/2) is an integral basis.

References
  1. J. S. Milne, Algebraic Number Theory, v3.08. Author’s text, §2, Proposition 2.29 and Definition 2.32.