How do I convert text to binary or binary to text online?
Enter text to instantly see it converted to binary (8-bit per character), hexadecimal, octal, or decimal representation. Paste binary or hex to decode it back to text. The tool handles full UTF-8 Unicode including emoji. Everything runs in your browser.
Hello
01001000 01100101 01101100 01101100 01101111
Text ↔ Binary Converter
Convert text to binary, hexadecimal, octal, or decimal — and back. Supports full Unicode via UTF-8 encoding.
Quick Reference — Text Encoding
Tips & Best Practices
ASCII uses only 7 bits — the 8th bit enabled character sets
Original ASCII maps 128 characters to 7-bit values (0-127). The 8th bit was unused, leading to dozens of incompatible extensions (Latin-1, Windows-1252, etc.) that each mapped 128-255 differently. UTF-8 solved this by using variable-length encoding: 1 byte for ASCII, 2-4 bytes for everything else. Always use UTF-8.
Emoji and CJK characters are 3-4 bytes in UTF-8
The string '😀' is 1 character but 4 bytes in UTF-8. 'Hello 😀' is 7 characters but 10 bytes. Database VARCHAR(10) might reject it if measured in bytes. JavaScript's String.length counts UTF-16 code units: '😀'.length === 2. Use Array.from('😀').length for true character count.
Binary representation reveals bitwise operations visually
Seeing 5 (0101) AND 3 (0011) = 1 (0001) in binary makes bitwise operations intuitive. This is invaluable for understanding permission bitmasks (Unix chmod 755 = 111 101 101), IP subnet masks (255.255.255.0 = 24 ones followed by 8 zeros), and flag enums.
Unicode homoglyphs enable phishing attacks
The Cyrillic 'а' (U+0430) looks identical to Latin 'a' (U+0061) but is a different byte sequence. Attackers use homoglyphs to create convincing phishing URLs (pаypal.com) and bypass text filters. Always validate domains using Punycode (xn-- prefix) and normalize Unicode input with NFC or NFKC before comparison.
Frequently Asked Questions
How do I convert text to binary representation?
What is the difference between ASCII and UTF-8 binary encoding?
How do I decode binary back to readable text?
Related Convert Tools
SVG to JSX Converter
Convert SVG to JSX or a React/TypeScript component — camelCase attributes, style objects, forwardRef, memo, props spread
OpenAPI to TypeScript
Convert OpenAPI 3.x and Swagger 2.0 specs to TypeScript interfaces and types with $ref resolution, allOf/oneOf/anyOf, enums, and API operation types
JSON to Zod Converter
Convert JSON or JSON Schema to Zod validation schemas with $ref resolution, allOf/oneOf/anyOf, enum, format constraints, and required/optional fields
GraphQL to TypeScript
Convert GraphQL SDL schemas to TypeScript interfaces, types, enums, unions, and operations