Drag and Drop text file here
or click to select a .txt fileOr type/paste text below:
Conversion Options
Character-by-CharacterConvert each character to its HEX value
Space SeparatedHEX values are separated by spaces
Include OriginalShow original characters with HEX results
Uppercase HEXDisplay HEX values in uppercase (A-F)
Add 0x PrefixPrefix HEX values with 0x
Line-by-Line ModeProcess each line separately
Note: This tool converts text characters to their hexadecimal (base-16) representation using ASCII/Unicode values.
About This Text to HEX Converter
This tool converts text characters to their hexadecimal representation by converting each character's Unicode code point to HEX. The conversion preserves the original text structure with options to control formatting and spacing.
How to Use This Tool
Step-by-Step Guide:
- Step 1: Input your text using either:
- Drag and drop a .txt file
- Click to browse and select a file
- Type or paste text directly into the text box
- Step 2: Select your desired conversion options
- Step 3: Click "Convert to HEX" to process your text
- Step 4: Review your converted HEX values in the output box
- Step 5: Use the results by copying or downloading
Conversion Options Explained:
- Character-by-Character: Converts each character to its HEX value
- Space Separated: HEX values are separated by spaces
- Include Original: Shows original characters with HEX results
- Uppercase HEX: Displays HEX values in uppercase (A-F)
- Add 0x Prefix: Prefixes HEX values with 0x
- Line-by-Line Mode: Processes each line separately
Example Conversion:
Input: Hello Output (default): 48 65 6C 6C 6F Output (with original): H(48) e(65) l(6C) l(6C) o(6F) Output (with prefix): 0x48 0x65 0x6C 0x6C 0x6F Input (multiline): Hello World Output (line-by-line): 48 65 6C 6C 6F 57 6F 72 6C 64