sms-segment-counter / README.md
Packet-Exchange's picture
Add SMS segment counter
037f593 verified
|
Raw History Blame Contribute Delete
1.32 kB
metadata
title: SMS Segment Counter
emoji: 💬
colorFrom: yellow
colorTo: gray
sdk: static
pinned: false
license: mit
short_description: Count SMS segments and see which character forced Unicode

SMS Segment Counter

Paste a message and see how many segments it will bill, whether it goes as GSM-7 or UCS-2, how much room is left, and exactly which character flipped it to Unicode, with a one click fix to plain equivalents.

Counting follows GSM 03.38: 160 characters for a single GSM-7 message, 153 per segment after that, 70 and 67 for UCS-2, and the twelve extended characters that cost two. Astral characters such as most emoji cost two UTF-16 units.

Everything runs in the browser. Nothing is sent anywhere.

Why it exists

Segments are what you pay for and what the handset has to reassemble. A single curly quote pasted from a document turns a 150 character message into three segments, and a one-time code that lands in segment two is a code the user does not see on the lock screen.

Built by PacketExchange. The PacketExchange API sends SMS and one-time codes on wholesale routes, with open source clients for Node, Python and more. Questions are welcome at contact@packetexchange.io.