Convert text to binary code and back. Also converts to hexadecimal, octal, ASCII, and Base64.
Text to Binary Converter converts text to 8-bit binary (one byte per ASCII character), and also outputs hexadecimal, octal, decimal ASCII codes, and Base64 — with full decode support to convert binary, hex, and Base64 back to readable text.
Instantly convert text to binary, hex, octal, ASCII, and Base64 — and decode binary back to readable text.
Enter your text and click Text → Binary to encode.
Enter binary code (8-bit groups) to decode back to text.
Use All Encodings to see binary, hex, octal, ASCII, and Base64 at once.
Text to binary: each character's charCodeAt(0) decimal value converted to 8-bit binary string with padStart(8,'0'). Binary to text: each 8-bit group parsed as base-2 integer, converted back via fromCharCode. Hex uses base-16, octal base-8, Base64 uses btoa/atob with UTF-8 support.
Each character is converted to its ASCII decimal code, then that decimal is converted to 8-bit binary (e.g., 'A' = 65 = 01000001).
Base64 encodes binary data into ASCII characters — commonly used for images in HTML/CSS and API payloads.