DevKits

ASCII 94

Circumflex Accent (^)

Printable ASCII

Caret / circumflex. Bitwise XOR. Regex anchor for the start of a line/string. Exponentiation in some languages.

Common uses & context

The character '^' — Circumflex Accent — has ASCII code 94 (0x5E), octal 0136, binary 01011110. Caret / circumflex. Bitwise XOR. Regex anchor for the start of a line/string. Exponentiation in some languages.

Punctuation and symbol codes carry the most syntactic weight per byte in programming: a single '^' can change how a parser reads an entire expression. When '^' needs to appear as literal data rather than syntax, you often have to escape it — in string literals, in regular expressions, in URLs (where it becomes %5E), or in HTML. Knowing its exact code point (94) helps when you filter, validate, or sanitize input byte by byte.

All encodings at a glance

Decimal94
Hexadecimal0x5E
Octal0136
Binary01011110
HTML numeric entity^
URL encoding%5E
UTF-8 bytes0x5E

Code snippets

JavaScript

String.fromCharCode(94); // "^"
94.toString(16); // "5e"

Python

chr(94)           # '^'
ord(chr(94))      # 94
hex(94)           # '0x5e'

HTML

&#94;   <!-- numeric entity (no named entity for this character) -->

Programming notes

  • Code 94 (0x5E); URL-encoded form%5E.
  • In HTML the numeric entity is &#94;.
  • When used as literal data in regex or strings, '^' usually needs escaping — check the rules for your language.

Frequently asked questions

What character is ASCII code 94?

ASCII code 94 is the character '^' (Circumflex Accent). In hexadecimal it is 0x5E, in octal 0136, and in binary 01011110.

What is 0x5E in ASCII?

Hexadecimal 0x5E equals decimal 94, which is the character '^' (Circumflex Accent). To convert hex to ASCII yourself, read the two hex digits as a base-16 number (0x5E = 94) and look up that code point.

How do I write the character with code 94 in code?

In JavaScript use String.fromCharCode(94); in Python use chr(94); in HTML use the numeric entity &#94;. In a URL it is percent-encoded as %5E, and in UTF-8 it is stored as the byte sequence 0x5E.

Nearby codes

Encode & convert this character