HTML Entity for XOR (⊻)

Beginner
5 min read
Updated: Sep 2026
1 example
Unicode U+22BB

What Is XOR?

XOR (⊻) is the Mathematical Operators character at Unicode U+22BB (XOR). It is a vee with a bar below, used in Boolean algebra for exclusive OR.

Remember
Character     ⊻
Unicode       U+22BB
Named entity  ⊻
Hex entity    ⊻
Decimal       ⊻
CSS escape    \22BB
Not the same  ∨ · ⊕ · ^

Prefer ⊻ in HTML markup. Numeric forms and typing ⊻ in UTF-8 also work. Related: logical OR and circled plus.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Named entity⊻HTML markup (preferred)
Hex entity⊻HTML markup
Decimal entity⊻HTML markup
CSS escape\22BBStylesheet content
Direct character⊻UTF-8 HTML text

When to Use Which

SituationUse
Exclusive OR (A ⊻ B)⊻ or type ⊻
Inclusive logical OR (∨)∨ / ∨ (U+2228)
Circled-plus XOR notation (⊕)⊕ (U+2295)
Programming caret XOR^ (U+005E) — different character
Generated text via ::before / ::aftercontent: "\22BB"

Live Preview

XOR in common Boolean-algebra contexts.

Large glyph ⊻
Notation A ⊻ B
Named entity ⊻ → ⊻
Compared ⊻  |  ∨  |  ⊕
With entities Named: ⊻ | Hex: ⊻ | Decimal: ⊻

Complete HTML Example

One page that shows this symbol with named, hex, decimal, and CSS. Use View Output or open the live editor.

Named + Hex + Decimal + CSS

Four ways to produce ⊻, plus a short Boolean sample.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>XOR (⊻)</title>
  <style>
    #point::after {
      content: "\22BB";
    }
  </style>
</head>
<body>
  <p>Using Named Entity: &veebar;</p>
  <p>Using Hex Code: &#x22BB;</p>
  <p>Using HTML Code: &#8891;</p>
  <p id="point">Using CSS Entity: </p>
  <p><code>A &veebar; B</code></p>
</body>
</html>
Try It Yourself

How It Works

1. Named: &veebar; is the clearest HTML form for U+22BB.

2. Hex: U+22BB → &#x22BB; in HTML. Same glyph as the named entity.

3. Decimal: same code point as 8891 → &#8891;. Same glyph as hex and named.

4. CSS: use \22BB in content (not an HTML entity). #point::after appends that ⊻ after the paragraph text.

5. Sample: A &veebar; B shows typical exclusive-OR notation.

Pitfalls & Tips

Common mistakes when working with U+22BB.

vs ∨

XOR ≠ logical OR

&vee; (∨, U+2228) is inclusive OR. &veebar; (⊻) is exclusive OR.

vs ⊕

Not circled plus

Some texts write XOR as ⊕ (&oplus;). That is U+2295 — a different character from U+22BB.

vs ^

Not the caret

Programming languages often use ^ for bitwise XOR. That is ASCII U+005E, not the math symbol ⊻.

CSS vs HTML

Do not mix escapes

\22BB belongs in CSS strings. &veebar; / &#x22BB; / &#8891; belong in HTML.

A11y

Add nearby words

Pair the glyph with label text (for example A &veebar; B or “XOR”) when it stands alone.

Semicolon

End references

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

Browser Support

XOR (U+22BB) and its entity forms (&veebar;, &#x22BB;, &#8891;, CSS \\22BB) are supported in all mainstream browsers. Visible glyphs depend on Mathematical Operators font coverage.

✓ Universal support

XOR (⊻)

Encode with named, hex, decimal, CSS escape, or type the character — same code point everywhere encoding is supported.

100% Browser coverage
Google Chrome Supported
Yes
Microsoft Edge Supported
Yes
Mozilla Firefox Supported
Yes
Apple Safari Supported
Yes
Opera Supported
Yes
Internet Explorer IE 9+
Yes
U+22BB / &veebar; Full support

Bottom line: Prefer &veebar; in HTML. Use \\22BB only inside CSS content. Do not confuse with &vee;, &oplus;, or ASCII ^.

Key Takeaways

  • Unicode: this symbol is U+22BB (decimal 8891) — glyph ⊻.
  • HTML: prefer &veebar; — or use &#x22BB; / &#8891;.
  • CSS: use \22BB inside content for generated text.
  • Watch out: &veebar; ≠ &vee; ≠ &oplus; ≠ ^.

One line: U+22BB → &veebar; / &#x22BB; / &#8891; / CSS \22BB.

Frequently Asked Questions

Use &veebar; (named), &#x22BB; (hex), &#8891; (decimal), type ⊻ directly in UTF-8, or the CSS escape \22BB in content. Prefer &veebar; in normal HTML.
U+22BB (XOR). Hex 22BB, decimal 8891. It belongs to Mathematical Operators (U+2200–U+22FF).
Yes. Use &veebar;. Numeric forms &#8891; and &#x22BB; also work.
No. ⊻ is U+22BB (&veebar;, XOR). ∨ is U+2228 (&vee;, logical OR). ⊕ is U+2295 (&oplus;, circled plus). Related logic symbols, different code points.
Use it in Boolean algebra and logic when you need the exclusive-OR operator written as a vee with a bar — for example A ⊻ B.
HTML entities (&veebar;, &#8891;, or &#x22BB;) go in markup. The CSS escape \22BB goes in stylesheet strings (usually content on ::before/::after).

Did you know?

XOR is Unicode U+22BB (decimal 8891) — official name XOR in Mathematical Operators. HTML5 provides &veebar; (vee with a bar below). Prefer it for readable source. Used in Boolean algebra and logic for exclusive OR. Do not confuse it with logical OR &vee; (∨, U+2228) or circled plus &oplus; (⊕, U+2295), which some texts also use for XOR.

Next: Yen Character

Learn the HTML entity for yen character / kanji (U+5186).

Continue 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