Not Equal in Unicode: How to Identify the ≠ Sign by Code Point

Identify the not equal sign (≠) in Unicode: code point U+2260, how to check it in text, tell it apart from look-alikes and != ligatures, and verify the result.

The not equal sign ≠ is a single Unicode character. Its code point is U+2260, its official name is NOT EQUAL TO, and it belongs to the Mathematical Operators block. To confirm you have the right character, check its code point with a Unicode inspection tool rather than relying on how it looks on screen. Several situations produce text that looks like ≠ but is stored differently.

What a Unicode inspector does with your text

A Unicode inspector, also called a character identifier or code point viewer, takes any text you paste in and breaks it into individual characters. For each one, it typically reports the code point (the character's number, written as U+ followed by hexadecimal digits), the official Unicode name, the block, and often the encoded bytes in UTF-8 or UTF-16. The tool only reads the text and does not change it. That makes it a safe way to see exactly what a symbol is before you search for it, replace it, or compare it in code.

For the not equal sign, the inspector answers one question: is this a single U+2260 character, or something that only resembles it? Exact field names and layouts differ between tools. The input sources for this guide did not include details for any specific product, so the descriptions here cover the general behavior of this kind of tool and do not document any particular one.

Reference values for the not equal sign

Property | Value
Character | ≠
Code point | U+2260
Unicode name | NOT EQUAL TO
Block | Mathematical Operators
Decimal value | 8800
UTF-8 bytes | E2 89 A0
UTF-16 code unit | 2260
HTML named entity | ≠
HTML numeric references | ≠ or ≠
Canonical decomposition | U+003D EQUALS SIGN followed by U+0338 COMBINING LONG SOLIDUS OVERLAY

Step-by-step: identify the character in your text

  • 1. Copy only the symbol you want to check. If it sits in a longer string, copy a short surrounding piece so you can see its neighbors.
  • 2. Paste it into a Unicode inspector, or use one of the code snippets below.
  • 3. Count the characters the tool reports. A true not equal sign is exactly one character.
  • 4. Read the code point. U+2260 with the name NOT EQUAL TO confirms the character.
  • 5. If you see two characters, note which ones they are. The common cases are covered in the next section.
  • 6. If you plan to search or replace, use the code point you confirmed rather than retyping the symbol.

Things that look like ≠ but are not U+2260

Decomposed form. Unicode defines ≠ as canonically equivalent to an equals sign (U+003D) followed by a combining long solidus overlay (U+0338). Some systems store text in decomposed form, known as NFD. In that form, the symbol becomes two code points that render the same way. An inspector shows both characters separately. A plain string comparison treats the two forms as different unless both strings are normalized first.

Programming ligatures. Many coding fonts draw the ASCII sequence != (exclamation mark U+0021 followed by equals sign U+003D) as a single ≠ glyph. The file still contains two ordinary ASCII characters. Only the display changes. If ≠ appears in source code, an inspector will usually show that it is really !=. That distinction matters because programming languages expect the ASCII operator.

Related mathematical symbols. The same block has neighbors that look similar at small sizes. Examples include U+2262 NOT IDENTICAL TO (≢), U+2249 NOT ALMOST EQUAL TO (≉), and U+2247 NEITHER APPROXIMATELY NOR ACTUALLY EQUAL TO (≇). Their names in the inspector tell them apart immediately.

Checking the code point in code

If you prefer not to use a separate tool, a few lines of code give the same information. The examples below are illustrative. The comments show the expected results according to documented library behavior. They have not been run as part of preparing this guide.

# Python example
import unicodedata

s = "≠"
print(len(s))                          # expected: 1
print(f"U+{ord(s):04X}")               # expected: U+2260
print(unicodedata.name(s))             # expected: NOT EQUAL TO
print(unicodedata.decomposition(s))    # expected: 003D 0338
print(s.encode("utf-8").hex(" "))      # expected: e2 89 a0

# Decomposed (NFD) form becomes two code points
d = unicodedata.normalize("NFD", s)
print([f"U+{ord(c):04X}" for c in d]) # expected: ['U+003D', 'U+0338']

# NFC recomposes it into one character
print(unicodedata.normalize("NFC", d) == s)  # expected: True
// JavaScript example
const s = "≠";
console.log([...s].length);                          // expected: 1
console.log(s.codePointAt(0).toString(16));          // expected: 2260
console.log(s === "\u2260");                         // expected: true
console.log(s.normalize("NFD").length);              // expected: 2
console.log("!=" === s);                             // expected: false

Typing the correct character

  • HTML: write ≠, ≠ or ≠
  • LaTeX: use \neq or \ne in math mode
  • macOS with the US keyboard layout: press Option and = together
  • Microsoft Word on Windows: type 2260, then press Alt+X to convert it to ≠
  • String literals in Python, JavaScript, Java and C#: \u2260
  • CSS content property: "\2260"

After you insert the symbol, paste it into an inspector once to verify the result. You should see one character, U+2260, named NOT EQUAL TO.

Avoiding unintended changes

If you compare or deduplicate text that may contain ≠, normalize both sides to the same form first. NFC is the usual choice, and it keeps ≠ as the single character U+2260. If you replace ≠ throughout a document, target U+2260 explicitly and run a second check for the decomposed pair U+003D U+0338. Do not convert != in source code into ≠. The ASCII operator is what the code needs, even when your font displays it as a single symbol.

Evidence note: no product-specific specifications were supplied for this guide. The code point, name, encodings, entities and decomposition above are standard Unicode and HTML values. Keyboard shortcuts can vary with layout and software version, so confirm them on your own setup.