Example 1: Text in binary, hex, decimal, and octal
Input (text):
Hello World
| Format | Output |
|---|---|
| Binary code | 01001000 01100101 01101100 01101100 01101111 00100000 01010111 01101111 01110010 01101100 01100100 |
| Hexadecimal | 48 65 6c 6c 6f 20 57 6f 72 6c 64 |
| Decimal numbers (ASCII codes) | 72 101 108 108 111 32 87 111 114 108 100 |
| Octal numbers | 110 145 154 154 157 040 127 157 162 154 144 |
Result explained: The text has 11 characters and consists of 11 bytes, or 88 bits. The first character, H, becomes 01001000 (binary), 48 (hex), 72 (decimal) or 110 (octal), depending on the notation. An ASCII character is exactly one byte; other characters need multiple bytes (see example 2).
