Convert any text string to its hexadecimal representation
Hexadecimal (hex) is a base‑16 numeral system that uses digits 0‑9 and letters A‑F. Each character in a text string has an ASCII (or Unicode) code point, which can be expressed as a two‑digit hexadecimal number. For example, the letter 'A' has ASCII code 65, which in hex is 41. Converting text to hex is useful for debugging binary data, encoding for low‑level protocols, and preparing data for embedded systems.
This tool transforms any text (including letters, numbers, and symbols) into a continuous hex string. Each byte (character) is represented by exactly two hex digits, making it easy to transmit or store binary‑safe data.
Step 1: Enter your text in the left input field. You can paste from any source or type directly.
Step 2: Optionally check “Uppercase hex” to output letters A‑F in uppercase (default is lowercase).
Step 3: Check “Space between bytes” if you want each byte separated by a space (e.g., "48 65 6c 6c 6f").
Step 4: Click “Convert to Hex”. The hexadecimal result appears instantly.
Step 5: Use the “Copy Hex” button to copy the result to your clipboard.
This tool works with any ASCII text. For extended Unicode characters, it will produce the corresponding UTF‑8 byte sequence (multiple bytes per character).
Text: "Hello"
Hex: 48656c6c6f
With spaces: 48 65 6c 6c 6f
Text: "ToolGram"
Hex: 546f6f6c4772616d
Text: "123"
Hex: 313233