Base-16 literal
0xfe
- Base 16
- 8 bits
- = 254
0xfe is a hexadecimal literal equal to 254 in decimal. It needs 8 bits (1 bytes) of storage, and is 0xFE in hexadecimal and 11111110 in binary.
In every base
Decimal254
Binary11111110
Octal376
HexadecimalFE
Base 327U
Base 3672
Prefixed literals0xfe · 0o376 · 0b11111110
Bit width & storage
Significant bits8
Bytes needed1
Fits in 8 bitsYes
Fits in 16 bitsYes
Fits in 32 bitsYes
Fits in 64 bitsYes
Padded to 8 bits11111110
Padded to 32 bits00000000000000000000000011111110
Read another way
Bitwise operations
NOT (32-bit)4,294,967,041
Shift left by 1508
Shift right by 1127
Population count7the number of set bits
Lowest set bit2
Keep nerding
Every link below is a page Nerdulator can generate from what it already knows about this value.
The same value
Also reads as
U+00FE (unicode character)
- U+00FE
- þ
- Lowercase letter
U+00FE is code point 254 (þ), a lowercase letter in the Latin-1 Supplement block of the Basic Multilingual Plane. It takes 2 bytes in UTF-8 and 1 unit in UTF-16.
Identity
Code pointU+00FE
Decimal254
Characterþ
General categoryLowercase letter
BlockLatin-1 Supplement
PlaneBasic Multilingual Planeplane 0
Official nameNot includedthe Unicode Character Database is not bundled; a stale copy would be worse than none
Encodings
UTF-8C3 BE2 bytes
UTF-1600FEa single unit
UTF-32000000FE
Binary11111110
Bytes in UTF-8 vs UTF-162 vs 2UTF-16 is not always smaller, even for non-Latin text
Writing it in code
HTML numeric entityþ
HTML hex entityþ
CSS escape\00FE
JavaScript\u00FE
Python\u00FE
Percent-encoded (URL)%C3%BE
Things that catch people out
JavaScript string length1
Needs a surrogate pairNo
Safe in a URL unescapedNo
Keep nerding
Every link below is a page Nerdulator can generate from what it already knows about this value.
Nerdulate something else
Nothing in mind? Surprise me · today’s page