Three encodings in one place: Switch between UTF-8, UTF-16 and UTF-32 from a single dropdown instead of opening separate tools. The statistics line and the output update the moment you change it.
Example: the word Go is 47 6F in UTF-8 (one byte each), 00 47 00 6F in UTF-16 big-endian, and 00 00 00 47 00 00 00 6F in UTF-32 big-endian.
Byte order (UTF-16 and UTF-32): Big-endian stores the most significant byte first, little-endian stores it last. The byte order selector appears only when it matters, so you cannot set it by accident for UTF-8, which is byte-oriented and has no endianness.
Example: the letter A is 00 41 big-endian and 41 00 little-endian in UTF-16.
Optional BOM: Ticking Add BOM prepends the correct byte order mark for the chosen encoding and endianness: EF BB BF for UTF-8, FE FF or FF FE for UTF-16, and 00 00 FE FF or FF FE 00 00 for UTF-32. Signalling the encoding this way is useful when a reader has no other hint.
Example: Hi in UTF-16 big-endian with a BOM starts FE FF 00 48 00 69.
Output base: Render each byte as binary, octal, decimal, hexadecimal, or any base from 2 to 36. Bases above 10 use the letters A to Z for the extra digits, exactly like hexadecimal uses A to F.
Example: byte 255 prints as 11111111 in binary, 377 in octal, 255 in decimal and FF in hexadecimal.
Byte delimiter: Set any separator between bytes. A dash is the default and keeps values easy to read; a space, a comma, a newline or no separator at all suit code, spreadsheets or a specific parser.
Example: the first two bytes of OK become 4F-4B by default, and 4F, 4B with a comma and a space.
Prefix and zero-padding: Add prefix tags each byte as 0b, 0o or 0x for binary, octal and hexadecimal so the base is unambiguous. Add zero-padding pads every byte to the full width of the base (eight digits for binary, three for octal and decimal, two for hexadecimal and base-36), so all values line up.
Example: the byte 7 becomes 00000111 in padded binary and 07 in padded hexadecimal.
Live conversion and statistics: The output is produced as you type or whenever an option changes, and the statistics line reports characters, code points and total bytes (including any BOM). Grapheme counting means combined emoji sequences are not over-counted.
File upload, copy, download and clear: Load a .txt file instead of typing, copy the result with one click, download it as a file, or clear both boxes to start over.