Dot Symbol

U+2260

Not Equal Sign ≠ Copy and Paste

Copy ≠ for documents and equations. Use the matching operator below when the comparison needs to run in a spreadsheet, SQL query, or program.

Inequality and related symbols · click to copy

Plain-text inequality

7 ≠ 9

Excel formula

=A1<>B1

SQL condition

WHERE status <> 'closed'

Python comparison

left != right

JavaScript strict comparison

left !== right

LaTeX inequality

a \neq b

Meaning and use

≠ is U+2260 NOT EQUAL TO. It says the values on its two sides differ.

The mark is useful in written math. For formulas that run, the correct operator depends on the language or application.

Pick the right inequality mark

≠ means not equal. ≢ means not identical or not equivalent in the notation you are using. ≆ means approximately but not actually equal.

Mathematical symbols

Operators typed in code

How to type ≠

Windows

Copy ≠ or find it in Character Map under Not Equal To.

macOS

On the U.S. keyboard, press Option+=, or search for not equal in Character Viewer.

iPhone and Android

Copy ≠ here for text. Type <> or != if the app needs a formula or source code.

Microsoft Word

For regular text in Word for Windows, type 2260 and press Alt+X. In an equation using LaTeX, type \neq.

Keyboard shortcuts and alt codes for every dot symbol →

Inequality in formulas and code

Excel

Use <> in a formula for not equal. A displayed ≠ is text.

SQL

Use <> for ordinary comparisons. To check for a missing value, use IS NOT NULL. PostgreSQL can compare values including NULL with IS DISTINCT FROM.

Python

Use != to compare values. Use is not when you specifically mean object identity.

JavaScript

Use !== for strict inequality. The != operator may convert the operand types before comparing.

Examples

4 + 3 ≠ 9

=A1<>B1

WHERE status <> 'closed'

left !== right

Similar characters compared

≠ compares for inequality. ≢ has three bars and negates identity or equivalence in context. ≆ indicates approximate agreement without exact equality.

Frequently asked questions

What is the HTML code for ≠?

Use &ne; or &#8800;. To show literal <> in HTML text, encode it as &lt;&gt;.

Which sign means “does not equal”?

Use ≠ in a document. Choose <> for Excel and standard SQL, != for Python, or !== for a strict comparison in JavaScript.