Byte Array Tools
Convert text, hex, Base64 and files to and from byte arrays, view hex dumps, swap endianness, decode numbers and UTF-8, and identify files by their magic number - all in your browser.
17 tools in this category
All Categories
Work With Raw Bytes in Your Browser
Text, numbers, images and every other kind of file are stored as bytes. These tools show you those bytes and convert them between the forms developers use: text, hex strings, Base64, and byte arrays ready to paste into C, Java, Kotlin, C#, Python, JavaScript, Go, Rust or PHP. Everything runs in your browser - files are read on your device and never uploaded.
Convert To and From Byte Arrays
- String to Byte Array and Byte Array to String - text in UTF-8, UTF-16, Latin-1 or ASCII.
- Hex to Byte Array and Byte Array to Hex - including signed Java bytes.
- Byte Array to Base64 - both directions, with URL-safe Base64.
- File to Byte Array and Byte Array to File - embed a file in code, or rebuild one from bytes.
- Byte Array Formatter - move an array from one language to another.
Inspect and Decode Bytes
Open any file in the Hex Viewer, find out what a file really is with the File Signature Checker, and spot exactly where two sequences differ with Byte Array Compare. For numbers, Bytes to Integer / Float and Integer to Bytes cover int8 to int64, float and double, and the Endianness Converter swaps byte order.
Text Encodings
When text looks garbled, the problem is usually the encoding. The UTF-8 Encoder / Decoder shows the bytes of every character, the Unicode Code Point Converter handles U+, \u and HTML escapes, and the Text to Hex Converter works both ways. For single numbers, see the number base converters.