Skip to content
ตัวแปลงข้อความเป็นไบนารี
Tools

ตัวแปลงข้อความเป็นไบนารี

ใหม่

แปลงข้อความเป็นไบนารี 8 บิตและถอดรหัสไบนารีกลับเป็นข้อความ

Try:

Character breakdown — decimal, hex, octal & binary per character
Char Code (dec) Hex Octal Binary (UTF-8)

Runs entirely in your browser. Nothing is uploaded.

What is a text to binary converter?

A text to binary converter turns ordinary, human-readable text into binary code — the strings of 1s and 0s that computers actually store and process. Every letter, number, space, and emoji you type is mapped to a number using a character set such as ASCII or Unicode, and that number is written out in base-2 as an 8-bit byte. Type Hi and this online text to binary converter instantly returns 01001000 01101001. It also works in reverse, decoding binary back into readable words, so the same page doubles as a fast binary to text converter.

How to convert text to binary online

Using the tool is simple. With Text → Binary mode selected, type or paste your text into the input box and the 8-bit binary appears beside it as you type — no button to press, no page reload. Press Copy to grab the result or Download to save it as a .txt file.

Need to go the other way? Switch to Binary → Text, paste your 1s and 0s, and the original message is decoded instantly. The Swap button flips the input and output in a single click, so you can round-trip a string and confirm it converts back exactly. You can also choose your output separator — spaces between bytes, commas, newlines, or no separator at all.

ASCII, Unicode and UTF-8 support

Unlike a basic ASCII text to binary converter that breaks on anything outside the English alphabet, this tool is fully Unicode-aware. It encodes text as UTF-8, so plain English maps to single 8-bit bytes exactly as a classic ASCII converter would, while accented letters, non-Latin scripts, symbols, and even emoji are encoded correctly across multiple bytes. In other words, a unicode text to binary converter and a plain-text one are the same tool here — paste café or 😀 and the binary you get back will decode cleanly to the original characters.

This is a meaningful difference from tools like rapidtables.com's text-to-binary converter, which handles only 7-bit ASCII and produces incorrect or missing output for any character outside the basic English set. If you need to encode multilingual text, emoji, or special symbols, UtiloKit is the more reliable choice.

More than binary: hex, decimal and octal output

Most converters stop at binary. This one also reveals each character's decimal, hexadecimal, and octal value in an optional per-character breakdown, so you can see exactly how A becomes 65, 0x41, and 01000001 at a glance. You can choose how the output is separated — a space between every byte, no separator, commas, or one byte per line — which makes it easy to match the precise binary format your assignment, chat message, or program expects. Live counts for characters, bytes, and bits update as you work.

Bits, bytes and the binary alphabet

Binary is a base-2 number system: every digit is a bit that is either 0 or 1, and eight bits together make one byte. A single byte can represent 256 different values (0–255) — more than enough to cover every letter, digit, and punctuation mark in the ASCII set, which is why each character in this converter becomes exactly eight 1s and 0s.

Once you know the pattern, the binary alphabet is easy to read. Uppercase letters start at A = 01000001 and run in order (B = 01000010, C = 01000011, and so on), while lowercase letters begin at a = 01100001. Digits sit lower down — 0 = 00110000 through 9 = 00111001. The byte 01001000, for instance, is the number 72, which is the capital letter H. Use the live breakdown table above to watch any word map to its bytes one character at a time.

UtiloKit vs rapidtables, binarytranslator.com, and browserling

Rapidtables.com is the most widely linked binary translator online — it's fast, simple, and trustworthy, but it only supports ASCII (7-bit) and gives you raw binary with no formatting options or extra number bases. Binarytranslator.com covers more bases and includes some encoding options, but it processes input server-side, which means your text is uploaded and stored. Browserling's text-to-binary converter is also server-side and limits free users to short strings.

UtiloKit runs entirely in your browser — no server upload, no string length limits, no sign-up. You get full UTF-8/Unicode support, per-character decimal/hex/octal breakdown, configurable separators, live bit counts, and download — all for free on any device including iPhone and Android.

Why use a text to binary translator?

People reach for a text to binary translator for all kinds of reasons: computer-science coursework and homework, understanding how data is stored at the bit level, debugging character encodings, sending playful hidden messages (writing "I love you" in binary is a classic), or solving puzzles and CTF challenges. Because everything runs locally in your browser, this free online text to binary converter is also genuinely private — your text is never uploaded, there's no sign-up, and there are no limits on how much you convert. Bookmark it as your go-to binary translator for quick, accurate conversions on desktop or mobile.

How computers represent text in binary: from ASCII to Unicode

ASCII (American Standard Code for Information Interchange) was standardised in 1963 as a 7-bit encoding scheme, giving it exactly 128 code points (0–127). Those slots cover the 26 uppercase letters, 26 lowercase letters, digits 0–9, punctuation marks, and 33 non-printing control codes such as newline and tab. For decades, ASCII was sufficient for English-language computing, and its influence is so deep that every modern encoding keeps ASCII's original byte values intact for the basic Latin characters.

As computing spread globally, vendors extended ASCII to 8 bits, producing extended ASCII encodings with 256 possible characters. The problem was that there was no single standard — Windows used Windows-1252 for Western European languages, while the web converged on ISO-8859-1 (Latin-1), and dozens of other code pages existed for Cyrillic, Greek, Hebrew, and other scripts. A file written in one code page would show as garbage when opened with another, a corruption known as mojibake.

The solution was Unicode, a unified character set covering every writing system in use, from U+0000 to U+10FFFF — over one million possible code points, with approximately 140,000 assigned as of Unicode 15. Unicode itself is not an encoding; it is a catalogue of characters. The dominant encoding for Unicode on the web is UTF-8, a variable-width scheme: ASCII characters use a single byte (identical to their ASCII values), while characters outside the ASCII range use 2, 3, or 4 bytes. This backward compatibility with ASCII is why UTF-8 became the default encoding for the internet. Other encodings exist for special purposes: UTF-16 (used internally by Windows, Java, and JavaScript engines) uses 2 bytes for most characters and 4-byte surrogate pairs for code points above U+FFFF; UTF-32 uses a fixed 4 bytes per character regardless, which is memory-wasteful but arithmetically simple.

Binary, octal, and hexadecimal: the same data, different bases

Binary (base-2) is the native language of digital hardware, but representing large values in 1s and 0s gets unwieldy fast. Two other bases offer compact shorthand: octal (base-8, digits 0–7) and hexadecimal (base-16, digits 0–9 and A–F). The conversion is exact and lossless — each octal digit corresponds to exactly 3 binary bits, and each hexadecimal digit (or nibble) corresponds to exactly 4 binary bits. This means you can split any binary string into groups and translate each group in your head without arithmetic.

Hexadecimal is the programmer's preferred shorthand for binary because a single byte (8 bits) collapses neatly into exactly 2 hex digits. The byte 11111111 in binary is FF in hex and 255 in decimal. Most programming languages use the 0x prefix for hex literals (0xFF) and the 0b prefix for binary literals (0b11111111). Hex is so ubiquitous in computing that you encounter it constantly without realising it: memory addresses, colour codes in CSS (#FF5733 is R=255, G=87, B=51), SHA hashes, and MAC addresses all use hexadecimal notation. Understanding how hex maps to binary makes reading any of these values far more intuitive.

Octal fell out of favour for general use but remains important in Unix/Linux file permissions, where three permission groups (owner, group, other) each get 3 bits (read=4, write=2, execute=1), making a single octal digit a natural fit. A permission string of chmod 755 means 111 101 101 in binary — full permission for the owner, read+execute for everyone else. Knowing that each octal digit equals 3 bits makes this immediately readable without a calculator.

Binary in computer hardware: transistors, gates, and bit depth

The reason computers work in binary is physical: the simplest, most reliable electrical component is a transistor acting as a switch — either conducting (1) or not conducting (0). Grouping billions of these switches on a single chip allows complex logic to be built from a handful of primitive operations. Remarkably, every logic gate a computer needs — AND, OR, XOR, NOT — can be constructed entirely from NAND gates, making NAND the universal building block of digital hardware. From these tiny gates, billions of bits are stored and manipulated every nanosecond.

Data units grow in powers of two: a bit is one binary digit, 4 bits make a nibble, 8 bits make a byte, and from there units double — kilobyte, megabyte, gigabyte, and so on. Technically, the IEC 80000-13 standard introduced kibibyte (KiB = 1,024 bytes) to distinguish the binary thousand from the decimal 1,000-byte kilobyte used by storage manufacturers, though in everyday usage the terms remain muddled. Modern processors are 64-bit, meaning their registers can hold 64 bits (8 bytes) at once and can address up to 264 memory locations in theory.

The relationship between bit depth and the number of possible values is foundational: 8 bits give 256 combinations (28), which is why early computers had 256-colour palettes; 16 bits give 65,536 values, used for audio sample resolution and IPv4 port numbers; 32 bits give about 4.3 billion, which is why IPv4 addresses ran out; and 64 bits give 18.4 quintillion values — enough to address the memory of any imaginable computer for the foreseeable future. Whenever you see a data format described by its bit width, you can immediately calculate its maximum value range as 2n.

Bitwise operations and their practical applications

Most programming languages expose binary directly through bitwise operators that work on the individual bits of integer values. The four fundamental ones are: AND (&) — a bit is 1 only if both input bits are 1, used to mask (isolate) specific bits; OR (|) — a bit is 1 if either input is 1, used to set bits; XOR (^) — a bit is 1 only when the inputs differ, used to toggle bits and as the backbone of many cipher and checksum algorithms; and NOT (~), which flips every bit, producing the bitwise complement. Left-shift (<<) and right-shift (>>) move all bits a given number of positions, equivalent to multiplying or dividing by powers of two.

Practical uses appear everywhere once you know to look. Checking whether an integer is even requires a single AND: n & 1 == 0 is true for even numbers because the lowest bit is always 0 for multiples of two. Testing whether a number is a power of two is similarly compact: n & (n - 1) == 0 works because powers of two have exactly one bit set, so subtracting 1 flips all the lower bits and ANDing with the original leaves zero. Extracting the red channel from a packed 32-bit colour value uses a right shift and mask: red = color >> 16 & 0xFF.

Unix file permission bits are a classic real-world example of bit flags. The 9 permission bits (rwxrwxrwx) are divided into three 3-bit groups for owner, group, and others. Within each group, read = 4 (bit 2), write = 2 (bit 1), execute = 1 (bit 0). Permissions are set and tested with OR and AND respectively. The same pattern — using individual bits as independent boolean flags packed into a single integer — appears in network protocol headers, graphics APIs, configuration registers, and database capability masks throughout systems programming. Understanding binary makes these idioms immediately readable rather than opaque magic numbers.

Frequently asked questions

How do you convert text to binary?

Each character is converted to its character-code number using UTF-8 (plain ASCII for English letters), and that number is written as an 8-bit binary byte. For example, 'A' is 65, which is 01000001 in binary. This converter does it automatically — select Text → Binary and start typing, and the binary appears instantly. No button to press, no page reload, no upload required.

How do you write "I love you" in binary?

In 8-bit ASCII/UTF-8, "I love you" is 01001001 00100000 01101100 01101111 01110110 01100101 00100000 01111001 01101111 01110101. Paste any phrase into the converter above to get its exact binary instantly. Switch to Binary → Text to turn binary messages back into readable words. Popular binary converters like binarytranslator.com give the same output but upload your input to their server — here, everything stays in your browser.

What does 01001000 01100101 01101100 01101100 01101111 00100001 mean?

It spells "Hello!". Each 8-bit group is one character: 01001000 = H, 01100101 = e, 01101100 = l, 01101100 = l, 01101111 = o, and 00100001 = !. Paste it into Binary → Text mode above and the tool decodes it for you. Rapidtables.com's binary translator also handles this, but it requires a separate page visit and doesn't show the per-character breakdown this tool does.

How do you say "sorry" in binary code?

The word "sorry" in 8-bit binary is 01110011 01101111 01110010 01110010 01111001. Capitalisation matters: an uppercase 'S' is 01010011 while a lowercase 's' is 01110011, so "Sorry" and "sorry" produce different binary output. Paste the word into the converter above to see each character's byte alongside its decimal and hex value.

What does 10101 mean in binary?

Read as a binary number, 10101 equals 21 in decimal (16 + 4 + 1). Because it is only 5 digits it is not a full character byte — text is stored in groups of 8 bits, so the number 21 as a full byte is 00010101. If you type '10101' as text into the converter, it will encode the characters '1', '0', '1', '0', '1' — each digit as its own separate byte.

What is 4 in binary?

The number 4 in binary is 100, or 00000100 written as a full 8-bit byte. The text character '4' is different: its ASCII character code is 52, which encodes to 00110100 in binary. This distinction — between a numeric value and a text character — is a common source of confusion. Use the per-character breakdown table in the tool to see both the decimal code and the binary byte for any character you type.

What does 666 mean in binary?

The decimal number 666 in binary is 1010011010 (512 + 128 + 16 + 8 + 2). If you instead type the three text characters '666', the converter encodes each digit character on its own as 00110110 00110110 00110110 — because the character '6' has ASCII code 54, which is 00110110. Switch between number mode and text mode depending on which interpretation you need.

What does the 💕 emoji look like in binary?

Because the tool encodes text with UTF-8, emoji span several bytes. The 💕 'two hearts' emoji (U+1F495) becomes four bytes in UTF-8: 11110000 10011111 10010010 10010101. Most basic text-to-binary converters — including rapidtables.com's tool — either skip emoji or produce incorrect output because they only support 7-bit ASCII. This converter handles the full Unicode range, including emoji, accented characters, and non-Latin scripts.

What do number love codes like 143, 831 and 520 mean?

These are popular texting shorthands for affection: 143 means "I love you" (1, 4 and 3 letters in each word), 831 means "I love you" (8 letters total, 3 words, 1 meaning), and 520 sounds like "I love you" in Mandarin Chinese. Convert any of them to binary above to encode the message in 1s and 0s for a playful hidden message. The converter shows each digit as its own binary byte.

What does 808 mean, and what is 808 in binary?

In texting and 'angel number' lore, 808 is read as a sign of balance and infinity (a 0 framed by two 8s) and is sometimes shared between soulmates. As a number, 808 in binary is 1100101000 (512 + 256 + 32 + 8). If you type the text '808' into the converter, it encodes each digit character separately: '8' = 00111000, '0' = 00110000, '8' = 00111000.

Can it decode binary back to text?

Yes — it is a fully bidirectional binary translator. Switch to Binary → Text and paste your 1s and 0s; spaces between bytes are optional because the tool reads the digits in groups of 8 and decodes them as UTF-8. If the binary isn't a whole number of bytes it shows a clear error message explaining the issue. You can also use the Swap button to reverse-encode your just-decoded result and verify the round-trip.

How does this compare to rapidtables.com's text to binary converter?

Rapidtables.com's text to binary tool is popular and reliable for basic ASCII text, but it only shows raw binary output with limited formatting options. UtiloKit's converter adds a per-character breakdown table showing decimal, hex, and octal values alongside binary, configurable output separators (space, comma, newline, none), live byte and bit counts, emoji and full Unicode support, and a download button. Both tools are free and browser-based, but UtiloKit processes everything locally without any server request.

Is this text to binary converter free and private?

Yes. It is completely free with no sign-up and no limits, and every conversion runs entirely in your browser — your text is never uploaded to a server. This makes it safe for private or sensitive content. Unlike binarytranslator.com and some other online converters that transmit your input to their backend, UtiloKit does all processing in JavaScript on your device. Works on iPhone, Android, tablets, and all modern desktop browsers.