Binary Data Converter - Hex, Base64, UTF-8 & Bytes
Professional developer tool to convert data between formats: Text (UTF-8), Hex, Base64, Binary Bits, and Byte Arrays. Accurate client-side conversion.
Input Data
Output Result
About
Data serialization is the backbone of modern computing, yet moving between formats like Hex, Base64, and raw Binary is often error-prone. This tool acts as a universal translator for byte streams. Unlike simple text converters, it uses a Uint8Array intermediate layer, ensuring that binary fidelity is preserved even when dealing with non-printable ASCII control characters or multi-byte UTF-8 sequences.
Whether you are debugging a network packet, decoding a legacy database field, or inspecting a cryptographic hash, this utility provides an exact representation of the underlying data. It handles the complexity of encoding standards, such as the variable-length nature of UTF-8, where a single character like "€" occupies 3 bytes, versus the fixed-width mapping of Latin-1.
Formulas
Conversion relies on manipulating the underlying bitstream. For example, Base64 encoding takes groups of three 8-bit bytes (24 bits total) and divides them into four 6-bit chunks.
For Hexadecimal, each byte is split into two 4-bit nibbles, where each nibble maps to a digit from 0-F.
Hexlow = Byte & 0x0F
Reference Data
| Format | Base | Bits/Char | Charset Size | Usage Scenario |
|---|---|---|---|---|
| Binary (Bits) | 2 | 1 | 2 (0, 1) | Low-level logic, masks |
| Octal | 8 | 3 | 8 (0-7) | Unix file permissions |
| Decimal | 10 | - | 10 (0-9) | Human readable math |
| Hexadecimal | 16 | 4 | 16 (0-9, A-F) | Memory addresses, colors |
| Base64 | 64 | 6 | 64 (A-Z, a-z, 0-9, +, /) | Email attachments, data URIs |
| ASCII | 128 | 7 | 128 | Legacy English text |
| UTF-8 | - | 8-32 | 1,112,064 | Universal web text |