Find the Unicode Degree Symbol Code Point
The degree sign is U+00B0 (decimal 176), and it is not part of 7-bit ASCII. Learn how to type it, check it, and tell it apart from lookalike characters.
The short answer
The degree sign is Unicode code point U+00B0, which is 176 in decimal and B0 in hexadecimal. Its official Unicode name is DEGREE SIGN. People often search for an "ASCII character" for the degree symbol, but there isn't one. Standard ASCII covers only code points 0 through 127, and 176 is outside that range. The value 176 comes from Latin-1 (ISO 8859-1) and Windows-1252, which kept ASCII and added characters above 127. Unicode uses the same number for its first 256 code points.
| Representation | Value for the degree sign (°) |
| Unicode code point | U+00B0 |
| Decimal | 176 |
| Hexadecimal | B0 |
| UTF-8 bytes | C2 B0 |
| UTF-16 code unit | 00B0 |
| Latin-1 / Windows-1252 byte | B0 (176) |
| DOS code page 437 byte | F8 (248) |
| HTML named entity | ° |
| HTML numeric references | ° or ° |
Is using the real degree sign right for your text?
In most cases, yes. If the text means degrees of temperature, angle or latitude, U+00B0 stores that meaning directly. It copies as one character, it can be searched for exactly, and it stays the same when moved between programs that use Unicode. The main tradeoff is entry and encoding: it is not on most keyboards, and it is not ASCII, so systems limited to 7-bit ASCII cannot hold it.
Plain-text words are the better choice when the destination accepts only ASCII. Examples include some legacy data formats, certain identifiers and file names, and older protocols. In those cases, writing "deg", "degrees" or "20 deg C" avoids corruption. The same applies when a reader or downstream process must parse the value without any Unicode handling.
What you are actually changing
Inserting a degree sign is a character choice, not a formatting effect. The stored text contains code point U+00B0, and every program that reads it gets that character regardless of font. This is different from visual imitations. One example is a lowercase "o" or a zero placed in superscript with HTML or word-processor formatting. It may look like a degree sign on screen. The stored text is still "o" or "0", though, and the raised position usually disappears when copied as plain text. As a result, "25°" becomes "25o" or "250", and the value is corrupted.
Several separate Unicode characters look similar to the degree sign in many fonts. Swapping one for another changes the stored data even when the visible result looks almost identical:
- U+00B0 DEGREE SIGN (°): the correct character for degrees.
- U+00BA MASCULINE ORDINAL INDICATOR (º): used in Spanish and Portuguese ordinals such as 1º. It often has an underline or sits differently, and some keyboard layouts place it where users expect the degree sign.
- U+02DA RING ABOVE (˚): a spacing diacritic, not a unit symbol.
- U+2218 RING OPERATOR (∘): a mathematical operator, such as for function composition.
- U+2070 SUPERSCRIPT ZERO (⁰): a superscript digit meaning zero.
- U+2103 DEGREE CELSIUS (℃) and U+2109 DEGREE FAHRENHEIT (℉): single-character compatibility symbols that combine the degree sign and the letter.
Unicode treats ℃ and ℉ as compatibility characters. Under compatibility normalization (NFKC or NFKD), they become the degree sign followed by C or F. For ordinary text, the usual recommendation is U+00B0 followed by the letter, such as "20 °C", because it matches what search and normalization processes expect.
How to find or type the code point
To confirm which character you have, paste it into a Unicode inspector or character-lookup tool. Search terms such as "Unicode character inspector" or "identify Unicode character" will find one. A correct result reads U+00B0 DEGREE SIGN. You can also check it in a programming language:
Python: ord("°") -> 176
hex(ord("°")) -> '0xb0'
JavaScript: "°".codePointAt(0) -> 176
"°".codePointAt(0).toString(16) -> "b0"
To produce the character in code or markup, use the code point rather than pasting a glyph that might be a lookalike:
HTML: ° ° °
CSS content: content: "\B0";
JavaScript: "\u00B0" String.fromCodePoint(0xB0)
Python: "\u00b0" chr(176)
JSON: "\u00b0"
Common keyboard methods are listed below. Availability depends on the operating system, keyboard layout and input settings, so test them on your own setup:
- Windows: hold Alt and type 0176 on the numeric keypad. Alt+248 often produces the same symbol too, because it uses the older DOS code page, where the degree sign is byte 248. The Character Map utility lets you search for "degree".
- macOS: Option+Shift+8 on the standard US layout. The Character Viewer (Control+Command+Space) also lets you search by name.
- Linux: in many GTK and IBus applications, press Ctrl+Shift+U, type b0, then press Space or Enter. Support varies by desktop environment and input method.
Will it survive copying and sharing?
Within Unicode-aware software, the degree sign copies and pastes as a single, stable character. Most failures come from encoding mismatches, not from the character itself. A well-known symptom is "°" appearing in place of "°". This happens when the UTF-8 bytes C2 B0 are read as Latin-1 or Windows-1252. The fix is to declare or detect UTF-8 correctly, not to replace the character. A plain "?" or an empty box usually means the text was forced into an encoding without the character, or the font has no glyph for it.
For search and editing, the real degree sign is the safer choice. Lookalikes such as º or ⁰ will not match a search for °. The single-character ℃ and ℉ may or may not match "°C" and "°F", depending on whether the search engine normalizes text. Fake degree signs made with superscript formatting turn back into ordinary letters or digits once formatting is removed.
For accessibility, U+00B0 gives screen readers a character with a defined name, while lookalikes may be announced as "ordinal", "ring" or a superscript digit. How a given screen reader speaks "°", "°C" or "°F" depends on the product, its version, its language settings and its verbosity level. No tested results for specific assistive technologies were available for this article, so check your target screen reader directly. Where exact spoken output matters, such as in medical or safety instructions, writing "degrees Celsius" in words removes the uncertainty.
Bottom line
Use U+00B0 (decimal 176) for degrees, and pair it with C or F as separate characters for temperatures. It keeps meaning, copies cleanly and is searchable. Just remember it is not ASCII. Avoid lookalike characters and superscript formatting tricks. Switch to spelled-out words whenever the destination is restricted to ASCII or when spoken output must be predictable.