SPN Encoding Analyzer

3GPP TS 31.102 Service Provider Name Encoding

📱 What is SPN? The Service Provider Name (SPN) is stored in the SIM card's EF_SPN elementary file (6F46). It displays the network operator name on your phone screen. With only 16 bytes available, encoding efficiency matters significantly for supporting multiple languages and emoji.
0 characters
🔗 Emoji & Unicode references
Analyzing...

All Encodings (Comparison)

Comparison Table

Encoding Method Max Characters Arabic Support Emoji Support Overhead Best For
🔧 APDU Builder. Generates ready-to-send ISO 7816-4 APDUs to read & update EF_SPN (6F46) on the SIM, plus an optional proactive REFRESH command (no UICC reset). One APDU set is rendered per registered SIM supplier from data/sim_profiles.json.

1. Display Condition (first byte of EF_SPN)

Display rules per 3GPP TS 31.102 §4.2.12 — bits use "required to display" semantics
Display byte: 0xFE
Default 0xFE — phone shows the SPN (operator brand) on HPLMN, and only the visited operator name when roaming. Bits 3–8 are RFU and set to 1 per TS 31.102 §4.2.12 (USIM). Common alternatives: 0xFF = always show SPN + always show PLMN (both stacked), 0xFD = SPN always (even when roaming) + suppress PLMN on HPLMN, 0xFC = SPN only on HPLMN + always show PLMN. Legacy GSM SIM (TS 51.011) sets RFU bits to 0 instead.

2. SPN Data (16 bytes)

No SPN encoded yet — run the Analyzer tab first.

3. REFRESH Command (optional)

Default qualifier 0x00 = "NAA Initialization & Full File Change Notification" per ETSI TS 102 223 §6.6.7. Re-reads NAA files but does not reset the UICC — no PIN re-prompt, no session drop.

4. APDUs per SIM Supplier

Loading SIM profiles…
🔍 APDU Decoder. Paste a captured EF_SPN APDU (SELECT, UPDATE BINARY, READ BINARY response, or a chained sequence) and get back the decoded class byte, instruction, display-condition byte, encoding scheme, and the SPN string the SIM would display.

1. Paste APDU Hex

Whitespace, dashes and colons are ignored. Multiple APDUs in sequence are auto-detected and decoded individually.

2. Decoded Output

Paste an APDU above and click Decode.