On Windows: press and hold Alt, then type 126 on the numeric keypad
On Mac: press Option + N, then press Space
On Linux: press Compose, then ~, or use the keyboard shortcut for your layout
On a US keyboard: press Shift + backtick (`) if your layout maps tilde there
On mobile: long-press the `n` or `~` key on the on-screen keyboard and select tilde
