HTML Entity for Not Sign (¬)

Beginner
6 min read
Updated: Sep 2026
1 example
Unicode U+00AC

What Is the Not Sign Entity?

Not sign (¬) is the Latin-1 Supplement character at Unicode U+00AC (NOT SIGN). In logic, ¬P means “not P.” HTML5 provides the named entity ¬.

Remember
Character     ¬
Unicode       U+00AC
Named entity  ¬
Hex entity    ¬  (or ¬)
Decimal       ¬
CSS escape    \00AC

All of these produce the same glyph: ¬. Prefer ¬ for readable HTML; paste ¬ in UTF-8 when convenient.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Named entity¬HTML markup
Hex entity¬HTML markup (also ¬)
Decimal entity¬HTML markup
Direct character¬HTML text (UTF-8 default)
CSS escape\00ACStylesheet content (padded)

When to Use Which

SituationUse
Readable logic in HTML¬
UTF-8 math / logic textType or paste ¬
Numeric entity required¬ or ¬
Generated text via ::before / ::aftercontent: "\00AC"
Programming-style “not”ASCII ! (not this entity)

Live Preview

Not sign rendered in common contexts.

Glyph ¬
Large glyph ¬
In a formula ¬P means NOT P
With entities Named: ¬ | Hex: ¬ | Decimal: ¬
Related symbols ! (ASCII) · ∼ (∼) · ≠ (≠)

Complete HTML Example

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

Named + Hex + Decimal + Direct + CSS

Five ways to produce ¬ in a single document.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Not Sign (¬) in HTML</title>
  <style>
    #point::after {
      content: "\00AC";
    }
  </style>
</head>
<body>
  <p>Using Named Entity: &not;</p>
  <p>Using Hex Code: &#xAC;</p>
  <p>Using Decimal: &#172;</p>
  <p>Using Direct Character: ¬</p>
  <p id="point">Using CSS Entity: </p>
  <p>Example: &not;P means NOT P</p>
</body>
</html>
Try It Yourself

How It Works

1. Named: &not; is the clearest HTML form for U+00AC.

2. Hex: U+00AC → &#xAC; (or &#x00AC;) in HTML.

3. Decimal: same code point as 172 → &#172;. Same glyph.

4. Direct: paste ¬ in a UTF-8 file with <meta charset="UTF-8">.

5. CSS: use padded \00AC in content (not an HTML entity). Padding avoids the next character being read as part of the hex escape.

Pitfalls & Tips

Common mistakes when working with this logic entity.

Not !

ASCII ! is different

In code, logical not is usually !. The typographic not sign is &not; (U+00AC).

Not ~

Tilde is not negation here

ASCII ~ and &sim; have other math uses. For the classic not sign, use &not;.

CSS pad

Prefer \00AC

A short \AC can absorb the next hex digit. Pad to four digits: \00AC.

CSS vs HTML

Do not mix escapes

\00AC belongs in CSS. &not; / &#xAC; / &#172; belong in HTML.

Semicolon

End references

Always finish with ; — write &not;, not &not.

UTF-8

Declare charset

If you paste ¬ directly, serve the page as UTF-8 with <meta charset="UTF-8">.

Browser Support

Not sign (U+00AC) and its entity forms (&not;, &#xAC;, &#172;, CSS \\00AC) are supported in all mainstream browsers.

✓ Universal support

Not Sign (¬)

Prefer &not;, or encode with hex, decimal, or CSS escape — same glyph everywhere.

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+00AC / entities Full support

Bottom line: Prefer &not; in HTML. Use &#xAC; / &#172; when a numeric form is required, and padded \\00AC only inside CSS content.

Key Takeaways

  • Unicode: not sign is U+00AC (decimal 172), Latin-1 Supplement.
  • HTML: prefer &not;, or &#xAC; / &#172;.
  • CSS: use padded \00AC inside content.
  • Meaning: logical negation — not ASCII ! or ~.

One line: U+00AC → &not; / &#xAC; / &#172; / CSS \00AC.

Frequently Asked Questions

Use &not; (named), &#xAC; or &#x00AC; (hex), &#172; (decimal), type ¬ in UTF-8, or the CSS escape \00AC in content. All render ¬.
U+00AC (NOT SIGN). Hex AC / 00AC, decimal 172. It belongs to Latin-1 Supplement and is the classic logical negation symbol.
Yes. HTML5 defines &not;. You can also use &#172; or &#xAC;.
Use it in logic and math notation for negation (e.g. ¬P). Prefer &not; for readable source. In programming languages, logical not is usually written as ! — that is ASCII, not U+00AC.
HTML entities (&not;, &#172;, or &#xAC;) go in markup. The CSS escape \00AC is used in stylesheets (usually in the content property of ::before/::after). Prefer the padded form \00AC so the next digit is not swallowed.
! is ASCII exclamation (programming “not”). ~ is ASCII tilde (or other math uses). ¬ (U+00AC, &not;) is the dedicated not-sign character used in formal logic.

Did you know?

Not sign (¬) is Unicode U+00AC (decimal 172) — NOT SIGN in Latin-1 Supplement. HTML5 provides &not;. In logic, &not;P means “not P.” It is not the same as ASCII ! or tilde ~.

Next: Not Square Image Of Equal To

Learn the HTML entity for the next negated relation in this entity sequence.

Next tutorial →

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

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