Text Radix Converter — Text to Binary, Octal, Decimal, Hex

Convert text to and from per-byte character codes in binary, octal, decimal, or hexadecimal, with UTF-8 or strict ASCII byte handling.

Loading tool…

Text Radix Converter — Text to Binary, Octal, Decimal, HexText Radix Converter turns any text into its underlying byte codes written in binary, octal, decimal, or hexadecimal — and converts those codes back into readable text. Pick a direction (encode or decode), choose the radix, and decide whether bytes come from full UTF-8 or strict ASCII. Every conversion runs entirely in your browser, so nothing you type is uploaded or stored.

What is Text Radix Converter — Text to Binary, Octal, Decimal, Hex?

Text Radix Converter is a free online tool that maps each character of your text to its raw byte values and prints them in the number base you choose: base 2 (binary), base 8 (octal), base 10 (decimal), or base 16 (hexadecimal). Developers, students, and reverse engineers use it to inspect how a string is stored, to build escape sequences, to read a hex dump, or to recover text hidden inside a list of numbers. Unlike an integer base converter, which changes the base of a single whole number, this tool works one byte at a time across the whole string, so multi-byte UTF-8 characters and emoji are handled correctly. Use the Encode direction to go from text to spaced byte codes, or Decode to paste codes (separated by spaces, commas, or newlines) and get the original text back. The Encoding setting lets you pick UTF-8 for any language or strict ASCII, which rejects characters above code 127. Because the widget renders only with JavaScript, this text is the indexable description: convert text to binary, encode a string as hex bytes, or decode decimal character codes back to words.

How to use Text Radix Converter — Text to Binary, Octal, Decimal, Hex

  1. Choose a direction: Encode to turn text into byte codes, or Decode to turn codes back into text.
  2. Open the settings panel and pick a radix: binary, octal, decimal, or hexadecimal.
  3. Set the encoding to UTF-8 for any language, or ASCII to restrict bytes to 0–127.
  4. Type or paste your text (when encoding) or your spaced codes (when decoding) into the Input box.
  5. Read the converted result in the read-only Output box; codes are space-separated, one group per byte.
  6. Click Copy to grab the output, or Clear to start over.

Examples

Encode text to binary (UTF-8)

Input

Hi

Output

01001000 01101001

Encode text to hexadecimal

Input

Hi!

Output

48 69 21

Decode decimal codes back to text

Input

72 105

Output

Hi

Frequently asked questions

How is this different from a base converter?
A base converter changes the radix of one whole number, like turning 255 into FF. This tool works on text: it splits the string into bytes and writes each byte in your chosen base, then can reverse the process. That is why it can encode whole sentences, emoji, and multi-byte characters, not just a single integer.
What is the difference between UTF-8 and ASCII?
ASCII covers only codes 0–127 (basic Latin letters, digits, and punctuation); any character above that is rejected with an error. UTF-8 can represent every Unicode character, so accented letters, CJK text, and emoji are encoded as two to four bytes each and decoded back correctly.
How should I format codes when decoding?
Separate each byte group with spaces, commas, or newlines, and make sure each value uses only digits valid for the chosen radix (0–1 for binary, 0–7 for octal, 0–9 for decimal, 0–9 and A–F for hex). Each value must be a single byte, so it cannot exceed 255 (decimal) or its equivalent.
Why does decoding sometimes show an error?
Decoding fails if a token contains a digit that is invalid for the radix, if a value is larger than one byte, or if the byte sequence is not valid UTF-8. In ASCII mode, any byte above 127 is also rejected. Fix the offending value and the output updates instantly.
Is my text uploaded to a server?
No. The entire conversion runs 100% client-side in your browser using built-in TextEncoder and TextDecoder APIs. Nothing you type is uploaded, stored, or sent anywhere, so you can safely convert private strings, tokens, or sensitive data.

Related tools