01What is Base16 Encoder?
Base16 is the formal name for plain hex. RFC 4648, the same document that defines Base64 and Base32, specifies it: each byte becomes two characters from the 16-symbol alphabet 0-9 and A-F. The output is twice the size of the input, but every byte stays readable, which is why hex is the default view in debuggers and packet tools. In Encode mode, your text first goes through the browser's TextEncoder, which always produces UTF-8. Each byte is then padded to two digits. ASCII characters give one byte each. Others give their UTF-8 sequence, so the euro sign € becomes three bytes, E2 82 AC, and an emoji becomes four bytes, eight digits. You set the Case (upper or lower), a Separator (None, Space, Colon or Dash) and an optional 0x prefix on each byte. With uppercase, a space separator and the prefix on, "Hi" turns into 0x48 0x69. With lowercase and no separator it is just 4869. Decode mode accepts the messy formats people actually paste. It removes 0x prefixes and strips spaces, commas, semicolons, colons, pipes, dots and dashes. What remains must be pure hex. Anything else stops with "Invalid hexadecimal characters detected", and an odd digit count stops with an error too. So 48-65-6c-6c-6f decodes to Hello, but 4G is refused outright. That strictness is useful, since a typo never gets silently skipped. The bytes are decoded as UTF-8 in non-fatal mode. Invalid sequences, such as a lone FF byte, become the replacement character � instead of failing the whole input. A stats row shows Bytes, Characters and Hex Length. The swap arrow moves the output into the input and flips the direction, so a round trip takes one click. There are a few limits worth keeping in mind. RFC 4648 Base16 has no line wrapping and no checksum, and this tool adds neither. Decoding assumes UTF-8 text, so binary files or Latin-1 data will show replacement characters. Since the cleanup step deletes every 0x pair anywhere in the input, that substring is never treated as data. Encoding and decoding run entirely in this page's script, and the text you type stays in your own browser tab.
Developers and network engineers who need to read or produce raw bytes as hex in a specific format, such as colon pairs or 0x-prefixed lists. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Base16 Encoder
- Choose Encode or Decode at the top.
- In Encode mode, set Case (upper or lower), a Separator (None, Space, Colon or Dash) and toggle 0x prefix if you want it.
- Type or paste into the input box. The Hex Output or Decoded Text panel updates as you type.
- Check the Bytes, Characters and Hex Length stats, then click Copy.
- Use the swap arrow to round-trip the result, or Clear to empty the input.
03Worked examples
- Input:
Hi (lowercase, no separator) - Result:
4869 - Input:
Hi (uppercase, Space separator, 0x prefix) - Result:
0x48 0x69 - Input:
€ (uppercase, Colon separator) - Result:
E2:82:AC - The euro sign is three UTF-8 bytes.
- Input:
😀 (lowercase, no separator) - Result:
f09f9880 - An emoji is four UTF-8 bytes, eight hex digits.
- Input:
48-65-6c-6c-6f (Decode) - Result:
Hello - Dashes, colons, spaces, commas and similar separators are removed before decoding.
- Input:
4G (Decode) - Result:
Error: Invalid hexadecimal characters detected - Any character outside 0-9 and A-F stops the decode.
04Common use cases
- Reading a hex dump copied from Wireshark or xxd back as text, with its separators left in
- Formatting bytes as colon-separated uppercase pairs to match MAC address or certificate fingerprint notation
- Checking how many UTF-8 bytes a string with accents or emoji takes before storing it in a fixed-size column
- Producing 0x-prefixed bytes to paste into a C or Rust byte array
- Making sure a hex string from a config file has no typos, since any stray non-hex character is rejected
- Comparing a hex value from a lowercase-only system with one from an uppercase tool by re-encoding in the same case
05Tips
- Hex always doubles the byte count, so it is for reading and debugging, not compact storage. Base64 is smaller when size matters.
- If decoded text shows �, the bytes probably were not UTF-8 to begin with, often Latin-1 or binary data.
- The decoder ignores common separators, so you can paste output from most hex viewers without cleaning it first.
- Case does not change the value, but some systems compare hex strings literally. Match whatever the other side expects.
- Unlike some converters, a letter like G or Z is never skipped here. You get an error, which makes typos easy to catch.
06Related concepts
Hexadecimal, RFC 4648, UTF-8, Byte encoding, Hex dump.
Frequently Asked Questions
What is Base16 Encoder?
Base16 Encoder is a free, browser-based developer tool on AIDToolStack. Encode/decode Base16 hex It requires no installation or sign-up and works entirely in your browser.
Is Base16 Encoder free to use?
Yes. No sign-up, no fees and no usage cap.
Does Base16 Encoder store my data?
No. It runs in your browser; nothing is uploaded.