Text ↔ Binary Converter

Convert text to binary, hexadecimal, octal, and decimal — or reverse-convert back to text.

100% client-side — your data never leaves your browser
Mode
Characters: 0 Bytes: 0 Words: 0
Separator:
Binarybase 2
Binary output will appear here…
Hexadecimalbase 16
Hex output will appear here…
Octalbase 8
Octal output will appear here…
Decimalbase 10
Decimal output will appear here…
CharDecHexOctBinary CharDecHexOctBinary

About This Tool

The Text to Binary Converter encodes each character in your text to its ASCII/UTF-8 byte value, then represents that byte in binary (base 2), hexadecimal (base 16), octal (base 8), or decimal (base 10). Each group of digits corresponds to one character.

Use separator options to control how values are delimited — spaces make output readable, "none" produces compact output, and commas work well for CSV or code arrays.

Switch to Codes → Text mode to reverse the process: paste binary, hex, octal, or decimal codes and instantly decode them back to the original text.