Xerobit

Binary Converter & Number Base Converter

Convert numbers between bases: binary to decimal, decimal to binary, hex to decimal, octal, and back. Two modes: single number (BigInt-backed for arbitrary length) or byte sequence (each value is one byte). Translating whole sentences? Use the Binary to Text Converter.

Pick source format, type a value.

Converting binary to text

For translating messages and sentences, the dedicated Binary to Text Converter works in both directions with full UTF-8 support and a per-character table. This converter is built for numbers, but its byte-sequence mode also shows how each byte maps to a character:

A binary translator converts binary code (sequences of 0s and 1s) into readable text or other number bases. Computers store all data as binary, so translating between binary and human-readable formats is a fundamental skill in programming, networking, and security work.

To translate binary to text with this tool, switch to byte sequence mode and enter your binary values space-separated (e.g., 01001000 01100101 01101100 01101100 01101111 → "Hello"). Each group of 8 binary digits (bits) represents one ASCII character. The tool converts all values simultaneously, showing you decimal, hex, octal, and ASCII side by side.

Common binary translation examples

Binary Decimal Hex ASCII
010010007248H
0110010110165e
011011001086Cl
011011111116Fo
001000013321!
11111111255FFÿ (non-printable)

Single number vs byte sequence

The two modes serve different needs:

  • Single number: treats the input as one large value. FF in hex = 255 in decimal = 11111111 in binary. Useful for cryptography, ID values, large integers.
  • Byte sequence: each space-separated value is a byte. 48 65 6C 6C 6F = "Hello". Useful for binary protocol debugging, ASCII analysis, hex dumps.

Quick reference

DecimalBinaryOctalHexASCII
00000000000000NUL
10000010100120ALF (newline)
320010000004020(space)
650100000110141A
970110000114161a
25511111111377FF(non-printable)

BigInt support

The single-number mode uses JavaScript BigInt, so values are not limited to 64 bits. A 1000-digit decimal number converts cleanly to its binary or hex representation. This matters for crypto keys, blockchain identifiers, and prime factor work.

Common conversion contexts

  • Binary to text: CTF challenges, debugging serial protocols, exploring how strings encode.
  • Hex to text: reading raw memory dumps, hex-encoded strings in PCAP files, parsing JWT signatures.
  • Decimal to hex: converting RGB values, IP addresses, port numbers, color codes.
  • Octal: Unix file permissions (chmod 755 means binary 111 101 101).

Frequently asked questions

What's the prefix notation (0b, 0o, 0x)?

Standard programming notation: 0b for binary, 0o for octal, 0x for hex. The tool accepts inputs with or without these prefixes and shows them in the output for clarity.

Can I convert negative numbers?

Yes, single-number mode preserves the sign. Negative binary uses a leading minus, not two's complement. For two's-complement representation, work with bytes directly in byte-sequence mode.

Why does my text-to-decimal output a giant number?

Single-number mode treats the UTF-8 bytes of your text as one big-endian number. "Hi" → 0x4869 → 18537. Use byte-sequence mode if you want each character/byte separately.

Does it handle Unicode (non-ASCII)?

Yes. UTF-8 is the encoding used. "🦊" → bytes F0 9F A6 8A → 4 bytes. Multi-byte characters work seamlessly.

Pillar

Reference pages