The short answer
The most common Sanskrit word for infinity is ananta, written अनन्त. It means endless, without limit, or without end.
Other Sanskrit words for the unlimited
Sanskrit has other words for vast or unlimited amounts. Asankhya means countless or innumerable, and aparimita means immeasurable. Which word fits best depends on the context, whether that is a philosophical text, a list of quantities or a description of something very large.
Ananta in Jain number theory
Jain texts sort quantities into countable (sankhyata), innumerable (asankhyata) and infinite (ananta) groups, and each group is divided further. Scholars still debate how closely these categories match the modern idea of infinite sets, so the Jain system should not be read as a simple match for modern mathematics.
Infinity in Vedanta
In some Vedanta writings, ananta describes reality as beginningless, endless and undivided. That is a philosophical use. It describes the nature of ultimate reality rather than a quantity, so it does not map directly onto the mathematical idea of infinity.
Why this word matters
The same word is also a name of Vishnu and of the serpent Shesha. Understanding what infinity means in Sanskrit is a useful first step into the wider story of ananta hinduism, from the serpent beneath Vishnu to the temples dedicated to him.