How to Type the Tilde Symbol

Copy the tilde and learn its Unicode and HTML values, U.S. keyboard position, dead-key behavior, and verified Word and Mac input methods.

T

Technobezz Editorial

Editorial Team

Aug 24, 2026
7 min read

Copy the tilde or a related mark

Use U+007E ~ for the keyboard tilde and choose a related mark only when its distinct identity is intended.

  • Tilde

    U+007E

    Also called keyboard tilde, squiggly line

  • Small tilde

    U+02DC

    Also called spacing small tilde

  • Combining tilde

    U+0303

    Also called combining accent tilde

  • Tilde operator

    U+223C

    Also called mathematical tilde operator

Choose a copy button to place a character on the clipboard.

Ways to type the tilde

U.S. key placement is layout-specific; Word and Unicode Hex Input methods insert U+007E directly.
PlatformMethod
Windows U.S. layout

Shifted grave-accent key

Shift plus ~
  1. Activate Microsoft's United States keyboard layout.
  2. Hold Shift and press the key shared with the grave accent.
Shift+grave-accent key

Other layouts can place the mark elsewhere or use dead-key behavior.

Microsoft Word

Unicode conversion

Alt plus X
  1. Type 007E where the tilde should appear.
  2. Press Alt and X.
007E, then Alt+X

This inserts standalone U+007E, not combining U+0303.

Windows legacy numeric input

Numeric-keypad decimal value

Alt plus 126
  1. Hold Alt.
  2. Enter 126 on the numeric keypad.
  3. Release Alt.
Alt+126

Legacy Alt behavior is not a universal Unicode method.

macOS with Unicode Hex Input

Four-digit hexadecimal input

Option
  1. Enable and select the Unicode Hex Input source.
  2. Hold Option and type 007E.
  3. Release Option.
Option+007E

Use Keyboard Viewer to inspect an ordinary layout rather than assuming a universal shortcut.

HTML

Direct character or numeric reference

~, ~, or ~

The named reference ˜ produces U+02DC, not U+007E.

U.S. punctuation key mapA simplified U.S. keyboard reference showing punctuation pairs and their shifted characters.U.S. KEYBOARD REFERENCEPunctuation changes with ShiftThe upper label is produced with Shift on the U.S. layout.
U.S. punctuation key mapU.S. punctuation pairs. Check the active software layout when the printed keycaps or output differ.

Contents

Don't Miss the Good Stuff

Get tech news that matters delivered weekly. Join 50,000+ readers.

Copy ~ from the panel above when you need the Basic Latin tilde. On Microsoft's U.S. layout, hold Shift and press the key shared with the grave accent. In Word, type 007E and press Alt-X. Do not use the HTML name ˜ for this character because that name resolves to the separate U+02DC SMALL TILDE.

Identify the tilde character

Unicode names ~ TILDE and assigns it U+007E in Basic Latin. It is a spacing keyboard character. U+0303 COMBINING TILDE is a nonspacing mark intended to combine with a preceding base character, and U+223C TILDE OPERATOR is a mathematical operator.

Unicode also defines ˜ U+02DC SMALL TILDE. These characters can look related, but they have different code points and properties. Use the exact character required by the destination rather than choosing by appearance alone.

Type ~ on a U.S. keyboard

Microsoft's standard U.S. layout places ~ in the shifted position of the key that produces the grave accent when unshifted. Hold Shift and press that key to enter U+007E.

This mapping is layout-specific. Country layouts can put tilde on another modifier layer or treat a related mark as a dead key. If the printed key and output disagree, inspect the active input layout. The backslash guide covers another punctuation key whose location should not be treated as universal.

Understand dead-key behavior

A dead key does not immediately insert a visible character. It waits for the next keystroke so the layout can produce a combined or precomposed result. That is useful for accented letters but confusing when the intended output is the standalone ~.

Do not assume that a waiting mark means the physical key has failed. Confirm the active layout, inspect its modifier states, and use direct copy, Word's Unicode conversion, or Unicode Hex Input when a standalone U+007E is required. For letters that use a tilde, continue with the N with accent guide or the broader accented letters guide.

Type tilde in Microsoft Word

Type 007E where the character should appear and press Alt-X. Microsoft documents this hexadecimal conversion in Word, while Unicode establishes 007E as the value for TILDE.

If a hexadecimal letter or digit immediately before the code becomes part of the conversion, select only 007E and press Alt-X. This inserts the standalone spacing tilde. It does not insert U+0303 COMBINING TILDE or apply an accent to another letter.

Use the scoped Windows legacy value

The documented legacy Windows sequence for ~ is Alt-126 entered on the numeric keypad. The value 126 is the ASCII and Windows-1252 decimal value for U+007E. Microsoft's documentation of Alt input explains that application behavior, code pages, the numeric keypad, and leading-zero form can affect legacy results.

Use Alt+126 only with that scope. It is not a universal Unicode-entry system, and the top number row is not a substitute for the numeric keypad in the documented legacy mechanism. Use Word Alt-X or direct copy when the legacy route behaves differently.

Type tilde on a Mac without guessing a layout shortcut

Apple Keyboard Viewer shows the keys and modifier characters for the active Mac input source. Use it to find what the selected layout actually produces instead of applying a shortcut from another regional layout.

The Unicode Consortium documents a separate Unicode Hex Input method. Enable and select that input source, hold Option, enter 007E, and release Option to insert ~. This instruction requires Unicode Hex Input and does not describe the ordinary Mac layout.

Use tilde in HTML correctly

A UTF-8 HTML document can contain ~ directly. Decimal ~ and hexadecimal ~ also represent U+007E. There is no HTML named reference for U+007E in the WHATWG named-character table.

The named reference ˜ resolves to ˜ U+02DC SMALL TILDE, not ~ U+007E. Changing the font does not make those code points identical. Use a numeric reference when HTML source must represent the Basic Latin tilde without including it directly.

Keep character identity separate from software meaning

Software can assign special meaning to ~ in paths, command languages, search syntax, or programming languages. Those meanings do not alter its Unicode identity. The character remains U+007E even when a program interprets it as an operator or abbreviation.

Follow the syntax rules of the destination program before adding, removing, or escaping a tilde. This page establishes the character and verified input routes, not one universal software meaning.

Fix the wrong tilde or delayed output

  1. 1.Check whether the intended character is ~ U+007E, ˜ U+02DC, combining U+0303, or operator ∼ U+223C.
  2. 2.On the cited U.S. layout, hold Shift with the grave-accent key.
  3. 3.Check the active layout if the mark waits for another letter or appears on a different key.
  4. 4.Use 007E plus Alt-X in Word for the standalone character.
  5. 5.Use Keyboard Viewer before claiming a normal Mac layout shortcut.
  6. 6.Use the numeric keypad for the scoped legacy Alt+126 method.
  7. 7.Replace ˜ with ~ or ~ when HTML must produce U+007E.

Common questions

Does ˜ produce the keyboard tilde?

No. It produces ˜ U+02DC SMALL TILDE. Use ~ directly, ~, or ~ for U+007E.

Why does a tilde key wait for the next letter?

The active layout can treat a mark key as a dead key so it can compose an accented result. Check the active layout or use a verified direct-entry method for standalone ~.

Are ~ and the tilde over ñ the same code point?

No. ~ is U+007E. A decomposed accented letter can use U+0303 COMBINING TILDE, while ñ also exists as the precomposed U+00F1 character.

Official references

Share

Dead-key sequence and standalone accentA diagram showing a dead key followed by a base letter, then contrasting that sequence with a standalone accent mark.ACCENT INPUT MODELDead-key sequence versus a standalone markWHEN YOU NEED THE MARK ITSELF
Dead-key sequence and standalone accentA dead-key composition and a standalone accent are different tasks, and their exact input sequence can vary by layout.

Related symbols

Continue with another copy-and-type reference.

More symbol and keyboard help