What this tool does
A Regional Indicator Symbol is a Unicode character that renders as a boxed capital letter. There are exactly 26 of them, occupying code points U+1F1E6 (🇦) through U+1F1FF (🇿). This converter turns ordinary text into those boxed letters and back again, which is handy for Discord messages, Twitch chat, and stylised social-media bios.
How it works
The mapping is purely arithmetic. Each Latin letter has a position 0–25 in the alphabet (A = 0, Z = 25). The matching Regional Indicator Symbol is the code point 0x1F1E6 + position. To encode, the tool uppercases each letter, computes its offset from A, and emits String.fromCodePoint(0x1F1E6 + offset). To decode, it reverses the formula: any code point in the range 0x1F1E6–0x1F1FF is converted back with String.fromCharCode(65 + (codePoint - 0x1F1E6)).
Anything that is not a letter — spaces, digits, punctuation — is passed through unchanged, so sentence structure is preserved.
Tips and notes
- Two consecutive indicators that form a valid country code (like
USorGB) will be merged into a flag emoji by most platforms. Insert a normal space or zero-width character between letters if you want them to stay separate. - The symbols are caseless, so
HelloandHELLOproduce identical output. - Because each indicator is an astral-plane code point (above U+FFFF), it occupies two UTF-16 units; the decoder iterates by code point to handle this correctly.