Infinity Unicode: How to Identify the ∞ Symbol by Its Character Code

Find the Unicode code point for the infinity symbol (U+221E), type it, encode it, and verify that a character really is ∞ rather than a lookalike.

The infinity symbol ∞ has one standard Unicode code point: U+221E, named INFINITY. This guide shows how to confirm that a character in your text is that exact code point, how to write it in common formats, and how to tell it apart from lookalike characters, without changing the rest of your content.

What a Unicode inspection does for your text

A Unicode inspection tool or function takes a piece of text and reports, character by character, which code point each symbol is. A code point is the unique number Unicode assigns to a character, written as U+ followed by hexadecimal digits. Many tools also show the official character name and the encoded bytes. Inspection is read-only: it describes the characters but does not change them. That makes it a safe way to check whether an ∞ you copied from a document, web page or spreadsheet is the standard infinity sign or a different character that happens to look similar.

Infinity symbol reference values

Property | Value
Character | ∞
Code point | U+221E
Unicode name | INFINITY
Block | Mathematical Operators
Decimal value | 8734
UTF-8 bytes | E2 88 9E
UTF-16 code unit | 221E
HTML named entity | ∞
HTML decimal reference | ∞
HTML hex reference | ∞
CSS escape | \221E
JSON / JavaScript escape | \u221E

Step by step: identify the infinity sign by its code

  • 1. Isolate the single character you want to check. Copy only that symbol, with no surrounding spaces, so the result is not mixed with invisible characters.
  • 2. Run it through a code point inspector, or use one of the short code snippets below.
  • 3. Compare the result with U+221E (decimal 8734). If it matches, the character is the standard infinity sign.
  • 4. If the inspector reports more than one code point, look at the extra ones. A trailing U+FE0F (variation selector-16) or a space means the copied text contains more than the bare symbol.
  • 5. If the code point is something else, check the lookalike list below to see what you actually have before replacing it.

Checking the code point in code

The snippets below are examples. The expected values in the comments follow from the Unicode assignment for INFINITY; run them in your own environment to confirm.

# Python
import unicodedata

ch = "∞"
print(f"U+{ord(ch):04X}")       # expected: U+221E
print(ord(ch))                   # expected: 8734
print(unicodedata.name(ch))      # expected: INFINITY
print(ch.encode("utf-8").hex(" "))  # expected: e2 88 9e
// JavaScript
const ch = "∞";
console.log("U+" + ch.codePointAt(0).toString(16).toUpperCase()); // expected: U+221E
console.log(ch === "\u221E"); // expected: true
[...ch].length;               // expected: 1

The length check is useful: if a string you believe is a single ∞ reports a length greater than one, it contains additional code points such as a variation selector or whitespace.

Writing the infinity character code in different formats

<!-- HTML: any of these renders ∞ -->
<p>&infin;</p>
<p>&#8734;</p>
<p>&#x221E;</p>

/* CSS */
.loop::before { content: "\221E"; }

// JSON
{"symbol": "\u221E"}

Typing the infinity symbol

  • macOS with the standard US keyboard layout: Option+5.
  • Microsoft Word on Windows: type 221E, then press Alt+X to convert it to ∞ (press Alt+X again to turn it back into the code).
  • Linux with GTK-based input: Ctrl+Shift+U, then 221e, then Space or Enter.
  • Any system: copy ∞ from a character map or Unicode inspector and paste it.

Keyboard shortcuts depend on the operating system, keyboard layout and application, so if one does not work, the copy-and-paste or code-conversion methods are the more reliable fallback.

Lookalikes and related characters

Several characters resemble ∞ but have different code points and meanings. Replacing one with another changes the text, so identify which one you have before editing.

Character | Code point | Name | Note
∞ | U+221E | INFINITY | The standard infinity sign for math and general text
♾ | U+267E | PERMANENT PAPER SIGN | Often shown as the infinity emoji, especially when followed by U+FE0F
⧜ | U+29DC | INCOMPLETE INFINITY | Specialized mathematical symbol
⧝ | U+29DD | TIE OVER INFINITY | Specialized mathematical symbol
⧞ | U+29DE | INFINITY NEGATED WITH VERTICAL BAR | Specialized mathematical symbol
∝ | U+221D | PROPORTIONAL TO | Sits next to infinity in the same block and can look similar in some fonts

If you want the emoji-style infinity, the sequence is U+267E followed by U+FE0F (♾️). If you want the mathematical sign, use U+221E alone. Whether either renders in color or as plain text depends on the font and platform displaying it.

Limits of this guide

The code point, name and encodings above come from the Unicode assignment for INFINITY. No specific inspection tool was evaluated here, so this guide does not compare tools or describe how a particular one displays its results, and the code snippets are illustrative rather than tested output. Font support and keyboard shortcuts vary by system and are not guaranteed.