Text & Code
Text to Binary / Hex / Octal
Convert text to binary, hexadecimal, octal, and decimal — and back.
Separator
Prefix
🔒 All conversions happen in your browser. Nothing is sent anywhere.
☕ Love this tool? Support the developer.
100% free — no ads, no limits. Your support keeps every tool free.
Secure payment via Stripe · No account needed
About Text to Binary / Hex / Octal
OptiPix Text Converter transforms text between human-readable characters and their numeric representations in binary, hexadecimal, octal, and decimal (ASCII) formats. Type or paste text and instantly see it in all four formats simultaneously. Reverse the conversion by pasting binary, hex, or octal values to decode back to text. Choose separators (space, none, comma, newline) and prefixes (none, 0b, 0x, 0o) for the output. Full UTF-8 support means it handles emoji and international characters correctly. Copy any format individually. All conversions run locally in your browser.
How It Works
The tool uses JavaScript's TextEncoder to get UTF-8 byte values, then converts each byte to the target base using Number.toString(base). For decoding, it parses the numeric values and reconstructs the original bytes using TextDecoder.
Use Cases
- •Debug character encoding issues in web applications
- •Convert text to binary for educational purposes
- •Generate hex representations for color codes and byte values
- •Inspect raw byte values of Unicode characters
- •Prepare hex-encoded data for network protocols
Frequently Asked Questions
What formats are supported?
Can I convert binary/hex back to text?
Does it support Unicode and emoji?
What separator options are available?
Is my text sent to any server?
Related Tools
Base64 Text Encoder / Decoder
Encode text to Base64 and decode Base64 back to text. URL-safe mode available.
URL Encoder / Decoder
Encode and decode URLs with percent-encoding. Parse URLs into components.
Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text or files.
Case Converter
Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, and 10+ more formats.