HTML Entity for Caret (^)

Beginner
5 min read
Updated: Sep 2026
1 example
Unicode U+005E

What Is the Caret Entity?

Caret (^) is the Unicode character at U+005E in the Basic Latin block (official name: CIRCUMFLEX ACCENT). It is the familiar ASCII key used for exponents, regex anchors, XOR in some languages, and shortcut notation.

Remember
Character     ^
Unicode       U+005E
Hex entity    ^
Decimal       ^
Named entity  ^
CSS escape    \5E

All of these produce the same glyph: ^. Prefer typing ^ directly in UTF-8 HTML; use ^ or numeric forms when you want an explicit entity.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Direct character^HTML text (UTF-8)
Named entity^HTML markup
Hex entity^HTML markup
Decimal entity^HTML markup
CSS escape\5EStylesheet content

When to use which

SituationUse
Everyday typingType ^ on the keyboard
Explicit entity in markup^, ^, or ^
Generated text via ::before / ::aftercontent: "\5E"
Proofreading insertion markUse ‸ (U+2038)
Spacing modifier ˆUse ˆ (U+02C6) / ˆ

Live Preview

Caret rendered in common writing contexts.

Inline text Power: x^2
Large glyph ^
Compared ^   ˆ   ‸
Monospace regex: ^start
With entities Named: ^ | Hex: ^ | Decimal: ^

Complete HTML Example

One page that shows Caret with the named entity, hex entity, decimal entity, CSS escape, and a typed character. Use View Output or open the live editor.

Named + Hex + Decimal + CSS + Typed

Five ways to produce ^ in a single document.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Caret (^) in HTML</title>
  <style>
    #point::after {
      content: "\5E";
    }
  </style>
</head>
<body>
  <p>Caret using Named Entity: &Hat;</p>
  <p>Caret using Hex Code: &#x5E;</p>
  <p>Caret using HTML Code: &#94;</p>
  <p id="point">Caret using CSS Entity: </p>
  <p>Typed directly: ^</p>
</body>
</html>
Try It Yourself

How It Works

1. Named: &Hat; is the HTML5 named reference for U+005E → ^.

2. Hex: U+005E → &#x5E; in HTML. Same glyph as the named form.

3. Decimal: same code point as 94 → &#94;. Same result as hex.

4. CSS: use \5E in content (not an HTML entity). #point::after appends that ^ after the paragraph text.

5. Typed ^: fine in UTF-8 pages — no escaping required in normal text. All five lines show the same glyph.

Pitfalls & Tips

Common mistakes when working with Caret entities.

Named

Use &Hat;

The HTML5 name is &Hat; (capital H). Always end with ;.

CSS vs HTML

Do not mix escapes

\5E belongs in CSS. &Hat; / &#x5E; / &#94; belong in HTML.

^ vs ˆ vs ‸

Different characters

^ is U+005E; modifier ˆ is U+02C6; proofreading ‸ is U+2038.

Accents

Not a combining mark

^ does not stack on letters. For â, use combining circumflex (U+0302) or a precomposed letter.

Semicolon

End references

Always finish with ; — write &Hat; and &#94;, not bare forms.

Typing

Entities optional

^ is ASCII — typing it directly is usually simplest and correct.

Browser Support

Caret (U+005E) and its entity forms (&Hat;, &#x5E;, &#94;, CSS \\5E) are supported in all mainstream browsers.

✓ Universal support

Caret (^)

Type ^, or encode with named, hex, decimal, or CSS escape — same glyph 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 All versions
Yes
U+005E / entities Full support

Bottom line: Prefer typing ^ for normal text. Use &Hat; or numeric forms when you want an explicit entity, and \\5E only inside CSS content.

Key Takeaways

  • Unicode: caret is U+005E (decimal 94).
  • HTML: type ^, or use &Hat; / &#x5E; / &#94;.
  • CSS: use \5E inside content for generated text.
  • Watch out: ^ ≠ ˆ ≠ ‸ (ASCII caret ≠ modifier ≠ proofreading caret).

One line: U+005E → type ^ or &Hat; / &#x5E; / &#94; / CSS \5E.

Frequently Asked Questions

Type ^ directly, or use &#x5E; (hex), &#94; (decimal), &Hat; (named), or the CSS escape \5E in the content property. All render ^. UTF-8 files can paste ^ as well.
U+005E (hex 5E, decimal 94). Unicode names it CIRCUMFLEX ACCENT. It belongs to the Basic Latin block.
Yes. &Hat; maps to U+005E. Prefer typing ^ in hand-written HTML; &Hat; or numeric forms are useful when you want an explicit entity.
^ (U+005E) is the common ASCII caret/circumflex. ˆ (U+02C6) is a spacing modifier letter. ‸ (U+2038) is the proofreading caret mark.
HTML entities (&#94;, &#x5E;, or &Hat;) go in markup. The CSS escape \5E is used in stylesheets (usually in the content property of ::before/::after). Both render ^.
Use it for exponents (x^2), regex anchors, bitwise XOR in some languages, and keyboard shortcuts. Use ‸ for proofreading insertion marks, and combining circumflex for accented letters.

Did you know?

Caret is Unicode U+005E (decimal 94) — official name CIRCUMFLEX ACCENT in Basic Latin. HTML’s named reference is &Hat;. It is not modifier letter circumflex (U+02C6 ˆ) or proofreading caret (U+2038 ‸).

Next: Caret Below

Learn the HTML entity for caret below (‸) — the proofreading insertion mark.

Caret Below tutorial →

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