∼ is the Unicode character TILDE OPERATOR, code point U+223C (decimal 8764) in the Mathematical Operators block, added in Unicode 1.1. In HTML write ∼, and in UTF-8 it is the 3 bytes E2 88 BC.
Codes
| Where | How to write it |
|---|---|
| Code point | U+223C |
| Decimal | 8764 |
| UTF-8 bytes | E2 88 BC |
| UTF-16 (big-endian) | 223C |
| UTF-32 | 0000223C |
| HTML decimal | ∼ |
| HTML hex | ∼ |
| HTML named | ∼ ∼ ∼ ∼ |
| CSS | \223C |
| JavaScript | \u223C |
| JSON | \u223C |
| Python | \u223C |
| Python by name | \N{TILDE OPERATOR} |
| Java, C# | \u223C |
| Rust, Swift | \u{223C} |
| Go, C, C++ | \u223C |
| URL (percent-encoded) | %E2%88%BC |
JavaScript and JSON strings store text as UTF-16, so this character is one code unit long. Python 3 strings count code points, so its length there is 1.
Properties
| Property | Value |
|---|---|
| Name | TILDE OPERATOR |
| Code point | U+223C (decimal 8764) |
| Block | Mathematical Operators (U+2200–U+22FF) |
| General category | Sm: Math symbol |
| Script | Common |
| Bidirectional class | ON: Other neutral |
| Mirrored in right-to-left text | Yes |
| First in Unicode version | 1.1 |
Nearby in Mathematical Operators
- ∴ U+2234 Therefore
- ∵ U+2235 Because
- ∶ U+2236 Ratio
- ∷ U+2237 Proportion
- ∸ U+2238 Dot Minus
- ∹ U+2239 Excess
- ∺ U+223A Geometric Proportion
- ∻ U+223B Homothetic
- ∽ U+223D Reversed Tilde
- ∾ U+223E Inverted Lazy S
- ∿ U+223F Sine Wave
- ≀ U+2240 Wreath Product
- ≁ U+2241 Not Tilde
- ≂ U+2242 Minus Tilde
- ≃ U+2243 Asymptotically Equal To
- ≄ U+2244 Not Asymptotically Equal To
All 256 characters: Mathematical Operators.
Official reference
Questions people ask
- What is the HTML code for ∼?
- Use the named entity ∼, or ∼ (decimal) or ∼ (hex).
- What is the UTF-8 encoding of U+223C?
- E2 88 BC (hex), 3 bytes. In a URL it is %E2%88%BC.
- How do I write U+223C in JavaScript or Python?
- JavaScript: \u223C. Python: \u223C.
Source
Unicode Character Database 18.0.0 (Unicode License v3); HTML entity names from the WHATWG HTML Standard (CC BY 4.0). The encodings above are computed from the code point and checked against Python's encoders. How the character looks depends on your fonts.
Legal entity
Devansh Yadav
Moradabad, Uttar Pradesh
Governing law: Courts at Moradabad, Uttar Pradesh
Phone: +91 8433475698
Legal: legal@analyzeit.in