HTML Entity for Tilde (∼)

Beginner
5 min read
Updated: Sep 2026
1 example
Unicode U+223C

What Is Tilde?

Tilde (∼) is the Unicode character at U+223C in Mathematical Operators. Official name: TILDE OPERATOR. It is used for similarity, “approximately,” and related math notation.

Remember
Character     ∼
Unicode       U+223C
Named         ∼ · ˜
Hex entity    ∼
Decimal       ∼
CSS escape    \223C
Not the same  ~ (U+007E) · ⁓ (swung dash)

Prefer ∼ (or ˜) in hand-written HTML. You can also type ∼ in UTF-8, or use numeric / CSS forms.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Named entity∼HTML markup (preferred)
Named alias˜HTML markup
Hex entity∼HTML markup
Decimal entity∼HTML markup
CSS escape\223CStylesheet content
Direct character∼HTML text (UTF-8)

When to Use Which

SituationUse
Similarity / tilde operator∼ or ˜
ASCII tilde (paths, code)~ (U+007E) — type directly
Swung dash (punctuation)⁓ / ⁓
Approximately equal≅ / ≅
Generated text via ::before / ::aftercontent: "\223C"
Prefer readability in sourceNamed form over numeric

Live Preview

Tilde operator rendered next to related marks.

Example a ∼ b
Large glyph ∼
Compared ∼   ~   ⁓   ≅
With entities Named: ∼ | Hex: ∼ | Decimal: ∼

Complete HTML Example

One page that shows Tilde with named, hex, decimal, and CSS forms. Use View Output or open the live editor.

Named + Hex + Decimal + CSS

Four ways to produce ∼, plus a short similarity example.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Tilde (∼) in HTML</title>
  <style>
    #point::after {
      content: "\223C";
    }
  </style>
</head>
<body>
  <p>Using Named Entity: &sim;</p>
  <p>Using Hex Code: &#x223C;</p>
  <p>Using HTML Code: &#8764;</p>
  <p id="point">Using CSS Entity: </p>
  <p>Example: a ∼ b</p>
</body>
</html>
Try It Yourself

How It Works

1. Named: &sim; (or &tilde;) is the clearest form in hand-written HTML. The browser turns it into ∼.

2. Hex / decimal: U+223C → &#x223C; or &#8764;. Same glyph as the named form.

3. CSS: use \223C in content (not an HTML entity). #point::after appends that ∼ after the paragraph text.

4. Example: write a ∼ b for a short “similar to” relation.

Pitfalls & Tips

Common mistakes when working with Tilde.

~

Not the ASCII tilde

Keyboard ~ is U+007E. Use it in code and paths. Use U+223C for the mathematical tilde operator.

∼

Named forms

&sim; and &tilde; both produce U+223C. Prefer &sim; when the meaning is “similar to.”

⁓

Not swung dash

Swung dash (U+2053) is a punctuation mark. It is not the same character as the tilde operator.

Fonts

Operator font coverage

Most math-capable fonts cover U+223C. If a UI font substitutes poorly, prefer a font with Mathematical Operators support.

CSS vs HTML

Do not mix escapes

\223C belongs in CSS strings. &sim; / &#x223C; / &#8764; belong in HTML.

Semicolon

End entity references

Always finish with ; — write &sim; or &#8764;, not bare forms without the semicolon.

Browser Support

Tilde (U+223C) and its entity forms (&sim;, &tilde;, &#x223C;, &#8764;, CSS \\223C) are supported in all mainstream browsers.

✓ Universal support

Tilde (&#x223C;)

Encode with named, hex, decimal, CSS escape, or type the character — same code point everywhere encoding is supported.

100% Browser coverage
Google Chrome Supported
Yes
Microsoft Edge Supported
Yes
Mozilla Firefox Supported
Yes
Apple Safari Supported
Yes
Opera Supported
Yes
Internet Explorer All versions
Yes
U+223C / entities Full support

Bottom line: Prefer &sim; or &tilde; in HTML. Use \\223C only inside CSS content.

Key Takeaways

  • Unicode: this mark is U+223C (decimal 8764) — glyph ∼.
  • HTML: prefer &sim; or &tilde;; numeric &#x223C; / &#8764; also work.
  • CSS: use \223C inside content for generated text.
  • Meaning: ∼ = tilde operator — not ASCII ~, not swung dash.

One line: U+223C → &sim; / &tilde; / &#x223C; / CSS \223C.

Frequently Asked Questions

Use &sim; or &tilde; (named), &#x223C; (hex), &#8764; (decimal), type ∼ directly in UTF-8, or the CSS escape \223C in content.
U+223C (TILDE OPERATOR). Hex 223C, decimal 8764. It belongs to Mathematical Operators (U+2200–U+22FF).
Yes. HTML5 defines &sim; and &tilde; (plus aliases such as &thicksim;). Prefer &sim; for “similar to,” or &tilde; when you want the word tilde in source.
Use it for similarity, “approximately,” and mathematical tilde-operator notation. Prefer the ASCII ~ (U+007E) for file paths, URLs, and programming syntax.
HTML entities (&sim;, &#8764;, or &#x223C;) go in markup. The CSS escape \223C goes in stylesheet strings (usually content on ::before/::after).
No. ∼ is the tilde operator (U+223C). ~ is the ASCII tilde (U+007E). ⁓ is swung dash (U+2053). They look similar but are different characters.

Did you know?

Tilde (∼) is Unicode U+223C (decimal 8764) — TILDE OPERATOR in Mathematical Operators. HTML5 provides &sim; and &tilde;. Do not confuse it with the ASCII tilde (~, U+007E) or swung dash (U+2053, ⁓).

Next: Tilde Below

Learn the HTML entity for tilde below (combining mark U+0330).

Continue tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful