WordCounter

Text Encoding Reference Guide

Comprehensive technical handbook on Binary, International Morse Code, the NATO Phonetic Alphabet, ASCII, and modern UTF-8 Unicode text architectures.

01011. 8-Bit Binary Encoding (Base-2)

In digital computing, every character, number, and pixel resolves to microscopic binary switches: 0 (low voltage) and 1 (high voltage). An 8-bit byte consists of 8 binary positions, representing integers from 0 to 255 (28 = 256 unique permutations).

CharacterASCII Decimal8-Bit BinaryHexadecimal
A65010000010x41
B66010000100x42
C67010000110x43
a97011000010x61
b98011000100x62
Space32001000000x20
048001100000x30
!33001000010x21

• — •2. International Morse Code (ITU-R M.1677)

Morse code relies on two acoustic and optical transmission elements: the "dit" (short pulse) and the "dah" (long pulse). International telecommunication timing rules are mathematically standardized:

  • Dot (dit) Duration: 1 basic time unit.
  • Dash (dah) Duration: Exactly 3 time units (equal in duration to three dots).
  • Intra-character spacing: 1 time unit between consecutive dots and dashes of the same letter.
  • Inter-letter spacing: 3 time units between individual letters within a word.
  • Inter-word spacing: 7 time units between words (frequently notated as a slash / in written transcriptions).
A: • —
B: — • • •
C: — • — •
D: — • •
E: •
F: • • — •
G: — — •
H: • • • •
S: • • •
O: — — —
SOS: ••• ——— •••
Space: /

📡3. NATO / ICAO Radiotelephony Spelling Alphabet

Adopted in 1956 by NATO and the International Civil Aviation Organization (ICAO), these 26 codewords were selected following hundreds of thousands of acoustic intelligibility trials across 31 countries to ensure zero misinterpretation in air traffic control and emergency communications.

A: Alpha (AL-fah)
B: Bravo (BRAH-voh)
C: Charlie (CHAR-lee)
D: Delta (DELL-tah)
E: Echo (ECK-oh)
F: Foxtrot (FOKS-trot)
G: Golf (GOLF)
H: Hotel (hoh-TELL)
I: India (IN-dee-ah)
J: Juliett (JEW-lee-ett)
K: Kilo (KEY-loh)
L: Lima (LEE-mah)
M: Mike (MIKE)
N: November (no-VEM-ber)
O: Oscar (OSS-cah)
P: Papa (pah-PAH)
Q: Quebec (keh-BECK)
R: Romeo (ROH-me-oh)
S: Sierra (see-AIR-rah)
T: Tango (TANG-go)
U: Uniform (YOU-nee-form)
V: Victor (VIK-tah)
W: Whiskey (WISS-key)
X: X-ray (ECKS-ray)
Y: Yankee (YANG-key)
Z: Zulu (ZOO-loo)

🌐4. Modern Unicode (UTF-8, UTF-16) vs. Legacy Encodings

Prior to Unicode, global computing was fractured across hundreds of incompatible code pages (such as Windows-1252 for Western Europe, Shift-JIS for Japan, and KOI8-R for Cyrillic). Sending a document from one country to another resulted in illegible scrambled characters known as mojibake.

Today, UTF-8 powers over 98% of the World Wide Web. It operates using a variable-length byte scheme:

  • 1 Byte (8 bits): Standard ASCII characters (0 to 127). Exact binary equivalence with 1960s ASCII.
  • 2 Bytes (16 bits): Latin accents (é, ü, ñ), Greek, Cyrillic, Hebrew, and Arabic alphabets.
  • 3 Bytes (24 bits): Asian logographic scripts including Chinese (CJK), Japanese kanji/hiragana, and Korean hangul.
  • 4 Bytes (32 bits): Emojis (😀, 🚀), mathematical symbols, and historic hieroglyphic scripts.

Frequently Asked Questions

What is character encoding?

Character encoding is a systematic mapping that pairs each grapheme or character in a human language alphabet with a unique numeric value (code point) that digital processors, network protocols, and storage media can reliably process.

What is the difference between ASCII and UTF-8?

ASCII is a 7-bit standard established in 1963 supporting 128 basic English letters, digits, and control codes. UTF-8 is a modern, variable-length Unicode encoding (1 to 4 bytes per character) backward-compatible with ASCII that represents over 149,000 characters spanning every written language, historical scripts, emojis, and mathematical symbols.

Why do we need phonetic alphabets like NATO?

Radio channels and voice telephone lines are frequently plagued by audio static, engine rumble, and regional accents. Phonetic codewords like "Alpha", "Bravo", and "Charlie" were acoustically engineered so they cannot be confused with one another even over degraded transmissions.

What causes garbled text or mojibake (e.g. é instead of é)?

Mojibake occurs when text encoded in one standard (typically UTF-8 multi-byte sequences) is decoded using an incompatible single-byte legacy standard (such as ISO-8859-1 or Windows-1252). For example, the UTF-8 byte sequence 0xC3 0xA9 for 'é' is misinterpreted by Latin-1 decoders as two separate characters: 'Ã' and '©'.

What is Base64 encoding used for?

Base64 translates raw binary data (such as images, encrypted cryptographic keys, or file attachments) into a safe set of 64 printable ASCII characters (A-Z, a-z, 0-9, +, /). This guarantees that binary payloads can pass through text-only legacy protocols (like SMTP email and HTTP headers) without byte corruption.

How do computers differentiate uppercase and lowercase in binary ASCII?

In 7-bit ASCII, uppercase and lowercase letters differ by exactly one bit—bit 5 (the 32-value bit). For instance, uppercase 'A' is decimal 65 (binary 01000001), while lowercase 'a' is decimal 97 (binary 01100001). Adding or toggling bit 5 instantly transforms letter case without complex math.