ASCII 到二進位
輕鬆將 ASCII 字元轉換為二進位代碼
轉換器工具
0 characters
輸入任意 ASCII 字元。非 ASCII 字元將觸發錯誤。
關於此工具
ASCII 到二進位轉換器是一種將 ASCII 字元轉換為二進位等效字元的工具。每個 ASCII 字元都由唯一的 7 位或 8 位二進位代碼表示,具體取決於是否使用擴展 ASCII。
如何運作
- Each character in the input text is checked to ensure it is within the ASCII range (0-127 for standard ASCII, 0-255 for extended ASCII).
- 每個有效的 ASCII 字元都根據 ASCII 表轉換為其十進位等效字元。
- The decimal value is then converted into an 8-bit binary string (padded with leading zeros if necessary).
- The resulting binary strings for all characters are combined (optionally separated by spaces) to form the final output.
常見用途
- 電腦科學教育:瞭解文本在二進位級別如何存儲在計算機中。
- 資料傳輸:將文本轉換為二進位,以便通過需要二進位數據的網路進行傳輸。
- Cryptography:為適用於二進位輸入的加密演演算法準備文本數據。
- 低級程式設計:在系統程式設計中使用文字的二進位表示。
- 數位通信:瞭解如何以數位方式表示文本信息的基礎知識。
ASCII 系統基礎知識
The ASCII (American Standard Code for Information Interchange) system uses 7 bits to represent 128 characters, including English letters (both uppercase and lowercase), numbers, and various symbols. Extended ASCII uses 8 bits to represent 256 characters, adding additional characters from various languages and symbols.
部分 ASCII 到二進位轉換表
Character | ASCII 十進位 | Binary (8-bit) |
---|---|---|
Space | 32 | 00100000 |
! | 33 | 00100001 |
" | 34 | 00100010 |
# | 35 | 00100011 |
A | 65 | 01000001 |
B | 66 | 01000010 |
a | 97 | 01100001 |
b | 98 | 01100010 |
0 | 48 | 00110000 |