Text to binary conversion translates each character in a string into its numeric representation across different number systems. Whether you need binary (base-2), hexadecimal (base-16), octal (base-8), or decimal (base-10) output, this tool handles bidirectional conversion instantly. All processing runs locally in your browser with full Unicode support.
Enter any text into the input field and the tool immediately converts it to binary, hexadecimal, octal, and decimal representations. Each character is mapped to its Unicode code point and displayed in all four number systems simultaneously. To reverse the conversion, switch to decode mode, paste a binary string (e.g., '01001000 01101001'), hexadecimal string (e.g., '48 69'), octal string, or decimal string, and the tool reconstructs the original text. Spaces or custom delimiters separate each character's numeric value for readability.
Text-to-binary conversion is widely used in computer science education to understand how computers represent text internally, in network protocol debugging where payloads are displayed in hex or binary format, in low-level programming and embedded systems development, in cryptography for visualizing bit-level operations, in data forensics for analyzing file headers and magic numbers, and in technical interviews and coursework that require manual binary arithmetic and ASCII table lookups.
This tool uses JavaScript's String.prototype.charCodeAt() and String.fromCharCode() for ASCII/BMP characters, and codePointAt()/fromCodePoint() for full Unicode support including emoji and supplementary plane characters. Binary conversion uses Number.toString(2) with zero-padding to 8 bits (or 16/32 bits for multi-byte characters). Hexadecimal output is zero-padded to 2, 4, or 8 hex digits depending on the code point range. The tool supports UTF-8, UTF-16, and raw Unicode code point display modes, and can handle strings of any length with streaming output for performance.
Paste your text into the input field and the tool converts each character to its 8-bit binary representation. For example, 'A' becomes '01000001' (binary for 65), 'Hi' becomes '01001000 01101001'. The binary output uses space-separated bytes for readability.
These are different number bases for representing values. Binary is base-2 (digits 0-1), octal is base-8 (digits 0-7), decimal is base-10 (digits 0-9), and hexadecimal is base-16 (digits 0-9 and A-F). Each character's ASCII or Unicode code point can be expressed in any of these bases.
Yes. The tool uses TextEncoder to convert text to UTF-8 bytes, which correctly handles Unicode characters including emoji and CJK characters. Multi-byte characters produce multiple bytes in the output. The character breakdown table shows the first byte of each character.
Generate MD5, SHA-1, SHA-256, and SHA-512 hashes from any text input.
Generate HMAC authentication codes using SHA-256, SHA-384, and SHA-512.
Escape strings for JSON and JavaScript. Convert special characters to safe escape sequences like \n, \t, \u00A9.
Transform, format, generate, and encode data instantly. Private, fast, and always free.
Browse All Tools