The Bangla SMS character limit surprises almost every team that sends OTPs or order updates in Bangladesh: a message that looks short in Bangla is billed as two or three SMS, while the English version of the same text fits in one. The reason is encoding. Plain English SMS use the 7-bit GSM alphabet and fit 160 characters; anything outside that alphabet, including every Bangla letter, forces the whole message into UCS-2, which fits only 70. This guide explains the rules exactly, shows how Bangla script and emoji consume space, lists the invisible characters that switch English messages to Unicode, and gives you a tested segment counter in Python and JavaScript to put in front of your SMS gateway.

Bangla SMS character limit diagram comparing GSM-7 with 160 and 153 characters per segment to UCS-2 Unicode with 70 and 67 characters per segment
The Bangla SMS character limit: GSM-7 messages hold 160 characters, Unicode UCS-2 messages such as Bangla hold 70.

From my own work: When I audit notification templates for local businesses, the most expensive line is usually a friendly Bangla sign-off added to every order message. It pushes a 60-character text past 70 units and doubles the cost of every SMS sent, which on a high-volume shop adds up quickly. A segment check in the template editor catches it.

The SMS character limit rules in one table

An SMS carries a payload of 140 bytes. How many characters fit depends on the data coding scheme the sender chooses, defined in 3GPP TS 23.038 (3GPP TS 23.038):

Encoding Bits per character Single SMS Each part of a long SMS Triggered by
GSM-7 (default alphabet) 7 160 characters 153 characters Messages that only use the GSM alphabet
GSM-7 extension table 14 (escape + character) Counts as 2 Counts as 2 ^ { } [ ] ~ |, euro sign, form feed
UCS-2 (16-bit Unicode) 16 70 characters 67 characters Any character outside GSM-7, such as Bangla

Long messages lose a few characters per part because each part carries a 6-byte user data header that tells the phone how to reassemble the message. That is why a 161-character English text becomes two parts of up to 153 characters each, not 160 plus 1. Most SMS providers bill each part as one message, so the segment count is your cost multiplier; check your own provider’s rate card for the exact rules.

What GSM-7 includes and what it does not

The GSM 7-bit default alphabet has 128 characters: the Latin letters A to Z in both cases, digits, common punctuation, and a selection of accented Latin and Greek capital letters such as é, ñ, ü, Δ and Ω (Twilio: GSM-7 encoding). It does not include many characters that look harmless:

  • Curly quotes and apostrophes (’ “ ”) pasted from a word processor or typed by a phone keyboard.
  • The en dash and em dash (– —), the ellipsis character (…) and the non-breaking space.
  • The backtick (`), and many currency signs; the taka sign (৳) is in the Bengali Unicode block and is never GSM-7.
  • Emoji of any kind.

One such character anywhere in the message switches the entire message to UCS-2. An English OTP template with a single typographic apostrophe drops from 160 to 70 characters per SMS without any visible difference.

How Bangla text counts in UCS-2

Bangla letters sit in the Unicode Bengali block, U+0980 to U+09FF (Unicode: Bengali code chart). All of them are in the Basic Multilingual Plane, so each code point costs exactly one UCS-2 unit. The catch is that what a reader sees as one letter is often several code points:

  • Vowel signs are separate code points: কি is ক plus ি, two units.
  • Conjuncts are built with the hasanta (virama, U+09CD): ক্ষ is ক, ্ and ষ, three units for one visible cluster.
  • Zero-width joiner and non-joiner (U+200D, U+200C), used by some keyboards to control conjunct rendering, are invisible and still cost one unit each.
  • The Bangla danda (।) and Bangla digits (০ to ৯) are Unicode too. Writing an OTP in Bangla digits does not save space compared with ASCII digits once the message is Unicode anyway, but ASCII digits are easier for autofill and copying.

So a Bangla message of 50 visible letters can easily need 65 or more units. Counting with your eyes, or with a JavaScript length on a Bangla word, gives no reliable sense of the cost.

python3 -c "s='ক্ষ'; print(len(s), [hex(ord(c)) for c in s])"
# 3 ['0x995', '0x9cd', '0x9b7']

Emoji and characters outside the BMP

UCS-2 can only represent the first 65,536 code points. Modern phones and gateways actually send UTF-16, in which characters beyond that range, including almost all emoji, are written as a surrogate pair of two 16-bit units (Twilio: UCS-2 encoding, Python: codecs). Each such emoji therefore costs 2 of the 70 units, and composite emoji such as flags, skin-tone variants or family sequences combine several code points and cost even more. When a message is split, a correct implementation never cuts a surrogate pair or a GSM escape sequence across two parts, so a part can end up one unit shorter than the maximum.

An SMS segment counter in Python

The script below decides the encoding, counts units correctly for GSM escape characters and emoji, splits the message into parts without breaking pairs, and lists the characters that forced Unicode. It needs only the standard library:

"""Count SMS segments for GSM-7 and UCS-2 (Bangla, emoji) messages.

Usage: python sms_segments.py "আপনার OTP কোড 482913"
"""
from __future__ import annotations

import sys

GSM7_BASIC = set(
    "@£$¥èéùìòÇnØørÅåΔ_ΦΓΛΩΠΨΣΘΞÆæßÉ !"#¤%&'()*+,-./0123456789:;<=>?"
    "¡ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÑܧ¿abcdefghijklmnopqrstuvwxyzäöñüà"
)
GSM7_EXTENDED = set("f^{}\[~]|€")  # each costs 2 septets (ESC + char)


def is_gsm7(text: str) -> bool:
    return all(ch in GSM7_BASIC or ch in GSM7_EXTENDED for ch in text)


def gsm7_units(text: str) -> list[int]:
    """Septets per character, so an escape pair is never split."""
    return [2 if ch in GSM7_EXTENDED else 1 for ch in text]


def ucs2_units(text: str) -> list[int]:
    """UTF-16 code units per character (emoji outside the BMP use 2)."""
    return [2 if ord(ch) > 0xFFFF else 1 for ch in text]


def split_units(units: list[int], single: int, multi: int) -> list[int]:
    total = sum(units)
    if total <= single:
        return [total] if total else []
    parts, current = [], 0
    for u in units:
        if current + u > multi:
            parts.append(current)
            current = 0
        current += u
    parts.append(current)
    return parts


def analyse(text: str) -> dict:
    if is_gsm7(text):
        encoding, units, single, multi = "GSM-7", gsm7_units(text), 160, 153
    else:
        encoding, units, single, multi = "UCS-2", ucs2_units(text), 70, 67
    parts = split_units(units, single, multi)
    limit = single if len(parts) <= 1 else multi * len(parts)
    return {
        "encoding": encoding,
        "characters": len(text),
        "units": sum(units),
        "segments": len(parts),
        "per_segment": parts,
        "remaining": limit - sum(units),
        "non_gsm": sorted({ch for ch in text if ch not in GSM7_BASIC | GSM7_EXTENDED}),
    }


if __name__ == "__main__":
    result = analyse(sys.argv[1] if len(sys.argv) > 1 else sys.stdin.read().rstrip("n"))
    for key, value in result.items():
        print(f"{key:>12}: {value}")
$ python3 sms_segments.py "Your OTP is 482913. Do not share it."
    encoding: GSM-7
       units: 36
    segments: 1
   remaining: 124

$ python3 sms_segments.py "আপনার OTP কোড 482913। কাউকে জানাবেন না।"
    encoding: UCS-2
       units: 39
    segments: 1
   remaining: 31

$ python3 sms_segments.py "It’s ready"
    encoding: UCS-2          # the curly apostrophe forced Unicode
     non_gsm: ['’']

Boundary checks behave as the standard says: 160 plain letters are one segment, 161 are two parts of 153 and 8; 71 Bangla letters are two parts of 67 and 4.

The same counter in JavaScript

For a live counter in an admin panel or a Node.js API, the same logic fits in a short module. Spreading the string with [...text] iterates by code point, so emoji are handled as one character costing two units:

// smsSegments.mjs - same rules as the Python version, for Node.js 20+ and browsers
const GSM7_BASIC = new Set(
  "@£$¥èéùìòÇnØørÅåΔ_ΦΓΛΩΠΨΣΘΞÆæßÉ !"#¤%&'()*+,-./0123456789:;<=>?" +
  "¡ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÑܧ¿abcdefghijklmnopqrstuvwxyzäöñüà"
);
const GSM7_EXTENDED = new Set("f^{}\[~]|€");

export function smsSegments(text) {
  const chars = [...text]; // iterates by code point, so emoji stay whole
  const gsm = chars.every((c) => GSM7_BASIC.has(c) || GSM7_EXTENDED.has(c));
  const units = chars.map((c) =>
    gsm ? (GSM7_EXTENDED.has(c) ? 2 : 1) : c.codePointAt(0) > 0xffff ? 2 : 1
  );
  const [single, multi] = gsm ? [160, 153] : [70, 67];
  const total = units.reduce((a, b) => a + b, 0);
  if (total <= single) return { encoding: gsm ? "GSM-7" : "UCS-2", units: total, segments: total ? 1 : 0 };
  let segments = 1, current = 0;
  for (const u of units) {
    if (current + u > multi) { segments += 1; current = 0; }
    current += u;
  }
  return { encoding: gsm ? "GSM-7" : "UCS-2", units: total, segments };
}

console.log(smsSegments("আপনার অর্ডার #1042 পাঠানো হয়েছে। ধন্যবাদ!"));
// { encoding: 'UCS-2', units: 42, segments: 1 }

Writing Bangla SMS templates that stay in one segment

  • Budget 70 units, not 70 letters. Run every template through the counter with the longest realistic values for variables such as customer names, order numbers and amounts.
  • Put the essential part first. If a message must be long, keep the OTP or the order status in the first part, since some older phones display parts separately.
  • Drop the decoration. Greetings, emoji and repeated brand names cost the most for the least information.
  • Consider English or Banglish for OTPs. A plain-ASCII OTP message gets 160 characters and works with automatic code detection on phones. Use Bangla where it genuinely helps understanding, such as delivery and payment notifications.
  • Normalise text before sending English messages. Replace curly quotes, dashes and non-breaking spaces with ASCII equivalents so an English template never falls into UCS-2 by accident.
ASCII_FIX = str.maketrans({"‘": "'", "’": "'", "“": '"', "”": '"',
                            "–": "-", "—": "-", "…": "...", " ": " "})

def normalise_english(text: str) -> str:
    return text.translate(ASCII_FIX)

Do not apply that normalisation to Bangla messages; they are Unicode anyway, and altering characters there only risks changing meaning.

If your site already serves content in both languages, the font, number formatting and translation-key issues in Bangla and English website localization apply to SMS templates too. Delivery receipts from SMS gateways usually arrive as webhooks; verify them as described in webhook signature verification, and when a gateway rate-limits or times out, retry with exponential backoff and jitter so a burst of OTPs does not become a burst of duplicates.

Gateway settings that affect length

  • Data coding: many HTTP SMS APIs have a parameter such as type=unicode or coding=8. Sending Bangla without it can produce question marks on the handset; sending English with it wastes space.
  • Automatic detection: some providers detect the encoding and, optionally, replace look-alike Unicode characters with GSM equivalents. Know whether yours does, and test with your real templates.
  • Maximum parts: gateways often cap concatenated messages, for example at a fixed number of parts, and reject or truncate longer ones.
  • Sender type: masking and non-masking sender IDs in Bangladesh can follow different rules and prices; confirm the segment rules for both with your provider.

Bangla SMS character limit checklist

  • Count UCS-2 units, not visible letters; 70 for one SMS, 67 per part.
  • English templates checked for curly quotes, dashes, ellipses and emoji.
  • Extended GSM characters counted as 2.
  • Every template tested with worst-case variable values.
  • Unicode flag set correctly in the gateway request.
  • A segment counter shown in the template editor before anyone saves.

Want this done on your own server or site?

I am Saizul Amin, a web developer and technical SEO consultant. I set up and harden VPS servers, migrate WordPress sites, fix indexing problems and build automations. See my portfolio or get in touch.

FAQ

What is the character limit of a Bangla SMS?

A single Bangla SMS holds 70 UCS-2 units, and each part of a longer message holds 67. Because Bangla vowel signs and conjuncts are separate Unicode code points, the number of visible letters that fit is often lower than 70.

Why does my English SMS count as Unicode?

It contains at least one character outside the GSM-7 alphabet, most often a curly apostrophe or quote, an en dash, an ellipsis, a non-breaking space or an emoji. One such character switches the whole message to UCS-2 with a 70-character limit.

Why is a long SMS limited to 153 characters per part?

Each part of a concatenated SMS carries a user data header that tells the phone how to join the parts. It takes space that would otherwise hold 7 GSM characters, so each part holds 153 GSM-7 characters or 67 UCS-2 units.

Do emoji take more space in an SMS?

Yes. Most emoji are outside the Basic Multilingual Plane and are encoded as two UTF-16 units, so each costs 2 of the 70 available units, and combined emoji sequences cost more. They also force the message into Unicode.

Should OTP messages in Bangladesh be in Bangla or English?

Either works. A plain English OTP fits up to 160 characters and works well with automatic code detection on phones. A Bangla OTP is fine if it stays within 70 units; keep the code in ASCII digits so it is easy to copy.

Sources

NEW BLOGS. REAL STRATEGIES. REAL RESULTS.

Join our community and receive powerful SEO tips, web optimization guides, and growth strategies as soon as they’re published.

Don’t just read blogs — stay ahead of the competition.

We don’t spam! Read our privacy policy for more info.

Share.

Comments are closed.