Identify the US Flag Unicode Sequence
The US flag emoji is two Unicode characters, not one. See its code points and encodings, why reversing text breaks it, and when plain text is the safer choice.
The short answer
There is no single "American flag" character in Unicode. The US flag emoji 🇺🇸 is a sequence of two regional indicator symbols: U+1F1FA REGIONAL INDICATOR SYMBOL LETTER U, followed by U+1F1F8 REGIONAL INDICATOR SYMBOL LETTER S. Software that supports emoji flags draws the pair as one flag. Software that does not support them shows two separate letter symbols. Neither case changes the stored text. Only the display differs.
| Representation | Value |
| Code points | U+1F1FA U+1F1F8 |
| Character names | REGIONAL INDICATOR SYMBOL LETTER U; REGIONAL INDICATOR SYMBOL LETTER S |
| UTF-8 bytes | F0 9F 87 BA F0 9F 87 B8 |
| UTF-16 code units | D83C DDFA D83C DDF8 |
| HTML numeric references | 🇺🇸 |
| User-perceived characters | 1 (a single grapheme cluster) |
# Python
us_flag = "\U0001F1FA\U0001F1F8"
len(us_flag) # 2 code points
// JavaScript
const usFlag = "\u{1F1FA}\u{1F1F8}";
usFlag.length; // 4 UTF-16 code units
[...usFlag].length; // 2 code points
<!-- HTML -->
🇺🇸
Is the flag sequence right for your use?
Use the two-character sequence when you want a recognizable visual flag in places where emoji are routinely displayed, such as messages, social posts and casual headings. Its main benefit is compactness. One visible symbol conveys "United States" without any words. The main tradeoff is that the meaning depends on the reader's software. Where flag rendering is missing, readers see two letter symbols. Screen readers may announce the flag by name, by its letters, or not at all, depending on the platform.
Plain text such as "US", "United States" or "US flag" is the better choice in these situations:
- The meaning must survive in any environment, such as legal text, form labels or navigation.
- The text goes into file names, database keys, identifiers or systems that may only accept ASCII.
- Accessibility matters and you cannot confirm how assistive technology announces the sequence.
- The content needs to be searchable or sortable by country name.
- The destination has strict character limits that may count the flag as two or four units.
A practical middle ground is to put the flag next to the words, as in "🇺🇸 United States". This keeps the visual cue and leaves readable text if the flag fails to render.
What the sequence actually changes
The stored text contains two characters from the Enclosed Alphanumeric Supplement block. These are not the ordinary letters U and S, so a search for "US" will not match them, and converting the text to uppercase or lowercase has no effect on them. The flag image is created by a rendering rule. When two regional indicators appear in a row, a supporting font may display them as the flag of the matching two-letter region code. No color or shape is stored in the text.
Pairing is positional. Software reads regional indicators in pairs from the start of a run. If an extra indicator is added or one is removed, every pair after that point can shift and combine into a different code. In a run of flags, those different codes may display as letters or as unintended flags.
The word "mirror" can mean two different things for a flag. Visual mirroring, for example a CSS transform such as scaleX(-1), flips the rendered image so the canton appears on the right. The underlying characters are unchanged, and copied text still pastes as an unmirrored flag. Unicode does not provide a mirrored-flag character. "Fancy font" generators that substitute styled letters, such as mathematical bold or script, cannot produce a flag. Regional indicators are a separate mechanism.
Reversing text is where the sequence fails most often. If a tool reverses by code point, U then S becomes S then U. That pair does not form the US flag and is not a current region code used for emoji flags, so expect two separate letter symbols. If a tool reverses by UTF-16 code unit, it splits the surrogate pairs and produces invalid text, often displayed as replacement characters. Only a reversal that treats each grapheme cluster as one unit keeps the flag intact.
# Python: naive reversal breaks the flag
s = "\U0001F1FA\U0001F1F8"
s[::-1] # '\U0001F1F8\U0001F1FA' -> S, U: no longer the US flag
// JavaScript: grapheme-aware reversal keeps it
const seg = new Intl.Segmenter(undefined, { granularity: "grapheme" });
[...seg.segment("A🇺🇸B")].map(x => x.segment).reverse().join("");
// "B🇺🇸A"
Will it stay readable after copying or sharing?
Copying usually keeps both code points, because most text selection treats the flag as one grapheme cluster. Problems tend to come from editing. In some editors, one Backspace removes only one of the two indicators. That leaves a stray letter symbol that can pair with a neighboring indicator. Truncating text to a fixed length can split the pair in the same way, so any code that truncates should cut on grapheme boundaries.
Length and counting differ by measure. The flag is one visible character, two code points, four UTF-16 code units and eight UTF-8 bytes. Character counters, database column limits and platform post limits may use any of these measures. Check which one the destination uses instead of assuming that the flag counts as one.
Rendering support is not universal. Windows' built-in emoji font has often been reported to show country flags as two letters instead of a flag. Behavior can also differ between apps on the same system, because some apps bundle their own emoji fonts. This article includes no test results for specific platforms, apps or versions, so test the destinations you care about. One correct rendering does not show that the flag will render correctly elsewhere.
Unicode's Common Locale Data Repository provides the short name "flag: United States" for this sequence, and many systems use it for spoken output. Whether a specific screen reader announces that name, reads the two letters, or skips the flag is not documented in the material behind this article. If the flag carries meaning, include the words as well.
Search behavior is also unverified here. Some search systems may normalize or index emoji and others may ignore them. Do not rely on the flag alone to make content findable under "United States" or "USA".
How to identify the sequence in your own text
Some clues help you tell the US flag from lookalikes. It always contains exactly two code points, and both fall in the range U+1F1E6 to U+1F1FF. A lone U or S symbol in a box, or plain "US" letters that cannot be found with a normal text search, usually means one indicator is missing or the font has no flag. A flag that renders as an image but contains no regional indicators is probably an inline image or a custom emoji, not Unicode text.
- In Python, unicodedata.name() applied to each character returns the official character names.
- In JavaScript, [...text].map(c => c.codePointAt(0).toString(16)) lists the code points in hexadecimal.
- A Unicode code point inspector or character analyzer shows each code point with its name. Paste the flag and confirm that it shows two entries.
- Helpful search terms: "regional indicator symbol", "emoji flag sequence", "U+1F1FA U+1F1F8", "grapheme cluster", and "Unicode code point inspector".
Gaps in this review
- No rendering tests were performed on specific operating systems, browsers, apps or versions.
- No documentation was reviewed on how particular screen readers announce the sequence.
- No evidence was available on how specific search engines index or match flag emoji.
- No named online tools were evaluated, including their privacy or data-handling practices.