Announcements
The length() function in Power Automate counts UTF-16 code units, not visible characters. Emoji like 🚀 sit outside the Basic Multilingual Plane and require two code units (a surrogate pair), so they return 2. This is expected behaviour, not a bug.
There is no native workaround in Power Automate expressions today. The expression engine has no concept of grapheme clusters or visible character count.
If you need to enforce character limits on inputs that may contain emoji, the cleanest option is to handle that validation in Power Apps before the data reaches the flow, where you have more control over how characters are counted.
The standard length() counts UTF-16 code units, so emojis like 🚀 count as 2. There is no simple built-in way in Power Automate to count user-perceived characters (grapheme clusters).
length()
Expensive though - if you need exact character counts including emojis, consider calling an Azure Function or external API that uses Unicode-aware libraries (e.g., ICU or JavaScript with Array.from()). Otherise, I agree with chiaraalina .
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 377
11manish 279
David_MA 234 Super User 2026 Season 1