Warning Emoji Unicode, HTML and Shortcode Values
For developers and designers, the warning emoji ⚠️ has several standardized technical representations. This reference covers every format you're likely to need.
Unicode code point
The base character is U+26A0 (WARNING SIGN), part of the Miscellaneous Symbols block. Adding the emoji variation selector U+FE0F requests the full-color emoji-style rendering instead of the plain black-and-white text glyph.
HTML entities
In HTML, you can render the warning emoji using the decimal entity ⚠️ or the equivalent hexadecimal entity ⚠️. Both produce the identical character in a browser.
CSS content property
In CSS, the warning emoji can be inserted via a pseudo-element using content: "\26A0";, useful for adding the icon purely through stylesheets without touching markup.
Shortcode
Many chat platforms, including Slack and GitHub, support the shortcode :warning:, which automatically renders as the warning emoji without needing to type or paste the Unicode character directly.
JavaScript escape sequence
In JavaScript strings, the warning emoji can be written as "\u26A0\uFE0F", which is useful when hardcoding emoji into scripts or JSON data without relying on copy-paste.
Choosing the right format
Use the plain Unicode character for chat and social media, HTML entities for raw markup, the CSS content property for icon styling, and the shortcode wherever your platform supports it for readability in source files.