ASCII to Hex Converter

Convert text to hexadecimal strings using various character encodings. Free online ASCII to hex converter with file support and customizable delimiters.

Swap

ASCII to Hex Converter - Convert Text to Hexadecimal Strings

This powerful ASCII to hex converter allows you to convert text to hexadecimal strings using various character encodings including ASCII, UTF-8, UTF-16, and many other international character sets. Perfect for programmers, developers, and anyone working with text data who needs to convert it to hexadecimal format.

How do I convert text to hexadecimal?

To convert text to hexadecimal:
1. Enter your text in the input area
2. Select the appropriate character encoding
3. Choose a delimiter (space, comma, none, or custom)
4. Click Convert

The tool will convert each character to its hexadecimal representation and join them with your chosen delimiter.

What character encodings are supported?

The tool supports many character encodings including:
- ASCII (default)
- UTF-8, UTF-16 (little and big endian)
- Windows-1252, Windows-1251, etc.
- ISO-8859 series (Latin1, Latin2, etc.)
- Asian encodings: Big5, Shift JIS, EUC-JP, etc.
- Cyrillic: KOI8-R, KOI8-U, CP866
- And many more international character sets

What delimiter options are available?

You can choose from several delimiter options:
- Space: Separate hex bytes with spaces (default)
- Comma: Separate with commas
- None: No delimiter between bytes
- User defined: Enter your own custom delimiter

This makes it easy to format the output for different use cases.

Can I open files directly?

Yes! The tool supports file opening modes:
- Open File: Opens text files and converts them to hex
- The tool will automatically load the file content into the input area

This makes it easy to work with existing files without manual copy-paste.

How does UTF-8 encoding work?

UTF-8 encoding handles multi-byte characters:
- ASCII characters (0-127): 1 byte each
- Extended characters (128-2047): 2 bytes each
- Most Unicode characters (2048-65535): 3 bytes each
- Surrogate pairs (65536+): 4 bytes each

The tool automatically handles the proper UTF-8 encoding for all character types.

What's the difference between ASCII and UTF-8?

ASCII is a 7-bit encoding (128 characters) that only covers basic English characters, while UTF-8 is a variable-width encoding that can represent any Unicode character:
- ASCII: Fixed 1 byte per character
- UTF-8: 1-4 bytes per character depending on the character
- UTF-8 is backward compatible with ASCII (ASCII characters are identical in both encodings)

Common ASCII to Hex Conversions

Character Decimal Hex Description
A 65 41 Uppercase A
B 66 42 Uppercase B
a 97 61 Lowercase a
b 98 62 Lowercase b
0 48 30 Digit 0
1 49 31 Digit 1
32 20 Space
! 33 21 Exclamation mark
@ 64 40 At symbol
" 34 22 Double quote
' 39 27 Single quote
8 56 38 Digit 8
9 57 39 Digit 9
z 122 7A Lowercase z
Z 90 5A Uppercase Z
\n 10 0A Newline
\t 9 09 Tab
\r 13 0D Carriage return
\0 0 00 Null character