The LaTeX command for tilde is \tilde{x}.
\tilde{x}Writing a paper? The table generator and the BibTeX cleaner are one click away, no account.
Write \tilde{x} inside math mode, that is between $…$ for inline math or in a \[ … \] or equation block for display math. It is part of core LaTeX math, so no extra package is required.
\tilde{x} is a math accent: it takes an argument and only works in math mode, while text accents such as \'e are separate commands.
Open this example in the live preview: it renders as you type, with no compiler and no signup.
\check{x}\breve{x}\mathring{x}\widehat{xy}\widetilde{xy}\underline{x}\hat{x}\bar{x}\overline{x}\overbrace{x}^{n}\underbrace{x}_{n}\vec{x}\dot{x}\ddot{x}Math accents in LaTeX: the full table or search all 350+ LaTeX symbols.
Use \tilde{x} in math mode; it needs no extra package. For example, $\tilde{x}$.
None: \tilde{x} is built into LaTeX, so no extra package is required.