DevKits

ASCII 176

Degree Sign (°)

Latin-1 Supplement

Degree sign (°). Used with temperatures (25°C) and angles (90°).

Common uses & context

Decimal 176 (0xB0) is Degree Sign, part of the Latin-1 Supplement (128–255). Degree sign (°). Used with temperatures (25°C) and angles (90°). It renders as '°' and its binary byte is 10110000.

This is where single-byte ASCII ends and encoding matters. In Latin-1 (ISO-8859-1) '°' is the single byte 0xB0. In UTF-8 — today's default for the web — the same character is the multi-byte sequence 0xC2 0xB0. Treating a Latin-1 byte as UTF-8 (or vice versa) is the usual reason accented letters and symbols turn into mojibake like é or €. The Unicode code point is U+00B0, and in HTML you can write it as ° or °.

All encodings at a glance

Decimal176
Hexadecimal0xB0
Octal0260
Binary10110000
HTML numeric entity°
HTML named entity°
URL encoding%B0
UTF-8 bytes0xC2 0xB0

Code snippets

JavaScript

String.fromCharCode(176); // "°"
176.toString(16); // "b0"

Python

chr(176)           # control char °
ord(chr(176))      # 176
hex(176)           # '0xb0'

HTML

&deg;   <!-- named entity -->
&#176;   <!-- numeric entity -->

Programming notes

  • Single byte 0xB0 in Latin-1, but the multi-byte sequence 0xC2 0xB0 in UTF-8 — never assume one byte per character above code 127.
  • Unicode code point U+00B0; HTML entity &deg;.
  • If '°' shows as mojibake, the encoding declared and the encoding used disagree — align both on UTF-8.

Unicode & UTF-8 note

In Unicode this is U+00B0. In UTF-8 it encodes to the byte sequence 0xC2 0xB0. In legacy Latin-1 (ISO-8859-1) it is a single byte 0xB0, which is why Latin-1 files often appear as mojibake when interpreted as UTF-8.

Frequently asked questions

What character is ASCII code 176?

ASCII code 176 is the character '°' (Degree Sign). In hexadecimal it is 0xB0, in octal 0260, and in binary 10110000.

What is 0xB0 in ASCII?

Hexadecimal 0xB0 equals decimal 176, which is the character '°' (Degree Sign). To convert hex to ASCII yourself, read the two hex digits as a base-16 number (0xB0 = 176) and look up that code point.

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

In JavaScript use String.fromCharCode(176); in Python use chr(176); in HTML use the numeric entity &#176; or the named entity &deg;. In a URL it is percent-encoded as %B0, and in UTF-8 it is stored as the byte sequence 0xC2 0xB0.

Is '°' part of standard ASCII?

No. Standard ASCII covers codes 0–127 only. '°' is code 176, part of the Latin-1 Supplement (128–255, sometimes called "extended ASCII"). It is a single byte 0xB0 in Latin-1 but a multi-byte sequence (0xC2 0xB0) in UTF-8.

Nearby codes

Encode & convert this character