SIM · USIM · eSIM · OTA
SIM, USIM and eSIM decoders
Free decoders for SIM identifiers and APDUs. A desktop SIM reader is in development. SIM, USIM, eSIM and OTA consulting is based on 20+ years of experience. The example below is an SMS OTA command packet. Select a field to see what it does.
- lengths and headers
- security parameters
- ciphered with the KIc key
SPISecurity parameter indicator · 2 bytes
06: cryptographic checksum, ciphering on, no counter checking. 19: proof of receipt required, with a cryptographic checksum, ciphered, and returned in the SMS-DELIVER-REPORT.
TS 102 225 §5.1.1Real bytes from the OTA test vectors in pySim (osmocom), made with the sample keys published there: SELECT MF sent to the card's RFM application. Not from a live card. Follow a packet like this one, step by step.
§1 decode
Decode an ICCID, IMSI, EID or activation code
Paste an ICCID, IMSI, EID or eSIM activation code. The decoder recognises it and labels its fields, with the Luhn, MOD 97-10 and BCD checks. Nothing you paste leaves the browser.
ICCID19 digits · check digit valid
| Industry (MII) | 89Telecommunications |
|---|---|
| Country code | 55Brazil (E.164 country code) |
| Issuer + account | 01001283277342The issuer sets where one ends and the other starts |
| Check digit | 8Luhn (ISO/IEC 7812): valid |
| EF_ICCID (2FE2) | 985510002138723724F8As stored on the card: swapped-nibble BCD, F-padded |
§2 tools
SIM and eSIM tools
Free and client-side. Each tool names the spec it implements, and you can link to a result.
- ICCID parserITU-T E.118 · ISO/IEC 7812
Validate and generate ICCIDs (Luhn), with the on-card EF_ICCID swapped-nibble BCD form.
- IMSI parserITU-T E.212 · TS 23.003
MCC, MNC and MSIN, with both the 2-digit and 3-digit MNC split, and raw EF_IMSI.
- EID parserGSMA SGP.22 · SGP.29
Decode the fields of a 32-digit eUICC EID and check its two MOD 97-10 check digits.
- APDU decoderISO/IEC 7816-4 · TS 102 221
Build and decode ISO 7816-4 command APDUs, with SIM/UICC command names and status words.
- SIM file systemTS 102 221 · TS 31.102
An interactive MF/DF/EF tree: FIDs, access conditions, SELECT APDUs and per-EF decoders.
- Activation-code decoderGSMA SGP.22 · SGP.32
Split and check an SGP.22 activation code (the LPA:1$… string in an eSIM QR code).
- OTA packet inspectorTS 102 225 · TS 31.115
Decode SIM OTA secured packets and PoRs: SPI, KIc, KID, TAR, counter and the RFM/RAM commands inside.
§3 sim explorer
SIM Explorer, a desktop app
Reads SIM, USIM and eUICC cards through a PC/SC reader. It shows the file tree, decodes the standard files and logs each APDU. The demo on the right shows the card's answer to reset, which the app reads first. The app is in development and not available yet.
Free read and decode, no licence keyPro one-time purchase, price on enquiry
- C5GND connected
- C1VCC applied
- C7I/O set to receive
- C3CLK started
- C2RST released
- I/OATR received
TS3BDirect convention: high is 1, least significant bit first.T09FTA1 and TD1 follow; 15 historical bytes.TA196Fi = 512, Di = 32, fmax 5 MHz.TD180Protocol T=0; TD2 follows.TD21FT=15 global interface bytes; TA3 follows.TA3C7Clock stop supported, no preference; classes A, B and C (5 V, 3 V, 1.8 V).Hist.80 … 00Category 80, compact-TLV: card service data E0, card capabilities FE 21 1B, pre-issuing data 3A 20 4E, status 00 90 00.TCK93Check byte: T0 to TCK XOR to 00, so the ATR is intact.| Planned feature | Free | Pro |
|---|---|---|
| Read a card through any PC/SC reader; browse and decode the standard files | ●yes | ●yes |
| Known-file scan with a per-folder report; read-only report of one card | ●yes | ●yes |
| Verify PIN1; send APDUs by hand with a full log | ●yes | ●yes |
| List GlobalPlatform security domains, applets and packages | ●yes | ●yes |
| Write files; PIN management and ADM keys | ·no | ●yes |
| Full ID search and custom ID ranges | ·no | ●yes |
| XLSX export, full dump, compare two cards | ·no | ●yes |
| APDU scripts over many cards; load, install and delete CAP files | ·no | ●yes |
| eSIM profile tools; OTA packet compose and inspect; remote reader | ·no | ●yes |
§4 training
SIM / USIM development course
In development. Eight modules for telecom and embedded engineers, MVNO and IoT teams, and QA and perso staff, with labs on the tools on this site and a programmable test card. English and Portuguese.
Foundations
The card platform
The UICC file system
Authentication & security
Provisioning & perso
OTA & applets
The eSIM transition
Capstone
An OTA update over SMS
A secured packet like the one above, from the OTA server to the card, and the proof of receipt back.
- OTA server→SMSCSMS-SUBMIT with the secured packet
- SMSC→handsetSMS-DELIVER, PID 7F, DCS F6
- handset→UICCENVELOPE (SMS-PP download)
- UICC→OTA serverproof of receipt, in the SMS-DELIVER-REPORT or an SMS-SUBMIT as specified by the SPI
§5 consulting
Consulting
IDNTEQ, the company that makes SimProbe, does the consulting in English or Portuguese, from Brazil. The work covers SIM/USIM profiles, OTA platforms and Java Card applets. IDNTEQ doesn't resell any vendor's products.
SIM and USIM consulting
File-system and profile design, IMSI/ICCID/PLMN planning, interop debugging across handset and network, perso data QA, RFP support.
3GPP TS 31.102 · TS 51.011 · ETSI TS 102 221
OTA platform work
Campaigns that fail without an error, KIc/KID/TAR and counter mistakes, SMSC integration, RAM/RFM set-up, and migration from OTA to eSIM.
ETSI TS 102 225 · TS 102 226 · 3GPP TS 03.48
SIM applet development
Java Card applets, SIM toolkit menus and proactive commands, GlobalPlatform loading, OTA-deployable CAP packaging.
3GPP TS 31.111 · ETSI TS 102 223 · GlobalPlatform
Operator and eSIM advisory
Plans for moving from SIM to eSIM, SM-DP+ or eIM architecture, vendor evaluation, numbering strategy, technical due diligence.
GSMA SGP.22 · SGP.32 · SGP.02
§6 articles
Articles
Worked examples that explain the bytes and link to the tools.