User Rating 0.0
Total Usage 0 times

Input Data

Output Result

Is this tool helpful?

Your feedback helps us improve.

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.

binary converter hex encoder base64 decoder utf8 tools byte array

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.

Index =
byte >> 2 (1st char)byte & 3 << 4 | next >> 4 (2nd char)

For Hexadecimal, each byte is split into two 4-bit nibbles, where each nibble maps to a digit from 0-F.

Hexhigh = Byte >> 4
Hexlow = Byte & 0x0F

Reference Data

FormatBaseBits/CharCharset SizeUsage Scenario
Binary (Bits)212 (0, 1)Low-level logic, masks
Octal838 (0-7)Unix file permissions
Decimal10-10 (0-9)Human readable math
Hexadecimal16416 (0-9, A-F)Memory addresses, colors
Base6464664 (A-Z, a-z, 0-9, +, /)Email attachments, data URIs
ASCII1287128Legacy English text
UTF-8-8-321,112,064Universal web text

Frequently Asked Questions

Base64 encodes binary data into ASCII characters by using 6 bits per character. Since a byte is 8 bits, every 3 bytes of input become 4 characters of output. This results in a size increase of approximately 33% (4/3 ratio).
A "Binary String" (often Latin-1) maps each byte 1:1 to a character code (0-255). UTF-8 is a variable-width encoding where characters can be 1 to 4 bytes. Converting a binary file to UTF-8 blindly can corrupt the data if the byte sequences are not valid UTF-8.
Technically yes, but this tool is optimized for text-based input. For files, you would need a tool that accepts file uploads to read the raw ArrayBuffer. This tool expects you to paste the string representation of the data.
The tool is smart enough to strip spaces, newlines, and colons (common delimiters) from Hex input before processing. You can paste "AA BB CC" or "AABBCC" and both will work correctly.