Binary Text Translator
Convert text to binary or hex bytes and decode it back
About
Translate text to space-separated binary or hex bytes (UTF-8) and decode them back. Useful for debugging encodings and learning how characters map to bytes. Everything runs in your browser; nothing is uploaded.
Examples
Encode 'Hello' to binary
text: Hello01001000 01100101 01101100 01101100 01101111
(Space-separated 8-bit binary tokens)Each character's UTF-8 code point is shown as an 8-bit binary value, space-separated. H = 72 = 01001000.
Decode hex bytes to text
48 65 6c 6c 6fHelloEach 2-digit hex token maps to a byte value; the full sequence is decoded as UTF-8 to produce 'Hello'.
About this tool
The Binary/Text Translator encodes text as space-separated binary or hexadecimal bytes using UTF-8 encoding (TextEncoder), and decodes binary or hex tokens back to readable text using TextDecoder. It is the fastest way to manually convert between human-readable text and the raw byte representation that underpins most wire protocols and file formats.
In encode mode, each character's UTF-8 code point is shown as an 8-bit binary or 2-digit hex value, space-separated. In decode mode, each token is validated to be in the range 0–255 (binary) or a valid 2-digit hex value, and the whole byte sequence is validated as UTF-8 before being decoded.
How to use this tool
Choose a direction
Pick Encode to convert text to binary or hex, or Decode to go the other way.
Paste your input
For encode, type or paste text. For decode, paste space-separated binary tokens (8 bits each) or hex values (2 digits each).
Copy the result
Click Copy to grab the encoded or decoded output. Invalid tokens in decode mode are highlighted with an error.
Use cases
Reading hex dumps from a network capture
Paste a hex dump from Wireshark or a debugger and decode it to see the actual ASCII or UTF-8 string contents.
Creating a binary payload for a wire protocol
Encode a short text string as hex bytes to paste into a hex editor or a test tool that expects raw byte input.
Checking byte values in a string
Encode a string to binary or hex to inspect the exact UTF-8 encoding, useful for debugging encoding issues.
Common mistakes
Mistake:Decoding multi-byte UTF-8 characters as individual bytes.
Fix:Characters like 'é' or '中' occupy multiple bytes in UTF-8. Each byte must be present in the input; decoding only part of a multi-byte character produces a UTF-8 validation error.
Mistake:Confusing binary and hex tokens.
Fix:Binary tokens are 8 bits: '01100001'. Hex tokens are 2 hex digits: '61'. Mixing the two in the same input causes decode errors.
Mistake:Forgetting spaces between tokens.
Fix:The decoder splits on whitespace, so '0100100001100101' (no spaces) is read as a single 16-bit token that exceeds the 0–255 range. Always separate tokens with a space.
Frequently asked questions
Can it handle multi-byte UTF-8 characters?
Yes. In encode mode, each character is converted to its UTF-8 byte sequence. In decode mode, the whole byte sequence is validated as valid UTF-8 before decoding — invalid sequences show an error.
What happens if I paste a binary token outside 0–255?
The decoder checks each token against the 0–255 range and highlights out-of-range tokens with an error message. Valid hex tokens are 00–FF; valid binary tokens are 00000000–11111111.
Is binary or hex mode selected automatically?
No — you choose the mode manually. Binary tokens are 8 bits (00000000), hex tokens are 2 hex digits (00). Mixing the two in the same decode session will cause errors.
Is my text uploaded anywhere?
No. Encoding and decoding use the browser's native TextEncoder and TextDecoder APIs entirely in your browser; the input is never transmitted or stored.
Related guides
References & standards
Related tools
Anagram Solver & Palindrome
Normalize text for palindrome checks and privacy-preserving anagram analysis.
Case Converter & Text Formatter
Convert text between 14 different case formats including camelCase, snake_case, kebab-case with batch processing and advanced options
Character Frequency Analyzer
Count character, letter and word frequencies for text analysis
Find and Replace Text
Find and replace text with optional regex, case, and multiline matching
HTML to Markdown Converter
Paste HTML and get clean Markdown. Configurable heading style, bullet marker, and code block style — all processed locally in your browser.
Keyword Extractor
TF-IDF keyword extraction from any document — ranked terms with scores