Text to Binary Converter
Convert plain text to binary code and back using each character's ASCII/UTF-8 representation, including multi-byte characters. Useful for computer science homework, decoding a binary message, or creating a hidden-message puzzle, instantly and free in your browser.
Usage examples
Learning how computers represent text
See the exact binary bytes behind any word or sentence you type, based on its UTF-8 encoding.
Decoding a binary message
Paste a string of 8-bit binary groups and convert it back to readable text.
Checking multi-byte characters
See how emoji and non-Latin characters take up more than one byte in UTF-8.
Completing a computer science homework assignment
Convert a short word like "Hi" to binary to check your own by-hand conversion against the correct 8-bit byte values.
Creating a simple puzzle or hidden message
Convert a short phrase into binary to use as a puzzle for someone else to decode back into text.
Quick reference
Uppercase letters (A-Z)
| Character | Binary | Decimal | Hex |
|---|---|---|---|
| A | 01000001 | 65 | 41 |
| B | 01000010 | 66 | 42 |
| C | 01000011 | 67 | 43 |
| D | 01000100 | 68 | 44 |
| E | 01000101 | 69 | 45 |
| F | 01000110 | 70 | 46 |
| G | 01000111 | 71 | 47 |
| H | 01001000 | 72 | 48 |
| I | 01001001 | 73 | 49 |
| J | 01001010 | 74 | 4A |
| K | 01001011 | 75 | 4B |
| L | 01001100 | 76 | 4C |
| M | 01001101 | 77 | 4D |
| N | 01001110 | 78 | 4E |
| O | 01001111 | 79 | 4F |
| P | 01010000 | 80 | 50 |
| Q | 01010001 | 81 | 51 |
| R | 01010010 | 82 | 52 |
| S | 01010011 | 83 | 53 |
| T | 01010100 | 84 | 54 |
| U | 01010101 | 85 | 55 |
| V | 01010110 | 86 | 56 |
| W | 01010111 | 87 | 57 |
| X | 01011000 | 88 | 58 |
| Y | 01011001 | 89 | 59 |
| Z | 01011010 | 90 | 5A |
Lowercase letters (a-z)
| Character | Binary | Decimal | Hex |
|---|---|---|---|
| a | 01100001 | 97 | 61 |
| b | 01100010 | 98 | 62 |
| c | 01100011 | 99 | 63 |
| d | 01100100 | 100 | 64 |
| e | 01100101 | 101 | 65 |
| f | 01100110 | 102 | 66 |
| g | 01100111 | 103 | 67 |
| h | 01101000 | 104 | 68 |
| i | 01101001 | 105 | 69 |
| j | 01101010 | 106 | 6A |
| k | 01101011 | 107 | 6B |
| l | 01101100 | 108 | 6C |
| m | 01101101 | 109 | 6D |
| n | 01101110 | 110 | 6E |
| o | 01101111 | 111 | 6F |
| p | 01110000 | 112 | 70 |
| q | 01110001 | 113 | 71 |
| r | 01110010 | 114 | 72 |
| s | 01110011 | 115 | 73 |
| t | 01110100 | 116 | 74 |
| u | 01110101 | 117 | 75 |
| v | 01110110 | 118 | 76 |
| w | 01110111 | 119 | 77 |
| x | 01111000 | 120 | 78 |
| y | 01111001 | 121 | 79 |
| z | 01111010 | 122 | 7A |
Digits (0-9)
| Character | Binary | Decimal | Hex |
|---|---|---|---|
| 0 | 00110000 | 48 | 30 |
| 1 | 00110001 | 49 | 31 |
| 2 | 00110010 | 50 | 32 |
| 3 | 00110011 | 51 | 33 |
| 4 | 00110100 | 52 | 34 |
| 5 | 00110101 | 53 | 35 |
| 6 | 00110110 | 54 | 36 |
| 7 | 00110111 | 55 | 37 |
| 8 | 00111000 | 56 | 38 |
| 9 | 00111001 | 57 | 39 |
Punctuation
| Character | Binary | Decimal | Hex |
|---|---|---|---|
| (space) | 00100000 | 32 | 20 |
| ! | 00100001 | 33 | 21 |
| " | 00100010 | 34 | 22 |
| # | 00100011 | 35 | 23 |
| $ | 00100100 | 36 | 24 |
| % | 00100101 | 37 | 25 |
| & | 00100110 | 38 | 26 |
| ' | 00100111 | 39 | 27 |
| ( | 00101000 | 40 | 28 |
| ) | 00101001 | 41 | 29 |
| * | 00101010 | 42 | 2A |
| + | 00101011 | 43 | 2B |
| , | 00101100 | 44 | 2C |
| - | 00101101 | 45 | 2D |
| . | 00101110 | 46 | 2E |
| / | 00101111 | 47 | 2F |
| : | 00111010 | 58 | 3A |
| ; | 00111011 | 59 | 3B |
| < | 00111100 | 60 | 3C |
| = | 00111101 | 61 | 3D |
| > | 00111110 | 62 | 3E |
| ? | 00111111 | 63 | 3F |
| @ | 01000000 | 64 | 40 |
Frequently asked questions
Why does one character sometimes produce more than 8 bits?
Text on the web is encoded as UTF-8, where each character can take 1 to 4 bytes depending on which character it is. Basic English letters and numbers take 1 byte (8 bits), but accented letters, non-Latin scripts, and emoji take more.
Does this work for any language?
Yes — since the conversion is based on UTF-8 byte encoding rather than a fixed character set, any text in any supported language or script converts correctly.
How exactly should binary input be formatted?
Enter each byte as a group of exactly 8 ones and zeros, with a space between each group, for example "01001000 01101001" for "Hi". Groups that aren't exactly 8 bits, or that contain characters other than 0 and 1, will trigger a validation error.
Is this the same as ASCII, or specifically UTF-8?
For plain English text and numbers, ASCII and UTF-8 produce identical 8-bit results, since UTF-8 was designed to be backward-compatible with ASCII. The difference only shows up with characters outside basic English, which ASCII can't represent at all but UTF-8 encodes using multiple bytes.
Does converting text to binary and back always return the exact original text?
Yes, as long as the binary wasn't altered in between. Since the conversion is a direct, lossless mapping of UTF-8 bytes, converting text to binary and immediately back to text reproduces the original text exactly, including spaces, punctuation, and emoji.
Why do some binary groups start with 1110 or 11110?
Those are UTF-8's lead-byte markers for multi-byte characters — a byte starting with 1110 signals the first of a 3-byte sequence, and 11110 signals the first of a 4-byte sequence, which is how decoders know how many following bytes belong to the same character.
Is my input sent to a server?
No. All conversions happen entirely in your browser, and nothing you type or paste is ever sent to a server.