Degree In Coding [ 2026 Edition ]

: Use the command \textdegree (requires the textcomp package) or ^{\circ} in math mode.

: Use the Unicode escape sequence \u00b0 (e.g., print("90\u00b0") ) or the character name \N{DEGREE SIGN} . JavaScript : You can use the Unicode string \u00B0 . degree in coding

: Use the entity ° or the decimal code ° for maximum browser compatibility. : Use the command \textdegree (requires the textcomp

: Use the escaped hex value \00B0 within a content property. General Keyboard Shortcuts Degree Symbol ° or the decimal code &#176

To write or insert a degree symbol (°) in various coding environments and applications, you can use specific keyboard shortcuts, HTML entities, or Unicode escape sequences.