Binary translator
Text to binary and back. Paste either one and it works out which way to go.
Auto treats a draft starting with 0 or 1 as binary. Choose Text for a literal like 101.
Updates as you type. Binary accepts spaces, commas and line breaks, or a continuous bitstream. Every group must be complete. Numeric views always separate bytes.
PNG contains the complete binary and text, or asks for shorter input if it cannot fit. Limits: 8,192 bytes and 131,072 source UTF-16 units. Your input stays in this page; it is not uploaded or saved automatically.
Hex and Base64
Read-only representations of the current validated bytes. Base64 encodes bytes; it does not encrypt them.
Enter valid input to view these formats.
How binary translation works
Bytes and characters
UTF-8 represents text as bytes. Each byte appears as eight bits here, and one character may need several bytes. ASCII mode uses seven bits and accepts only characters from U+0000 through U+007F.
Binary input accepts spaces, commas and line breaks as separators. Every separated group must have the selected width. An uninterrupted bitstream must divide evenly into that width. Invalid groups or UTF-8 sequences stop conversion rather than returning a successful prefix.
Worked examples
A is 01000001 in UTF-8, hexadecimal 41 and decimal 65. In seven-bit ASCII it is 1000001. The letter é uses two UTF-8 bytes: 11000011 10101001, or C3 A9. 😀 uses F0 9F 98 80.
The text copy retains whitespace and control characters. The labeled inspection view escapes invisible characters so you can identify them; it does not change the copied bytes. A leading UTF-8 BOM is retained as U+FEFF.
Copying and local images
Download text keeps the complete validated text. The 1200×628 PNG is for short conversions and manual attachment. If the full content cannot fit at readable sizes, shorten it or use text instead.
Text stays in the open page. There is no automatic storage, share URL or upload. Public scripts and fonts are fetched from this site. Standards reviewed October 11, 2026; separator and size limits are application choices.
ASCII to binary table
ASCII has 128 values. Seven-bit groups show ASCII mode; byte-padded groups show the same values in UTF-8. Control names identify nonprinting characters.
| Character | Decimal | ASCII (7 bits) | Byte (8 bits) | Hex |
|---|---|---|---|---|
| A | 65 | 1000001 | 01000001 | 41 |
| a | 97 | 1100001 | 01100001 | 61 |
| 0 | 48 | 0110000 | 00110000 | 30 |
| Space | 32 | 0100000 | 00100000 | 20 |
Show all 128 ASCII values
| Character | Decimal | ASCII (7 bits) | Byte (8 bits) | Hex |
|---|---|---|---|---|
| NUL | 0 | 0000000 | 00000000 | 00 |
| SOH | 1 | 0000001 | 00000001 | 01 |
| STX | 2 | 0000010 | 00000010 | 02 |
| ETX | 3 | 0000011 | 00000011 | 03 |
| EOT | 4 | 0000100 | 00000100 | 04 |
| ENQ | 5 | 0000101 | 00000101 | 05 |
| ACK | 6 | 0000110 | 00000110 | 06 |
| BEL | 7 | 0000111 | 00000111 | 07 |
| BS | 8 | 0001000 | 00001000 | 08 |
| HT | 9 | 0001001 | 00001001 | 09 |
| LF | 10 | 0001010 | 00001010 | 0A |
| VT | 11 | 0001011 | 00001011 | 0B |
| FF | 12 | 0001100 | 00001100 | 0C |
| CR | 13 | 0001101 | 00001101 | 0D |
| SO | 14 | 0001110 | 00001110 | 0E |
| SI | 15 | 0001111 | 00001111 | 0F |
| DLE | 16 | 0010000 | 00010000 | 10 |
| DC1 | 17 | 0010001 | 00010001 | 11 |
| DC2 | 18 | 0010010 | 00010010 | 12 |
| DC3 | 19 | 0010011 | 00010011 | 13 |
| DC4 | 20 | 0010100 | 00010100 | 14 |
| NAK | 21 | 0010101 | 00010101 | 15 |
| SYN | 22 | 0010110 | 00010110 | 16 |
| ETB | 23 | 0010111 | 00010111 | 17 |
| CAN | 24 | 0011000 | 00011000 | 18 |
| EM | 25 | 0011001 | 00011001 | 19 |
| SUB | 26 | 0011010 | 00011010 | 1A |
| ESC | 27 | 0011011 | 00011011 | 1B |
| FS | 28 | 0011100 | 00011100 | 1C |
| GS | 29 | 0011101 | 00011101 | 1D |
| RS | 30 | 0011110 | 00011110 | 1E |
| US | 31 | 0011111 | 00011111 | 1F |
| Space | 32 | 0100000 | 00100000 | 20 |
| ! | 33 | 0100001 | 00100001 | 21 |
| " | 34 | 0100010 | 00100010 | 22 |
| # | 35 | 0100011 | 00100011 | 23 |
| $ | 36 | 0100100 | 00100100 | 24 |
| % | 37 | 0100101 | 00100101 | 25 |
| & | 38 | 0100110 | 00100110 | 26 |
| ' | 39 | 0100111 | 00100111 | 27 |
| ( | 40 | 0101000 | 00101000 | 28 |
| ) | 41 | 0101001 | 00101001 | 29 |
| * | 42 | 0101010 | 00101010 | 2A |
| + | 43 | 0101011 | 00101011 | 2B |
| , | 44 | 0101100 | 00101100 | 2C |
| - | 45 | 0101101 | 00101101 | 2D |
| . | 46 | 0101110 | 00101110 | 2E |
| / | 47 | 0101111 | 00101111 | 2F |
| 0 | 48 | 0110000 | 00110000 | 30 |
| 1 | 49 | 0110001 | 00110001 | 31 |
| 2 | 50 | 0110010 | 00110010 | 32 |
| 3 | 51 | 0110011 | 00110011 | 33 |
| 4 | 52 | 0110100 | 00110100 | 34 |
| 5 | 53 | 0110101 | 00110101 | 35 |
| 6 | 54 | 0110110 | 00110110 | 36 |
| 7 | 55 | 0110111 | 00110111 | 37 |
| 8 | 56 | 0111000 | 00111000 | 38 |
| 9 | 57 | 0111001 | 00111001 | 39 |
| : | 58 | 0111010 | 00111010 | 3A |
| ; | 59 | 0111011 | 00111011 | 3B |
| < | 60 | 0111100 | 00111100 | 3C |
| = | 61 | 0111101 | 00111101 | 3D |
| > | 62 | 0111110 | 00111110 | 3E |
| ? | 63 | 0111111 | 00111111 | 3F |
| @ | 64 | 1000000 | 01000000 | 40 |
| A | 65 | 1000001 | 01000001 | 41 |
| B | 66 | 1000010 | 01000010 | 42 |
| C | 67 | 1000011 | 01000011 | 43 |
| D | 68 | 1000100 | 01000100 | 44 |
| E | 69 | 1000101 | 01000101 | 45 |
| F | 70 | 1000110 | 01000110 | 46 |
| G | 71 | 1000111 | 01000111 | 47 |
| H | 72 | 1001000 | 01001000 | 48 |
| I | 73 | 1001001 | 01001001 | 49 |
| J | 74 | 1001010 | 01001010 | 4A |
| K | 75 | 1001011 | 01001011 | 4B |
| L | 76 | 1001100 | 01001100 | 4C |
| M | 77 | 1001101 | 01001101 | 4D |
| N | 78 | 1001110 | 01001110 | 4E |
| O | 79 | 1001111 | 01001111 | 4F |
| P | 80 | 1010000 | 01010000 | 50 |
| Q | 81 | 1010001 | 01010001 | 51 |
| R | 82 | 1010010 | 01010010 | 52 |
| S | 83 | 1010011 | 01010011 | 53 |
| T | 84 | 1010100 | 01010100 | 54 |
| U | 85 | 1010101 | 01010101 | 55 |
| V | 86 | 1010110 | 01010110 | 56 |
| W | 87 | 1010111 | 01010111 | 57 |
| X | 88 | 1011000 | 01011000 | 58 |
| Y | 89 | 1011001 | 01011001 | 59 |
| Z | 90 | 1011010 | 01011010 | 5A |
| [ | 91 | 1011011 | 01011011 | 5B |
| \ | 92 | 1011100 | 01011100 | 5C |
| ] | 93 | 1011101 | 01011101 | 5D |
| ^ | 94 | 1011110 | 01011110 | 5E |
| _ | 95 | 1011111 | 01011111 | 5F |
| ` | 96 | 1100000 | 01100000 | 60 |
| a | 97 | 1100001 | 01100001 | 61 |
| b | 98 | 1100010 | 01100010 | 62 |
| c | 99 | 1100011 | 01100011 | 63 |
| d | 100 | 1100100 | 01100100 | 64 |
| e | 101 | 1100101 | 01100101 | 65 |
| f | 102 | 1100110 | 01100110 | 66 |
| g | 103 | 1100111 | 01100111 | 67 |
| h | 104 | 1101000 | 01101000 | 68 |
| i | 105 | 1101001 | 01101001 | 69 |
| j | 106 | 1101010 | 01101010 | 6A |
| k | 107 | 1101011 | 01101011 | 6B |
| l | 108 | 1101100 | 01101100 | 6C |
| m | 109 | 1101101 | 01101101 | 6D |
| n | 110 | 1101110 | 01101110 | 6E |
| o | 111 | 1101111 | 01101111 | 6F |
| p | 112 | 1110000 | 01110000 | 70 |
| q | 113 | 1110001 | 01110001 | 71 |
| r | 114 | 1110010 | 01110010 | 72 |
| s | 115 | 1110011 | 01110011 | 73 |
| t | 116 | 1110100 | 01110100 | 74 |
| u | 117 | 1110101 | 01110101 | 75 |
| v | 118 | 1110110 | 01110110 | 76 |
| w | 119 | 1110111 | 01110111 | 77 |
| x | 120 | 1111000 | 01111000 | 78 |
| y | 121 | 1111001 | 01111001 | 79 |
| z | 122 | 1111010 | 01111010 | 7A |
| { | 123 | 1111011 | 01111011 | 7B |
| | | 124 | 1111100 | 01111100 | 7C |
| } | 125 | 1111101 | 01111101 | 7D |
| ~ | 126 | 1111110 | 01111110 | 7E |
| DEL | 127 | 1111111 | 01111111 | 7F |
Sources
Common questions
Can I paste binary with commas?
Yes. Spaces, commas, CR and LF are accepted. Tabs and other whitespace are rejected, and mixed-width groups need correction.
Why does an emoji need several bytes?
UTF-8 uses a variable number of bytes per code point. A visible emoji can also contain several code points.
Does Swap reverse the bits?
Swap exchanges both panes and preserves their formats and drafts. It does not invert bits or change the encoding.
What happens to invalid binary?
The tool identifies the source problem and disables current copy and image output until it is fixed.
Is my text sent to a service?
Conversion runs in this browser. The tool does not put text in storage, URLs or network requests.
How does automatic input detection work?
Input beginning with 0 or 1 is treated as binary, even if its last group is incomplete or contains a typo. Input containing only supported separators is also binary. Other input is text. Open More and choose Text to translate literal text such as 101. Detection never chooses the encoding or repairs invalid bytes.
Can I edit hex, decimal or octal?
Choose the format below Translation, then edit that pane. Hex needs two digits per byte, octal needs three, and decimal accepts one to three. Separate bytes with spaces, commas or line breaks. Values must be 0 through 255, or 0 through 127 in ASCII mode. The complete sequence must also be valid in the selected encoding.