HTML Entity for Caret (^)

Beginner
⏱️ 5 min read
📚 Updated: Jun 2026
🎯 1 Code Example
Unicode U+005E

What You'll Learn

How to display the Caret (^) in HTML using various entity methods. This character is U+005E (CIRCUMFLEX ACCENT) in the Basic Latin block (ASCII 94), typed on QWERTY keyboards with Shift+6. In computing it is commonly called “caret”—used for exponentiation (x^2), regex start-of-line anchors, and keyboard shortcut notation (Ctrl^).

You can render it with ^, ^, the named entity ^, or \5e in CSS. Do not confuse ^ with U+2038 (‸) (proofreader CARET) or U+2041 (⁁) (Caret Insertion Point, entity ⁁).

⚡ Quick Reference — Caret

Unicode U+005E

Basic Latin (ASCII 94)

Hex Code ^

Hexadecimal reference

HTML Code ^

Decimal reference

Named Entity ^

Most readable option

Reference Table
Name           Value
────────────   ──────────
Unicode        U+005E
Hex code       ^
HTML code      ^
Named entity   ^
CSS code       \5e
1

Complete HTML Example

This example demonstrates the Caret (^) using hexadecimal code, decimal HTML code, the named entity, and a CSS content escape on a pseudo-element:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\5e";
  }
 </style>
</head>
<body>
<p>Caret using Hexa Decimal: &#x5e;</p>
<p>Caret using HTML Code: &#94;</p>
<p>Caret using HTML Entity: &Hat;</p>
<p id="point">Caret using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The Caret entity is universally supported in all modern browsers:

Chrome 1+
Firefox 1+
Safari 1+
Edge 12+
Opera 4+
Android 4.4+
iOS Safari 1+

👀 Live Preview

See the Caret (^) in common computing and notation contexts:

Exponentiation x^2 + y^3 = z^4
Regex anchor ^hello matches start of line
Keyboard shortcut Ctrl^C or Ctrl+^ notation
vs other carets Circumflex: ^ (U+005E)   Caret Below: ‸ (U+2038)   Insertion Point: ⁁ (U+2041)
Entity note &Hat; → ^   &caret; → ⁁ (different character)
Monospace refs &#x5e; &#94; &Hat; \5e

🧠 How It Works

1

Hexadecimal Code

&#x5e; uses the Unicode hexadecimal value 5e to display the circumflex accent / caret character.

HTML markup
2

Decimal HTML Code

&#94; uses the decimal value 94 (ASCII) to display the same character.

HTML markup
3

Named HTML Entity

&Hat; is the semantic named entity for U+005E—the most readable option for the circumflex accent in HTML source.

HTML markup
4

CSS Entity

\5e is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.

CSS stylesheet
=

Same visual result

All four methods produce the Caret / circumflex glyph: ^. Unicode U+005E is Basic Latin (ASCII). Distinct from proofreader marks U+2038 (‸) and U+2041 (⁁).

Use Cases

The Caret (^) commonly appears in:

🔢 Exponentiation

Mathematical notation for powers (e.g. x^2, 10^3).

📝 Regular expressions

Start-of-line anchor in regex patterns (e.g. ^hello).

⌨ Keyboard shortcuts

Documentation for Ctrl^, Ctrl+^, and shortcut notation.

💻 Programming

Bitwise XOR (^) in C/Java/JavaScript; pointer and notation docs.

📚 Coding tutorials

Inline code examples, documentation, and technical guides.

🔤 Linguistics

Circumflex accent for stress, tone, or length in transcription.

♿ Accessibility

Pair with text or aria-label="caret" for screen readers.

💡 Best Practices

Do

  • Use &Hat; for readable source markup of ^ (U+005E)
  • Clarify context: ^ means exponentiation, regex anchor, or XOR depending on topic
  • Escape literal ^ in regex examples when needed: \^
  • Use semantic <code> elements for programming notation
  • Remember Basic Latin U+005E is supported by virtually all fonts

Don’t

  • Use &caret; when you mean ^ (it renders ⁁, U+2041)
  • Confuse ^ with proofreader marks ‸ or ⁁
  • Put CSS escape \5e inside HTML text nodes
  • Assume ^ always means XOR in every programming language
  • Mix entity styles randomly in one file

Key Takeaways

1

Three HTML references all render ^

&#x5e; &#94; &Hat;
2

For CSS stylesheets, use the escape in the content property

\5e
3

U+005E CIRCUMFLEX ACCENT — Basic Latin (ASCII 94)

4

Computing “caret” for math, regex, and shortcuts

5

&Hat;&caret; (⁁ is a different symbol)

❓ Frequently Asked Questions

Use &#x5e; (hex), &#94; (decimal), &Hat; (named), or \5e in CSS content. All produce ^.
U+005E (CIRCUMFLEX ACCENT). Basic Latin block (ASCII 94). Hex 5e, decimal 94. Commonly called “caret” in computing.
For exponentiation, regular expressions, keyboard shortcuts, programming notation, coding tutorials, and linguistic circumflex transcription.
HTML entities (&#94;, &#x5e;, or &Hat;) go directly in markup. The CSS escape \5e is used in stylesheets, typically in the content property of pseudo-elements. Same visual result, different layers of the stack.
Yes. &Hat; is the named HTML entity for ^ (U+005E). Do not confuse with &caret;, which renders ⁁ (U+2041 Caret Insertion Point).

Explore More HTML Entities!

Discover 1500+ HTML character references — currency symbols, arrows, math operators, emojis, and more.

All HTML Entities →

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