On many keyboards it is primarily available through a dead key that makes it possible to produce a variety of precomposed characters with the diacritic.
In that case, a single tilde can typically be inserted with the dead key followed by the space bar, or alternatively by striking the dead key twice in a row.