ASCII to HEX Converter

Convert text to hex as UTF-8 bytes

Conversion options
Case
Read-only

What is ASCII to HEX Converter?

ASCII to HEX Converter turns text into hexadecimal notation. It is useful for checking which bytes make up a string or for preparing HEX output while debugging.

The input is read as UTF-8 bytes, so Japanese text and emoji appear as multiple bytes. The result updates as you type.

How to Use

  1. Enter the text you want to convert.
  2. Choose the output format, letter case, and line breaks.
  3. Review the HEX result and copy it if needed.

Main Settings

Output Format

Choose how the hexadecimal values are separated. Spaces and commas are easy to scan, while the 0x formats are ready to paste into code. The no-separator format produces one continuous string.

Hello
48 65 6C 6C 6F
0x48, 0x65, 0x6C, 0x6C, 0x6F

Case

Show hexadecimal letters in uppercase or lowercase to match an existing codebase or specification.

Line Breaks

Break long output every 8, 16, or 32 bytes. The line breaks change only the layout; the converted values stay the same.

Use Cases

  • Checking which bytes make up a piece of text
  • Comparing data against a protocol or file format specification
  • Creating HEX output for debugging logs
  • Preparing a hexadecimal array to embed in code

Things to Keep in Mind

  • The text is encoded as UTF-8. Characters outside the ASCII range use more than one byte, so the number of HEX digits does not match the number of characters