Convert text to binary, octal or another base

Inspect UTF-8 text bytes in binary or octal, or convert whole integers between radices 2 through 36.

freeworks offlinenothing uploaded
ToolText Encoder and Decoder
Input
Output

How it works

Text modes pass Unicode through TextEncoder and print every UTF-8 byte as eight bits or three octal digits; TextDecoder reverses valid byte groups. Numeric mode uses BigInt positional arithmetic, so it converts whole signed values without Number precision loss.

  • Binary bytes begin space-separated and arbitrary radix begins decimal-to-hexadecimal.
  • Byte encoding and numeric base conversion remain distinct selectable workflows.

Worked example

UTF-8 bytes for an emoji
Input
											Text: €
Mode: text to binary
										
Output
												11100010 10000010 10101100
											

When to use this

Protocol lessons inspect UTF-8 bits, permissions exercises read octal bytes, and programs convert large identifiers between decimal and hexadecimal.

Edge cases

  • One emoji occupies several UTF-8 bytes and therefore several bit or octal groups.
  • Malformed byte sequences decode with replacement characters because fatal decoding is not enabled.
  • Radix conversion rejects fractions and exponent notation because it accepts whole positional integers only.

References