# Text (ASCII) to Binary Conversion

Ever want to send an encoded message that only a handful of people can actually crack the code? Well, look no further; This sweet conversion tool will take any text string and convert it into binary code - you know? Those little 1's and 0's that make our world go around today... the digital world. So go ahead, send some coded messages.... That's right! Send a message to friend in digital format and all they have to do is come back here, plug it in to the binary field and Wow!

## Bookmark:

# Text (ASCII) to Binary Conversion

The binary number system (aka base 2) represents values using two symbols, typically 0 and 1. Computers call these bits. A bit is either off (0) or on (1). When arranged in sets of 8 bits (1 byte) 256 values can be represented (0-255). Using an ASCII chart, these values can be mapped to characters and text can be stored.

A binary coded decimal is converted by taking groups of four from a decimal string,

for example the binary coded decimal string

1000 = 8

10001000 does not = 136 but 88

so

1000 = 8

11100000111001 = 3839

100000111001 = 839

**The binary numeral system**

The binary numeral system, or base-2 number system, represents numeric values using two symbols, 0 and 1. More specifically, the usual base-2 system is a positional notation with a radix of 2. Owing to its straightforward implementation in digital electronic circuitry using logic gates, the binary system is used internally by all modern computers.

**Hexadecimal**

In mathematics and computer science, hexadecimal (also base 16, or hex) is a positional numeral system with a radix, or base, of 16. It uses sixteen distinct symbols, most often the symbols 0-9 to represent values zero to nine, and A, B, C, D, E, F (or alternatively a through f) to represent values ten to fifteen.

**Octal**

The octal numeral system, or oct for short, is the base-8 number system, and uses the digits 0 to 7. Numerals can be made from binary numerals by grouping consecutive binary digits into groups of three (starting from the right).

**Decimal**

The decimal numeral system (also called base ten or occasionally denary) has ten as its base. It is the numerical base most widely used by modern civilizations. Decimal notation often refers to the base-10 positional notation such as the Hindu-Arabic numeral system, however it can also be used more generally to refer to non-positional systems such as Roman or Chinese numerals which are also based on powers of ten.

The following table shows each hexadecimal digit along with the equivalent decimal value and four-digit binary sequence:

Hex | Dec | Binary |
---|---|---|

0 | 0 | 0000 |

1 | 1 | 0001 |

2 | 2 | 0010 |

3 | 3 | 0011 |

4 | 4 | 0100 |

5 | 5 | 0101 |

6 | 6 | 0110 |

7 | 7 | 0111 |

8 | 8 | 1000 |

9 | 9 | 1001 |

A | 10 | 1010 |

B | 11 | 1011 |

C | 12 | 1100 |

D | 13 | 1101 |

E | 14 | 1110 |

F | 15 | 1111 |

The correspondence between octal and binary numerals

Octal | Binary |
---|---|

0 | 000 |

1 | 001 |

2 | 010 |

3 | 011 |

4 | 100 |

5 | 101 |

6 | 110 |

7 | 111 |

A special message for you / decode this and see what its saying...

**External Resources:**