File size: 1,322 Bytes
2ccee15
037f593
 
 
 
2ccee15
 
 
 
 
 
037f593
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
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](https://huggingface.co/PacketExchange). The [PacketExchange API](https://packetexchange.io/developers) sends SMS and one-time codes on wholesale routes, with [open source clients](https://github.com/PacketExchangeIO) for Node, Python and more. Questions are welcome at contact@packetexchange.io.